fixing [#868] bug where deepgram client fails due to langauge

This commit is contained in:
Vaibhav159
2024-12-16 17:47:50 +05:30
parent 09a611d44b
commit facc280599

View File

@@ -138,6 +138,9 @@ class DeepgramSTTService(STTService):
merged_options = default_options
if live_options:
merged_options = LiveOptions(**{**default_options.to_dict(), **live_options.to_dict()})
# deepgram connection requires language to be a string
merged_options.language = merged_options.language.value
self._settings = merged_options.to_dict()
self._client = DeepgramClient(