Spaces:
Running
Running
fix: mute sends silence frames instead of dropping uplink
#12
by sseregin - opened
When the mic is muted, keep sending zeroed PCM16 frames of the same size instead of stopping input_audio_buffer.append entirely.
Dropping frames stalls the server's audio clock: VAD never sees trailing silence, so the turn may not soft-end / commit, which can look like slippage or a hung/disconnected session. Silence frames preserve privacy (no real mic audio leaves) while letting mute act as end-of-turn.
Ported from a production fork of this Space UI.