feat(voice): wire composed voice into gateway and prewarm TTS - #326
Merged
gac0812 merged 4 commits intoAug 20, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Reviewed the fixed 6a896276a1950546c0f2e1b6b26f82cc73ec4085...945e2e408a37d5fe3e9af2ea3106ab8bc2a1b52f diff across composition-root wiring, gateway lifecycle hooks, speech/TTS prewarming, settings, and associated tests. I found no actionable correctness, reliability, security, or compatibility regressions meeting the review threshold.
Validation: python3 -m compileall -q backend/src backend/tests and git diff --check passed. The focused pytest suite could not run because pytest and uv are not installed in the workspace.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #312
把组合式语音接入网关并做 TTS 预热(依赖 #319 的组合式编排器):
composition.py:build_composed_voice_agent组合根,装配 ASR + LLM + TTS + Agentcomposed_audio.py:ComposedAgentAudioSink网关适配器(consume / interrupt / close_session)ports.py:新增AudioSessionLifecycle会话生命周期契约voice_stream.py:新流触发interrupt、断连触发close_sessionmain.py:TIMEFLOW_VOICE_AGENT_MODE=2分派到组合式 agent,移除原 mode-2 的 RuntimeError 占位pipeline.py+qwen_audio_tts.py:speech_expected提前建立 TTS 连接,WebSocket 握手与分词并行settings.py:VAD 阈值 0.0 → 0.6,抑制背景噪声误触发