stt tts settings.py
frdel committed
Jul 12, 2025 at 23:54 UTC
edff42cae8b22bb3634798076707fbcde901a7a8
1 file changed
+14
-2
python/helpers/settings.py
+14
-2
@@ -71,6 +71,8 @@ class Settings(TypedDict):
71
stt_silence_duration: int
72
stt_waiting_timeout: int
73
74
+ tts_enabled: bool
75
+
76
mcp_servers: str
77
mcp_client_init_timeout: int
78
mcp_client_tool_timeout: int
@@ -691,13 +693,24 @@ def convert_out(settings: Settings) -> SettingsOutput:
693
}
694
)
695
694
- stt_section: SettingsSection = {
696
# TTS fields
697
tts_fields: list[SettingsField] = []
698
699
tts_fields.append(
700
{
701
"id": "tts_enabled",
702
+ "title": "Enable Kokoro TTS",
703
+ "description": "Enable server-side AI text-to-speech (Kokoro)",
704
+ "type": "switch",
705
+ "value": settings["tts_enabled"],
706
+ }
707
+ )
708
+
709
+ speech_section: SettingsSection = {
710
+ "id": "speech",
711
+ "title": "Speech",
712
+ "description": "Voice transcription and speech synthesis settings.",
713
+ "fields": stt_fields + tts_fields,
714
"tab": "agent",
715
}
716
@@ -826,7 +839,6 @@ def convert_out(settings: Settings) -> SettingsOutput:
839
util_model_section,
840
browser_model_section,
841
embed_model_section,
829
- stt_section,
842
speech_section,
843
api_keys_section,
844
auth_section,