feat(voice): support evidence reuse, 120s output capacity, and input ASR coalescing

- Add internal reuse_last_evidence tool for continuing existing topic without repeated retrieval
- Expand OpenAI output capacity to 120s / 5,760,000 bytes and add delivery fairness
- Coalesce adjacent user ASR transcript deltas to prevent client control queue overflow
- Add server-side OPENAI_REALTIME_SPEED configuration and update style to v4
- Add extensive unit and integration regressions for evidence reuse, capacity, and fairness
This commit is contained in:
11linear11
2026-10-12 17:57:27 -04:00
parent 9e6864ae2a
commit 111710c47c
33 changed files with 1189 additions and 55 deletions
+3 -2
View File
@@ -1055,8 +1055,9 @@ def test_asr_repeated_partial_text_is_incremental_not_semantically_deduplicated(
await received(runtime, transport, json.dumps(dict(complete, event_id="asr-again")))
await until(lambda: runtime.control_count == 0)
transcripts = [e for e in out if e.get("role") == "user"]
assert [(e["text"], e["status"]) for e in transcripts] == [
(text, "partial"), (text, "partial"), (text + text, "completed")]
assert ''.join(e['text'] for e in transcripts if e['status'] == 'partial') == text + text
assert [(e['text'], e['status']) for e in transcripts if e['status'] != 'partial'] == [
(text + text, 'completed')]
assert all(e["turn_ref"] == turn.ref for e in transcripts)
assert not commands(transport, "response.create") and not runtime.calls
finally: