Skip to content

fix: produce valid audio chunks when transcribing files >25MB - #51

Merged
End2EndAI merged 1 commit into
mainfrom
claude/fix-large-file-transcription-qOB73
Apr 6, 2026
Merged

fix: produce valid audio chunks when transcribing files >25MB#51
End2EndAI merged 1 commit into
mainfrom
claude/fix-large-file-transcription-qOB73

Conversation

@End2EndAI

Copy link
Copy Markdown
Owner

The old chunking logic split raw file bytes at arbitrary boundaries,
producing invalid audio files that Whisper rejects. Web used blob.slice()
on WebM containers; native split base64-encoded M4A at random offsets.

Fix: Web now decodes via AudioContext to PCM then encodes valid WAV
chunks. Native parses the M4A (MP4) container to find sample boundaries
and builds valid M4A files for each chunk with proper atoms.

https://claude.ai/code/session_01AALsZMcA3oGi5w3xEcR71C

The old chunking logic split raw file bytes at arbitrary boundaries,
producing invalid audio files that Whisper rejects. Web used blob.slice()
on WebM containers; native split base64-encoded M4A at random offsets.

Fix: Web now decodes via AudioContext to PCM then encodes valid WAV
chunks. Native parses the M4A (MP4) container to find sample boundaries
and builds valid M4A files for each chunk with proper atoms.

https://claude.ai/code/session_01AALsZMcA3oGi5w3xEcR71C
@vercel

vercel Bot commented Apr 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voicekeeper Ready Ready Preview, Comment Apr 6, 2026 3:25am

@End2EndAI
End2EndAI merged commit dc6fa9a into main Apr 6, 2026
3 checks passed
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

📱 Preview Update Ready

Branch: pr-51
Update: View on Expo

Scan to open in Expo Go

QR Code

Open the app on your device and scan this QR code, or open the Expo Go app and navigate to the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants