Add supports_synthesize_streaming=True to TtsProgram
All checks were successful
Build ROCm Image / build (push) Successful in 4m56s

Without this flag HA buffers all audio until AudioStop before forwarding
to the media player. With it, HA streams AudioChunk events to the player
as they arrive, so playback starts on the first chunk rather than after
the full text is synthesized.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-05 16:52:02 -04:00
parent d0f13dea8d
commit 3d3e8bdabf

View File

@@ -95,6 +95,7 @@ def create_wyoming_info(sample_rate: int, voices: Dict[str, str]) -> Info:
installed=True, installed=True,
voices=tts_voices, voices=tts_voices,
version="1.0", version="1.0",
supports_synthesize_streaming=True,
) )
] ]
) )