fix(voice): send real batch_len, not hardcoded BATCH_BYTES=82, on the call wire#41
Open
torlando-tech wants to merge 1 commit into
Open
fix(voice): send real batch_len, not hardcoded BATCH_BYTES=82, on the call wire#41torlando-tech wants to merge 1 commit into
torlando-tech wants to merge 1 commit into
Conversation
… call wire call_send_audio_batch shipped a fixed 82-byte bin8 payload+length, correct only for 8-B/frame Codec2 (3200/1600). The ULBW default is 700C at 4 B/frame -> a 42-B batch, so every packet carried 40 B of uninitialized stack and a bin8 length that lied (82 vs 42): pyxis<->pyxis decoded to SILENCE (RX 6400 > 5120 output guard -> ring underrun), pyxis->a length-driven peer (Columba/Python) decoded 10 real + 10 stack-noise frames = audible GARBAGE. Use the batch_len the caller already computes. ULBW stays default (LoRa-first). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UWZuYkHBRqNb6BZHV8sTG5
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
call_send_audio_batchshipped a fixed 82-byte bin8 payload + length, correct only for 8-byte/frame Codec2 modes (3200/1600). The shipping ULBW default is Codec2-700C at 4 B/frame → a real batch of 42 B, so every 700C packet carried 40 B of uninitialized stack and a bin8 length byte that lied (82 vs 42).Symptom: pyxis↔pyxis decoded to silence (RX 6400 samples > the 5120 output guard → ring underrun every packet); pyxis → a length-driven peer (Columba/Python) decoded 10 real + 10 stack-noise frames = audible garbage.
Fix: use the
batch_lenthe caller already computes. ULBW stays the default (LoRa-first). The most impactful of the voice-investigation fixes.🤖 Generated with Claude Code
https://claude.ai/code/session_01UWZuYkHBRqNb6BZHV8sTG5