[rime client] Sending over trailing space to help indicate end of utterance after a punctuation.

This commit is contained in:
macaki
2025-03-12 11:26:43 -06:00
committed by Mark Backman
parent fc544fa61c
commit adc45bd282

View File

@@ -244,7 +244,9 @@ class RimeTTSService(AudioContextWordTTSService):
async def flush_audio(self):
if not self._context_id or not self._websocket:
return
logger.trace(f"{self}: flushing audio")
await self._get_websocket().send(json.dumps({"text": " "}))
self._context_id = None
async def _receive_messages(self):