From be8d4dfd87c3419a16ce422dae79f767c8c4d8c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Mon, 30 Mar 2026 14:29:30 -0700 Subject: [PATCH] TTSService: remove deprecated say() function --- src/pipecat/services/tts_service.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/pipecat/services/tts_service.py b/src/pipecat/services/tts_service.py index f33515e68..72830078b 100644 --- a/src/pipecat/services/tts_service.py +++ b/src/pipecat/services/tts_service.py @@ -635,27 +635,6 @@ class TTSService(AIService): return changed - async def say(self, text: str): - """Immediately speak the provided text. - - .. deprecated:: 0.0.79 - Push a `TTSSpeakFrame` instead to ensure frame ordering is maintained. - - Args: - text: The text to speak. - """ - import warnings - - with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "`TTSService.say()` is deprecated. Push a `TTSSpeakFrame` instead.", - DeprecationWarning, - stacklevel=2, - ) - - await self.queue_frame(TTSSpeakFrame(text)) - async def on_turn_context_created(self, context_id: str): """Called when a new turn context ID has been created.