diff --git a/CHANGELOG.md b/CHANGELOG.md index 60e4151af..615ad05c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `pipecat.frames.frames.KeypadEntry` is deprecated and has been moved to `pipecat.audio.dtmf.types.KeypadEntry`. +- Updated `RimeTTSService`'s flush_audio message to conform with Rime's official API. + ## Removed - Remove `StopInterruptionFrame`. This was a legacy frame that was not being diff --git a/src/pipecat/services/rime/tts.py b/src/pipecat/services/rime/tts.py index e18df2742..be979b7f9 100644 --- a/src/pipecat/services/rime/tts.py +++ b/src/pipecat/services/rime/tts.py @@ -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):