ciyidogan commited on
Commit
b9d9155
·
verified ·
1 Parent(s): e90d3a0

Update stt/stt_factory.py

Browse files
Files changed (1) hide show
  1. stt/stt_factory.py +8 -0
stt/stt_factory.py CHANGED
@@ -16,6 +16,12 @@ try:
16
  except ImportError:
17
  log_info("⚠️ Google Cloud STT not available")
18
 
 
 
 
 
 
 
19
  try:
20
  from .stt_azure import AzureSTT
21
  stt_providers['azure'] = AzureSTT
@@ -83,6 +89,8 @@ class STTFactory:
83
  if stt_engine == "google":
84
  # For Google, api_key is the path to credentials JSON
85
  return provider_class(credentials_path=api_key)
 
 
86
  elif stt_engine == "azure":
87
  # For Azure, parse the key format
88
  parts = api_key.split('|')
 
16
  except ImportError:
17
  log_info("⚠️ Google Cloud STT not available")
18
 
19
+ try:
20
+ from .stt_deepgram import DeepgramSTT
21
+ stt_providers['deepgram'] = DeepgramSTT
22
+ except ImportError:
23
+ log_info("⚠️ Deepgram STT not available")
24
+
25
  try:
26
  from .stt_azure import AzureSTT
27
  stt_providers['azure'] = AzureSTT
 
89
  if stt_engine == "google":
90
  # For Google, api_key is the path to credentials JSON
91
  return provider_class(credentials_path=api_key)
92
+ elif stt_engine == "deepgram":
93
+ return provider_class(api_key=api_key)
94
  elif stt_engine == "azure":
95
  # For Azure, parse the key format
96
  parts = api_key.split('|')