Files
rocm-chatterbox-whisper/wyoming_handler.py
scott a196294d4a
Some checks failed
Build ROCm Image / build (push) Has been cancelled
Fix Wyoming protocol: remove SynthesizeStopped from Synthesize path
The plain Synthesize event (HA's standard TTS path) should NOT be
followed by SynthesizeStopped. That event belongs only to the streaming
protocol (SynthesizeStart/Chunk/Stop). Sending it after Synthesize
confuses HA's Wyoming client, causing it to hang indefinitely.

Also:
- Guard Synthesize path against duplicate events during streaming
- Send audio as one AudioChunk per sentence (matches working reference)
- Remove numpy import (no longer needed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 16:22:47 -04:00

5.5 KiB