feat(relay): add echo_gate_enabled toggle to bypass echo gate on no-echo paths#66
Merged
Merged
Conversation
…cho paths Session B echo gate injects silence during Session A TTS to suppress acoustic echo. On a handset/headset there is no acoustic echo path, so this deletes the recipient's real speech (confirmed in prod: recipient at peak_rms=2092 fully silenced -> buffer 0.00ms -> 15s timeout -> hallucinated filler). Add env-gated echo_gate_enabled (default True, behavior-neutral). When False, EchoGateManager passes all audio through. - config.py: echo_gate_enabled: bool = True - echo_gate.py: enabled param + guards in _activate/on_tts_done/filter_audio - voice_to_voice.py, text_to_voice.py: pass enabled=settings.echo_gate_enabled - tests: 4 new (disabled no-ops + enabled control), 86 pass Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
배경
7/4 00:35 KST에 US VM(
wigvo-relay)에feat/echo-gate-toggle-demo브랜치(f9af061)가 수동 배포되어, 프로덕션이 main과 다른 코드를 돌고 있습니다. 이 PR은 그 배포된 변경을 main에 정식으로 머지해서 코드와 프로덕션을 다시 일치시킵니다.feat/echo-gate-toggle)는 demo 브랜치와 patch-id가 동일한 커밋을 현재 main 위에 리베이스한 것입니다.변경 내용
echo_gate_enabled설정 토글 추가 — 에코가 물리적으로 발생하지 않는 경로에서 echo gate를 우회echo_gate.py에 우회 분기,text_to_voice.py/voice_to_voice.py에 토글 전달test_echo_gate.py)🤖 Generated with Claude Code