diff --git a/CHANGELOG.md b/CHANGELOG.md index dd4ca7269..79c663e7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,10 @@ stt = DeepgramSTTService(..., live_options=LiveOptions(model="nova-2-general")) - Fixed a `STTMuteFilter` issue that would not mute user audio frames causing transcriptions to be generated by the STT service. +- Fixes an issue in `DeepgramSTTService` where `sample_rate` passed to the + `LiveOptions` was not being used, causing the service to use the default + sample rate of pipeline. + ### Other - Added Gemini support to `examples/phone-chatbot`. diff --git a/src/pipecat/services/deepgram.py b/src/pipecat/services/deepgram.py index 010c2c626..22879ab0e 100644 --- a/src/pipecat/services/deepgram.py +++ b/src/pipecat/services/deepgram.py @@ -124,6 +124,7 @@ class DeepgramSTTService(STTService): addons: Optional[Dict] = None, **kwargs, ): + sample_rate = sample_rate or (live_options.sample_rate if live_options else None) super().__init__(sample_rate=sample_rate, **kwargs) default_options = LiveOptions(