From cf2f249f8aa0b701a12e665d9f8bdc28c9dc46ec Mon Sep 17 00:00:00 2001 From: Jin Kim Date: Sun, 27 Apr 2025 19:33:14 +0900 Subject: [PATCH 1/3] Use "use_original_timestamps" only for sonic-2 model --- src/pipecat/services/cartesia/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/cartesia/tts.py b/src/pipecat/services/cartesia/tts.py index 2acabd541..d7334420b 100644 --- a/src/pipecat/services/cartesia/tts.py +++ b/src/pipecat/services/cartesia/tts.py @@ -166,7 +166,7 @@ class CartesiaTTSService(AudioContextWordTTSService): "output_format": self._settings["output_format"], "language": self._settings["language"], "add_timestamps": add_timestamps, - "use_original_timestamps": True, + "use_original_timestamps": True if self.model_name == "sonic-2" else False, } return json.dumps(msg) From a4c04e7c179dce4afd6a730c56eff30aa05fe098 Mon Sep 17 00:00:00 2001 From: Jin Kim Date: Sun, 18 May 2025 16:52:37 +0900 Subject: [PATCH 2/3] Opt out Sonic models from use_original_timestamps --- src/pipecat/services/cartesia/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/cartesia/tts.py b/src/pipecat/services/cartesia/tts.py index c0b1fd09e..bc7b1f121 100644 --- a/src/pipecat/services/cartesia/tts.py +++ b/src/pipecat/services/cartesia/tts.py @@ -167,7 +167,7 @@ class CartesiaTTSService(AudioContextWordTTSService): "output_format": self._settings["output_format"], "language": self._settings["language"], "add_timestamps": add_timestamps, - "use_original_timestamps": True if self.model_name == "sonic-2" else False, + "use_original_timestamps": False if self.model_name == "sonic" else True, } return json.dumps(msg) From c4b35055b4ec099ceb74c0102d1ce6d30588b294 Mon Sep 17 00:00:00 2001 From: Jin Kim Date: Sun, 18 May 2025 16:54:29 +0900 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e01359589..b83d77d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -74,6 +74,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Removed `SileroVAD` frame processor, just use `SileroVADAnalyzer` instead. Also removed, `07a-interruptible-vad.py` example. +### Fixed + +- Fixed an issue with `CartesiaTTSService` where `TTSTextFrame` messages weren't being emitted when the model was set to `sonic`. This resulted in the assistant context not being updated with assistant messages. + ### Other - Added foundation example `07y-minimax-http.py` to show how to use the