ciyidogan commited on
Commit
90bf65f
·
verified ·
1 Parent(s): e2b4629

Update config_provider.py

Browse files
Files changed (1) hide show
  1. config_provider.py +14 -1
config_provider.py CHANGED
@@ -72,7 +72,20 @@ class GlobalConfig(BaseModel):
72
  from encryption_utils import decrypt
73
  return decrypt(self.stt_engine_api_key)
74
  return self.stt_engine_api_key
75
-
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  def is_cloud_mode(self) -> bool:
77
  """Check if running in cloud mode (hfcloud or cloud)"""
78
  return self.work_mode in ("hfcloud", "cloud")
 
72
  from encryption_utils import decrypt
73
  return decrypt(self.stt_engine_api_key)
74
  return self.stt_engine_api_key
75
+
76
+ def get_stt_settings(self) -> Dict[str, Any]:
77
+ """Get STT settings with defaults"""
78
+ return self.stt_settings or {
79
+ "speech_timeout_ms": 2000,
80
+ "noise_reduction_level": 2,
81
+ "vad_sensitivity": 0.5,
82
+ "language": "tr-TR",
83
+ "model": "latest_long",
84
+ "use_enhanced": True,
85
+ "enable_punctuation": True,
86
+ "interim_results": True
87
+ }
88
+
89
  def is_cloud_mode(self) -> bool:
90
  """Check if running in cloud mode (hfcloud or cloud)"""
91
  return self.work_mode in ("hfcloud", "cloud")