Repository navigation
fix(voice-line): WAV-wrap PCM for Whisper + surface processing errors (#9800) - #10681
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 50 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex disposition (task 16482, lane code-c): the Codex review FAILED TO RUN — usage limits reached, zero findings produced (review body states this explicitly). CodeRabbit skipping. Merge rests on own verification: bun test 11/11 (incl. 2 new WAV-header tests whose oracle is the live Whisper accept/reject behavior), bunx tsc --noEmit clean, and the live deploy proof recorded on #9800. |
What
Deploy fix for the voice line (#9800 step 1, task 16482), found during the live deploy proof on 2026-11-16:
VoiceSessionsent base64 of headerless PCM16 to@cf/openai/whisper-large-v3-turbo. Workers AI rejects it with AiError "Invalid input" (code 8001) — verified live three ways (REST binary WAV, REST binary PCM-derived WAV, and the deployed DO hanging silently). Base64 JSON of a WAV container transcribes correctly.wavEncodePcm16adds the 44-byte RIFF/WAVE header; new unit tests pin the header shape (oracle: the live Whisper accept/reject behavior).processUtterancefailures (e.g. a model error) now send a{type:"error"}event instead of leaving the client hanging with no transcript, no error, and no ledger row — the exact failure shape the deploy proof hit.wrangler.toml:TURSO_URLset to the provisioned ledger database (voice-line-ledger, created this shift). Tokens stay as wrangler secrets, never vars.Deploy state (this shift)
TURSO_TOKEN,STATUS_INGEST_TOKEN(wrangler secrets)POST /ingest-status(HTTP 200, row verified in Turso)Tests
bun test— 11/11 pass (9 existing VAD/intent + 2 new WAV tests, 37 expect() calls)bunx tsc --noEmit— cleanLive end-to-end proof (transcript → answer → spoken MP3 → Turso ledger row) runs against the redeployed worker immediately after merge and is recorded on #9800.
🤖 Queue lane code-c, task 16482.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.