fix(voice): correct input accounting and session termination
Separate detected speech limits from continuous microphone silence while preserving transport bounds and absolute commit fencing. Handle verified OpenAI cancellation races and terminal items, preserve causal close outcomes, and share bounded cleanup ownership with safe diagnostics. Add regression coverage and align the API contract and frontend handoff. Validation: 61 focused unit tests passed; staged diff whitespace checks passed. Live browser acceptance remains outstanding.
This commit is contained in:
@@ -403,7 +403,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 |
|
||||
| Input since last commit | 480000 bytes (10 seconds), including forwarded provider-buffered PCM; fail if not committed within this bound |
|
||||
| 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 |
|
||||
| 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 |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user