We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46825a9 commit 3089e34Copy full SHA for 3089e34
api/services/audio_service.py
@@ -49,9 +49,8 @@ def transcript_asr(
49
else:
50
app_model_config: AppModelConfig = app_model.app_model_config
51
52
- if not hasattr(app_model_config, "speech_to_text_dict") or not app_model_config.speech_to_text_dict.get(
53
- "enabled"
54
- ):
+ if (not hasattr(app_model_config, "speech_to_text_dict") or
+ not app_model_config.speech_to_text_dict.get("enabled")):
55
raise ValueError("Speech to text is not enabled")
56
57
speech_to_text_dict = app_model_config.speech_to_text_dict
0 commit comments