aloof-scooter-47164
12/12/2025, 2:23 AMtall-airline-16756
12/12/2025, 2:23 AMtall-airline-16756
12/12/2025, 2:23 AMAudioSource queue size (e.g., 1000–2000 ms) to avoid dropped frames during bursts.
3. If using VAD/STT, relax silence thresholds (longer min silence) and ensure end_input() is called only after speech really finishes.
4. Verify your recorder/egress subscribes to the track before the user begins speaking (use on_track_subscribed hooks).
5. Monitor Raspberry Pi CPU, IO, and process scheduling while recording to spot spikes or blocking loops.
If you want, tell me:
• Are you using a custom AudioSource or standard device capture?
• Is speech sometimes cut off only at the very start of the call, or in the middle as well?
• Are you using VAD/STT, and which library/settings?
I can then give the exact config lines and next steps to try.
Sources: client-sdk-js | livekit/livekit_composite | DeepWiki | Resolving "InvalidState - failed to capture frame" errors in AudioSource | Speech-to-text (STT) models | LiveKit Docs | Capturing the First Few Seconds of a Call for Processing | Debugging Audio/Video Sync Issues in LiveKit Publishingnutritious-bird-16298
12/12/2025, 4:43 AMtall-airline-16756
12/12/2025, 4:43 AMAudioSource (or both)?
• Are you running VAD/STT or any post‑processing in the observability agent that might end streams early?
• Do the raw egress/recording files (outside the observability UI) also show the cutoffs, or is it only in the observability playback?
• Approximate environment: Raspberry Pi or other hardware, and any CPU/load spikes when the issue occurs?
Answering these will let me point to the most likely cause (pre‑connect buffer, AudioSource queue size, VAD behavior, subscription timing, or device/CPU timing) and give exact config steps to test. Would you like me to recommend specific debug commands and config changes to try next?aloof-scooter-47164
12/12/2025, 5:12 AMtall-airline-16756
12/12/2025, 5:12 AMAudioSource on the Raspberry Pi?
• Do the raw egress files (downloaded from your egress target) show the same cut‑off as what you hear in the observability tool?
• Are you running VAD/STT or any agent-side processing that could end streams early?
Answer those and I’ll give exact config changes and diagnostic commands to test (e.g., increase AudioSource queue_size_ms, check pre‑connect buffer handling, and VAD thresholds).