From 073b585c52d33994679f62f35a22aaec3b460526 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 17 Sep 2025 07:10:31 -0400 Subject: [PATCH] fix: AsyncAITTSService wasn't pushing TTSTextFrames --- CHANGELOG.md | 6 ++++-- src/pipecat/services/asyncai/tts.py | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3404d1ab..756f0ca52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,8 +26,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `torch` and `torchaudio` are no longer required for running Smart Turn locally. This avoids gigabytes of dependencies being installed. -### Changed - - Updated `websockets` dependency to support version 15.0. Removed deprecated usage of `ConnectionClosed.code` and `ConnectionClosed.reason` attributes in `AWSTranscribeSTTService` for compatibility. @@ -44,10 +42,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed an issue in `AsyncAITTSService`, where `TTSTextFrames` were not being + pushed. + - Fixed an issue that would cause `push_interruption_task_frame_and_wait()` to not wait if a previous interruption had already happened. - Fixed a couple of bugs in `ServiceSwitcher`: + - Using multiple `ServiceSwitcher`s in a pipeline would result in an error. - `ServiceSwitcherFrame`s (such as `ManuallySwitchServiceFrame`s) were having an effect too early, essentially "jumping the queue" in terms of pipeline diff --git a/src/pipecat/services/asyncai/tts.py b/src/pipecat/services/asyncai/tts.py index a453d6820..b0ddf9275 100644 --- a/src/pipecat/services/asyncai/tts.py +++ b/src/pipecat/services/asyncai/tts.py @@ -119,7 +119,6 @@ class AsyncAITTSService(InterruptibleTTSService): """ super().__init__( aggregate_sentences=aggregate_sentences, - push_text_frames=False, pause_frame_processing=True, push_stop_frames=True, sample_rate=sample_rate,