Merge pull request #2538 from rimelabs/rime-flush-audio-update

Use Rime’s official {"operation": "flush"} command in flush_audio() for proper text buffer flushing
This commit is contained in:
Mark Backman
2025-09-01 18:01:20 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -323,7 +323,7 @@ class RimeTTSService(AudioContextWordTTSService):
return
logger.trace(f"{self}: flushing audio")
await self._get_websocket().send(json.dumps({"text": " "}))
await self._get_websocket().send(json.dumps({"operation": "flush"}))
self._context_id = None
async def _receive_messages(self):