From fda655f6d72f1522568e3b4a6d87836a5b455477 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Mon, 15 Sep 2025 22:08:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=20TTS=20=E6=88=96=E8=80=85=20STT=20=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E4=B9=8B=E5=90=8E=E4=BB=8D=E6=97=A0=E6=B3=95=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=20(#2758)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes: #2731 --- astrbot/core/config/default.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 05daeb10b..7a4c2b6b0 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -1903,17 +1903,31 @@ CONFIG_METADATA_3 = { "_special": "select_provider", "hint": "留空代表不使用。可用于不支持视觉模态的聊天模型。", }, + "provider_stt_settings.enable": { + "description": "默认启用语音转文本", + "type": "bool", + }, "provider_stt_settings.provider_id": { "description": "语音转文本模型", "type": "string", "hint": "留空代表不使用。", "_special": "select_provider_stt", + "condition": { + "provider_stt_settings.enable": True, + }, + }, + "provider_tts_settings.enable": { + "description": "默认启用文本转语音", + "type": "bool", }, "provider_tts_settings.provider_id": { "description": "文本转语音模型", "type": "string", "hint": "留空代表不使用。", "_special": "select_provider_tts", + "condition": { + "provider_tts_settings.enable": True, + }, }, "provider_settings.image_caption_prompt": { "description": "图片转述提示词",