You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to change the language recognition of Deepgram API? I want him to recognize it as Chinese instead of English. I tried to modify the language in DeepgramSTTModel in the transfer_models.py file, but still can only recognize English
#189
Closed
willt0 opened this issue
Mar 29, 2024
· 3 comments
def __init__(self, stt_model_config: dict):
# Check for api_key
if stt_model_config["api_key"] is None:
raise Exception("Attempt to create Deepgram STT Model without an api key.") # pylint: disable=W0719
# self.lang = 'en-US'
self.lang = 'zh-CN'
print('[INFO] Using Deepgram API for transcription.')
self.audio_model = DeepgramClient(stt_model_config["api_key"])
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: