Compare commits

...

2 Commits

Author SHA1 Message Date
macaki
713d20e4fc formatting 2025-03-12 14:47:10 -04:00
macaki
adc45bd282 [rime client] Sending over trailing space to help indicate end of utterance after a punctuation. 2025-03-12 14:46:54 -04:00

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):