[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
parent 357334e3c9
commit f843482968

View File

@@ -249,7 +249,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):