fix(voice): expand speech buffer to 60s, handle 2.1 cancellation race, and bound cleanup

- Expand max_input_buffer_bytes to 3,072,000 (64s at 24kHz PCM16) with 65s fixed deadline
- Broaden response_cancel_not_active race classifier to include gpt-realtime-2.1/shimmer
- Add transport abort method and bound cleanup waits during websocket close
- Record repair progress in docs/plans/live-conversation-repair-progress.md
This commit is contained in:
amirhosein mazaheri
2026-10-12 18:51:06 +03:30
parent d493752b81
commit 9e6864ae2a
14 changed files with 203 additions and 19 deletions
@@ -432,7 +432,7 @@ These finite engineering defaults are frozen for initial integration and configu
| Application transport audio queues | 96000 raw bytes (2 seconds) AND 100 queued messages per direction; count queues/in-flight sends until completion. Output scheduling also obeys the smaller 72000-byte T+R credit window in 7.1.5 |
| Provider-generated reservoir / aggregate undrained output | 1440000 bytes (30 seconds) across G+T+R, 512 packed slabs, bounded descriptors/scratch/metadata; 7.1.5 distinguishes storage from delivery/playback |
| Browser output backlog | 96000 bytes AND 100 messages across all refs, including currently playing remainder and scheduled buffers; independently enforced by browser |
| Detected uncommitted speech | 480000 bytes (10 seconds) across trusted speech intervals, including VAD padding; silence outside those intervals is excluded. Active intervals also have a 10-second wall deadline from receipt of speech-start; stopped intervals require commitment within 15 seconds. These are lifecycle bounds, not claims about provider-retained PCM |
| Detected uncommitted speech | 3072000 bytes (64 seconds) across trusted speech intervals, allowing 60 seconds of user speech plus up to four seconds of VAD padding; silence outside those intervals is excluded. Active intervals have an independent 65-second wall deadline from receipt of speech-start; stopped intervals require commitment within 15 seconds. These are lifecycle bounds, not claims about provider-retained PCM |
| Control/event queues | 64 messages and 262144 encoded bytes per direction; ordered relative to audio markers |
| Send completion deadline | 5 seconds per message; uncertain/failed send fails session, does not increment confirmed sent_bytes |