fixing deepgram mismatch

This commit is contained in:
Vaibhav159
2025-02-21 09:32:40 +05:30
parent 7e5e167a4b
commit 9c5fe5c85e
2 changed files with 5 additions and 0 deletions

View File

@@ -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`.

View File

@@ -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(