Commit Graph
12 Commits
Author SHA1 Message Date
Théo Monnom ee19eb66e8 Merge STT lifecycle fixes into v2.0 2026-11-18 04:08:59 -08:00
Théo Monnom 09262038db Harden realtime, worker and recording boundaries
Run realtime DST scenarios through production provider bookkeeping, with
asynchronous transcription, provider failures, response correlation and
cross-provider history coverage. Ignore unknown provider messages and
settle pending operations when streams or host tasks disappear.

Make job phases own their operations, preserve token restrictions on
refresh, validate inference options and contain failures at external
boundaries. Remove the duplicate Rust media benchmark.

Compare recordings against independent speaker PCM and keep transcripts,
provider spans and reports on the session audio clock across wall-clock
corrections. Preserve silence duration in Gladia energy filtering.

Add regression tests and document the provider and recording audit
findings, including the remaining backend waveform issue and two
independently reproduced baseline storage DST failures.
2026-11-18 04:07:42 -08:00
Théo Monnom eb98b57479 fix: preserve final STT responses across provider shutdown 2026-11-18 04:06:31 -08:00
Théo Monnom b2c0fb5b0c Unify provider streams and harden voice lifecycle persistence
Migrate provider WebSocket handling to shared typed protocols, pooling, pacing, and idle timers. Preserve SmallestAI continuations with response-based silence completion and isolated segments.

Keep connection acquisition, reconnect controls, stream cleanup, and host wrapper ownership safe across cancellation. Consolidate provider interfaces and typed MCP contracts.

Normalize pending speech boundaries and preserve conversation identity, ordering, late results, and acknowledged checkpoints across overlapping voice runs. Extend deterministic regressions, storage observations, and lifecycle documentation.

Validation: rebuilt extension; 2900 Python tests passed; formatting, lint, and type checks passed. Rust, binding, codegen, and deterministic simulation checks are recorded in the audit and lifecycle verification records.
2026-11-14 16:10:47 -08:00
Théo Monnom 9b296ceb9f realtime: one RealtimeModel, a plugin without session() refused at definition; stt: a provider that transcribes after the speech ends holds its end for the final 2026-11-13 23:45:44 -08:00
Théo Monnom 72f4f34721 websocket: a private transport with one plain base per kind (stt, tts, realtime); STT turns take the interim at commit and late finals correct by utterance; layers enforced by an import-boundary test 2026-11-13 22:54:39 -08:00
Théo Monnom c74fa34dcc plugins: 29 socket plugins on the base, aws/azure/spatius/speechmatics/upliftai off their SDKs; host proxies weak unless owned, every facade freed after close 2026-11-13 18:12:49 -08:00
Théo Monnom 89b146579d typed provider errors decided by the core, storage answers each request once and orders rows by position, socket/avatar/forwarding bases, plugin contract tests 2026-11-13 13:08:09 -08:00
Théo Monnom 9e79bc520b errors reach their owner: awaited outcomes are read, fallbacks decided in the core, one shared helper per provider protocol (close codes, retries, usage, input audio, G.711, provider detail) 2026-11-13 09:50:33 -08:00
Théo Monnom 523387a614 providers: values read when used, capabilities fixed at construction; every Python task owned; tests never wait in real time 2026-11-12 23:49:19 -08:00
Théo Monnom e4d3c71a6a tts: options owned by the core, one final error event; tests current, fast and bounded by a 10 s timeout 2026-11-12 16:18:34 -08:00
Théo Monnom 82d546f599 repo: the Python SDK moves under python/, the generated OTel registry to otel/; no pydantic-ai comparisons 2026-11-12 13:20:11 -08:00