Record speech end-to-end latency for Phonon TTS #746
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 116 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.285
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #746"
general
weight: 0.35
jackboyla
Fixes #745.
With
--tts phonon, the turn latency line always reportede2e=n/a.PhononTTSHandlerrecorded time to first audio but never recorded speech end-to-end latency.record_response_e2eonce, when the first output block is yielded. This includes a short final padded block. It usesTTSInput.speech_stopped_at_s, as Pocket, Kokoro, ChatTTS, MMS, OmniVoice, Qwen3 and the OpenAI-compatible handler do.record_response_tts_ttfahelper instead of the inline tracker lookup.The Phonon Space currently patches v1.1.0 to record E2E the same way. After this is released, it can drop
patches/phonon-latency.patch.Validation: ruff,
ruff format --check, and mypy pass. The Phonon handler, backend registry and pipeline builder tests pass: 134 passed, 1 skipped.