From a649aff3e7664a38dffcb1ef48bac0c40655a5ad Mon Sep 17 00:00:00 2001 From: Patryk <110726755+0xPatryk@users.noreply.github.com> Date: Mon, 21 Apr 2025 11:03:45 +0200 Subject: [PATCH] Fixed AttributeError: 'OpenAITTSService' object has no attribute '_sample_rate' --- src/pipecat/services/openai/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipecat/services/openai/tts.py b/src/pipecat/services/openai/tts.py index 01a8fb7d8..634b0a22e 100644 --- a/src/pipecat/services/openai/tts.py +++ b/src/pipecat/services/openai/tts.py @@ -70,7 +70,7 @@ class OpenAITTSService(TTSService): if sample_rate and sample_rate != self.OPENAI_SAMPLE_RATE: logger.warning( f"OpenAI TTS only supports {self.OPENAI_SAMPLE_RATE}Hz sample rate. " - f"Current rate of {self.sample_rate}Hz may cause issues." + f"Current rate of {sample_rate}Hz may cause issues." ) super().__init__(sample_rate=sample_rate, **kwargs)