From c64b1e7e15d18e770e791ed6f29b13f4dcd10b0b Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 13:23:34 +0800 Subject: [PATCH 1/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=95=86proxy=E7=9A=84i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/i18n/locales/en-US/features/config-metadata.json | 4 ++++ .../src/i18n/locales/zh-CN/features/config-metadata.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 9665e893a..2826501e4 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -1130,6 +1130,10 @@ "description": "Service subscription key", "hint": "Azure TTS subscription key (not a token)." }, + "proxy": { + "description": "Proxy Address", + "hint": "HTTP/HTTPS proxy address, format: http://127.0.0.1:7890. Only takes effect for API requests to this provider and does not affect Docker internal network communication." + }, "dashscope_tts_voice": { "description": "Voice" }, diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index de7e81bcd..ba5b510d7 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -1133,6 +1133,10 @@ "description": "服务订阅密钥", "hint": "Azure_TTS 服务的订阅密钥(注意不是令牌)" }, + "proxy": { + "description": "代理地址", + "hint": "HTTP/HTTPS 代理地址,格式如 http://127.0.0.1:7890。仅对该提供商的 API 请求生效,不影响 Docker 内网通信。" + }, "dashscope_tts_voice": { "description": "音色" }, From b98d0a8efd68a163841f4820bc84577a21d84767 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 15:59:13 +0800 Subject: [PATCH 2/9] =?UTF-8?q?add:=E6=B7=BB=E5=8A=A0tts=E6=8F=90=E4=BE=9B?= =?UTF-8?q?=E5=95=86=E7=BC=BA=E5=A4=B1=E7=9A=84i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/config/default.py | 60 +++++++++++++++ .../en-US/features/config-metadata.json | 48 ++++++++++++ .../zh-CN/features/config-metadata.json | 73 ++++++++++++++++--- 3 files changed, 169 insertions(+), 12 deletions(-) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 2b2ad3959..2bd6afebc 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -1534,6 +1534,66 @@ class ChatProviderTemplate(TypedDict): }, }, "items": { + "gemini_tts_api_key": { + "description": "Google Gemini TTS API 密钥", + "type": "string", + "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" + }, + "gemini_tts_api_base": { + "description": "Google Gemini TTS API 基础地址", + "type": "string", + "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。" + }, + "gemini_tts_timeout": { + "description": "Google Gemini TTS 超时时间", + "type": "integer", + "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。" + }, + "gemini_tts_model": { + "description": "Google Gemini TTS 模型选择", + "type": "string", + "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。" + }, + "gemini_tts_prefix": { + "description": "Google Gemini TTS 前缀设置", + "type": "string", + "hint": "可选参数,用于在合成语音前添加特定前缀文本。" + }, + "gemini_tts_voice_name": { + "description": "Google Gemini TTS 音色选择", + "type": "string", + "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。" + }, + "character": { + "description": "GPT-SoVITS 角色选择", + "type": "string", + "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。" + }, + "emotion": { + "description": "GPT-SoVITS 情感选择", + "type": "string", + "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" + }, + "edge-tts-voice": { + "description": "Edge TTS 音色选择", + "type": "string", + "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" + }, + "rate": { + "description": "Edge TTS 语速调节", + "type": "string", + "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。" + }, + "volume": { + "description": "Edge TTS 音量调节", + "type": "string", + "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。" + }, + "pitch": { + "description": "Edge TTS 音调调节", + "type": "string", + "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。" + }, "genie_onnx_model_dir": { "description": "ONNX Model Directory", "type": "string", diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 2826501e4..9fdfc50aa 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -916,6 +916,54 @@ }, "provider_group": { "provider": { + "gemini_tts_api_key": { + "description": "Google Gemini TTS API Key", + "hint": "Please obtain the Gemini TTS API key from Google Cloud Console for authentication and service calls." + }, + "gemini_tts_api_base": { + "description": "Google Gemini TTS API Base URL", + "hint": "The API endpoint URL for Gemini TTS service. Default value is usually sufficient, modify only for special network environments." + }, + "gemini_tts_timeout": { + "description": "Google Gemini TTS Timeout", + "hint": "Set API request timeout in seconds. 20 seconds is recommended, increase if network is poor." + }, + "gemini_tts_model": { + "description": "Google Gemini TTS Model Selection", + "hint": "Select the TTS model to use. Default is gemini-2.5-flash-preview-tts, different models may support different features." + }, + "gemini_tts_prefix": { + "description": "Google Gemini TTS Prefix Setting", + "hint": "Optional parameter to add specific prefix text before speech synthesis." + }, + "gemini_tts_voice_name": { + "description": "Google Gemini TTS Voice Selection", + "hint": "Select the voice for speech synthesis. Default is Leda, refer to official documentation for different voice effects." + }, + "character": { + "description": "GPT-SoVITS Character Selection", + "hint": "Select the voice character to use. The corresponding character model needs to be configured in GPT-SoVITS service in advance." + }, + "emotion": { + "description": "GPT-SoVITS Emotion Selection", + "hint": "Select the emotional style for speech synthesis. Default is default, available emotions depend on character model support." + }, + "edge-tts-voice": { + "description": "Edge TTS Voice Selection", + "hint": "Select the voice character for Microsoft Edge TTS. Default is zh-CN-XiaoxiaoNeural, refer to Microsoft official documentation for complete list." + }, + "rate": { + "description": "Edge TTS Speech Rate Adjustment", + "hint": "Adjust speech rate. Format like +0% means normal rate, can increase or decrease percentage." + }, + "volume": { + "description": "Edge TTS Volume Adjustment", + "hint": "Adjust speech volume. Format like +0% means normal volume, can increase or decrease percentage." + }, + "pitch": { + "description": "Edge TTS Pitch Adjustment", + "hint": "Adjust speech pitch. Format like +0Hz means normal pitch, can increase or decrease Hz value." + }, "genie_onnx_model_dir": { "description": "ONNX Model Directory", "hint": "The directory path containing the ONNX model files" diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index ba5b510d7..88abe3642 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -139,7 +139,7 @@ "description": "文档解析提供商" }, "moonshotai_api_key": { - "description": "Moonshot AI API Key" + "description": "Moonshot AI API 密钥" } } } @@ -486,20 +486,20 @@ "hint": "必填项。" }, "slack_connection_mode": { - "description": "Slack Connection Mode", - "hint": "The connection mode for Slack. `webhook` uses a webhook server, `socket` uses Slack's Socket Mode." + "description": "Slack 连接模式", + "hint": "Slack 的连接模式。`webhook` 使用 Webhook 服务器,`socket` 使用 Slack 的 Socket 模式。" }, "slack_webhook_host": { - "description": "Slack Webhook Host", - "hint": "Only valid when Slack connection mode is `webhook`." + "description": "Slack Webhook 主机", + "hint": "仅在 Slack 连接模式为 `webhook` 时有效。" }, "slack_webhook_path": { - "description": "Slack Webhook Path", - "hint": "Only valid when Slack connection mode is `webhook`." + "description": "Slack Webhook 路径", + "hint": "仅在 Slack 连接模式为 `webhook` 时有效。" }, "slack_webhook_port": { - "description": "Slack Webhook Port", - "hint": "Only valid when Slack connection mode is `webhook`." + "description": "Slack Webhook 端口", + "hint": "仅在 Slack 连接模式为 `webhook` 时有效。" }, "telegram_command_auto_refresh": { "description": "Telegram 命令自动刷新", @@ -919,12 +919,61 @@ }, "provider_group": { "provider": { + "gemini_tts_api_key": { + "description": "Google Gemini TTS API 密钥", + "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" + }, + "gemini_tts_api_base": { + "description": "Google Gemini TTS API 基础地址", + "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。" + }, + "gemini_tts_timeout": { + "description": "Google Gemini TTS 超时时间", + "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。" + }, + "gemini_tts_model": { + "description": "Google Gemini TTS 模型选择", + "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。" + }, + "gemini_tts_prefix": { + "description": "Google Gemini TTS 前缀设置", + "hint": "可选参数,用于在合成语音前添加特定前缀文本。" + }, + "gemini_tts_voice_name": { + "description": "Google Gemini TTS 音色选择", + "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。" + }, + "character": { + "description": "GPT-SoVITS 角色选择", + "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。" + }, + "emotion": { + "description": "GPT-SoVITS 情感选择", + "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" + }, + "edge-tts-voice": { + "description": "Edge TTS 音色选择", + "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" + }, + "rate": { + "description": "Edge TTS 语速调节", + "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。" + }, + "volume": { + "description": "Edge TTS 音量调节", + "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。" + }, + "pitch": { + "description": "Edge TTS 音调调节", + "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。" + }, "genie_onnx_model_dir": { - "description": "ONNX Model Directory", - "hint": "The directory path containing the ONNX model files" + "description": "ONNX 模型目录", + "hint": "包含 ONNX 模型文件的目录路径" }, "genie_language": { - "description": "Language" + "description": "语言", + "hint": "设置 Genie 使用的语言" }, "xai_native_search": { "description": "启用原生搜索功能", From 5eab2540c8d2fd2d7cf8d828fc44ada6175ec6b7 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 16:01:32 +0800 Subject: [PATCH 3/9] =?UTF-8?q?add:=E6=89=A7=E8=A1=8Cruff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/agent/handoff.py | 1 - astrbot/core/config/default.py | 24 ++++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/astrbot/core/agent/handoff.py b/astrbot/core/agent/handoff.py index 8475009d3..9510f76cb 100644 --- a/astrbot/core/agent/handoff.py +++ b/astrbot/core/agent/handoff.py @@ -15,7 +15,6 @@ def __init__( tool_description: str | None = None, **kwargs, ) -> None: - # Avoid passing duplicate `description` to the FunctionTool dataclass. # Some call sites (e.g. SubAgentOrchestrator) pass `description` via kwargs # to override what the main agent sees, while we also compute a default diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 2bd6afebc..81b5af6f8 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -1537,62 +1537,62 @@ class ChatProviderTemplate(TypedDict): "gemini_tts_api_key": { "description": "Google Gemini TTS API 密钥", "type": "string", - "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" + "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。", }, "gemini_tts_api_base": { "description": "Google Gemini TTS API 基础地址", "type": "string", - "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。" + "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。", }, "gemini_tts_timeout": { "description": "Google Gemini TTS 超时时间", "type": "integer", - "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。" + "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。", }, "gemini_tts_model": { "description": "Google Gemini TTS 模型选择", "type": "string", - "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。" + "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。", }, "gemini_tts_prefix": { "description": "Google Gemini TTS 前缀设置", "type": "string", - "hint": "可选参数,用于在合成语音前添加特定前缀文本。" + "hint": "可选参数,用于在合成语音前添加特定前缀文本。", }, "gemini_tts_voice_name": { "description": "Google Gemini TTS 音色选择", "type": "string", - "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。" + "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。", }, "character": { "description": "GPT-SoVITS 角色选择", "type": "string", - "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。" + "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。", }, "emotion": { "description": "GPT-SoVITS 情感选择", "type": "string", - "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" + "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。", }, "edge-tts-voice": { "description": "Edge TTS 音色选择", "type": "string", - "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" + "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。", }, "rate": { "description": "Edge TTS 语速调节", "type": "string", - "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。" + "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。", }, "volume": { "description": "Edge TTS 音量调节", "type": "string", - "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。" + "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。", }, "pitch": { "description": "Edge TTS 音调调节", "type": "string", - "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。" + "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。", }, "genie_onnx_model_dir": { "description": "ONNX Model Directory", From 9ec57a74066406e6519844c86384899b9c8aa80e Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 16:02:29 +0800 Subject: [PATCH 4/9] =?UTF-8?q?fix:=E6=95=B4=E7=90=86=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../en-US/features/config-metadata.json | 46 +++++++++--------- .../zh-CN/features/config-metadata.json | 48 +++++++++---------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 9fdfc50aa..66c8d68a5 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -917,52 +917,52 @@ "provider_group": { "provider": { "gemini_tts_api_key": { - "description": "Google Gemini TTS API Key", - "hint": "Please obtain the Gemini TTS API key from Google Cloud Console for authentication and service calls." + "description": "Google Gemini TTS API Key", + "hint": "Please obtain the Gemini TTS API key from Google Cloud Console for authentication and service calls." }, "gemini_tts_api_base": { - "description": "Google Gemini TTS API Base URL", + "description": "Google Gemini TTS API Base URL", "hint": "The API endpoint URL for Gemini TTS service. Default value is usually sufficient, modify only for special network environments." }, "gemini_tts_timeout": { - "description": "Google Gemini TTS Timeout", - "hint": "Set API request timeout in seconds. 20 seconds is recommended, increase if network is poor." + "description": "Google Gemini TTS Timeout", + "hint": "Set API request timeout in seconds. 20 seconds is recommended, increase if network is poor." }, "gemini_tts_model": { - "description": "Google Gemini TTS Model Selection", - "hint": "Select the TTS model to use. Default is gemini-2.5-flash-preview-tts, different models may support different features." + "description": "Google Gemini TTS Model Selection", + "hint": "Select the TTS model to use. Default is gemini-2.5-flash-preview-tts, different models may support different features." }, "gemini_tts_prefix": { - "description": "Google Gemini TTS Prefix Setting", - "hint": "Optional parameter to add specific prefix text before speech synthesis." + "description": "Google Gemini TTS Prefix Setting", + "hint": "Optional parameter to add specific prefix text before speech synthesis." }, "gemini_tts_voice_name": { - "description": "Google Gemini TTS Voice Selection", - "hint": "Select the voice for speech synthesis. Default is Leda, refer to official documentation for different voice effects." + "description": "Google Gemini TTS Voice Selection", + "hint": "Select the voice for speech synthesis. Default is Leda, refer to official documentation for different voice effects." }, "character": { - "description": "GPT-SoVITS Character Selection", - "hint": "Select the voice character to use. The corresponding character model needs to be configured in GPT-SoVITS service in advance." + "description": "GPT-SoVITS Character Selection", + "hint": "Select the voice character to use. The corresponding character model needs to be configured in GPT-SoVITS service in advance." }, "emotion": { - "description": "GPT-SoVITS Emotion Selection", - "hint": "Select the emotional style for speech synthesis. Default is default, available emotions depend on character model support." + "description": "GPT-SoVITS Emotion Selection", + "hint": "Select the emotional style for speech synthesis. Default is default, available emotions depend on character model support." }, "edge-tts-voice": { - "description": "Edge TTS Voice Selection", - "hint": "Select the voice character for Microsoft Edge TTS. Default is zh-CN-XiaoxiaoNeural, refer to Microsoft official documentation for complete list." + "description": "Edge TTS Voice Selection", + "hint": "Select the voice character for Microsoft Edge TTS. Default is zh-CN-XiaoxiaoNeural, refer to Microsoft official documentation for complete list." }, "rate": { - "description": "Edge TTS Speech Rate Adjustment", - "hint": "Adjust speech rate. Format like +0% means normal rate, can increase or decrease percentage." + "description": "Edge TTS Speech Rate Adjustment", + "hint": "Adjust speech rate. Format like +0% means normal rate, can increase or decrease percentage." }, "volume": { - "description": "Edge TTS Volume Adjustment", - "hint": "Adjust speech volume. Format like +0% means normal volume, can increase or decrease percentage." + "description": "Edge TTS Volume Adjustment", + "hint": "Adjust speech volume. Format like +0% means normal volume, can increase or decrease percentage." }, "pitch": { - "description": "Edge TTS Pitch Adjustment", - "hint": "Adjust speech pitch. Format like +0Hz means normal pitch, can increase or decrease Hz value." + "description": "Edge TTS Pitch Adjustment", + "hint": "Adjust speech pitch. Format like +0Hz means normal pitch, can increase or decrease Hz value." }, "genie_onnx_model_dir": { "description": "ONNX Model Directory", diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 88abe3642..0781ce515 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -920,52 +920,52 @@ "provider_group": { "provider": { "gemini_tts_api_key": { - "description": "Google Gemini TTS API 密钥", - "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" + "description": "Google Gemini TTS API 密钥", + "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" }, "gemini_tts_api_base": { - "description": "Google Gemini TTS API 基础地址", - "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。" + "description": "Google Gemini TTS API 基础地址", + "hint": "Gemini TTS 服务的 API 接口地址,一般使用默认值即可,特殊网络环境可能需要修改。" }, "gemini_tts_timeout": { - "description": "Google Gemini TTS 超时时间", - "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。" + "description": "Google Gemini TTS 超时时间", + "hint": "设置 API 请求超时时间(秒),建议 20 秒,网络较差时可适当增加。" }, "gemini_tts_model": { - "description": "Google Gemini TTS 模型选择", - "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。" + "description": "Google Gemini TTS 模型选择", + "hint": "选择使用的 TTS 模型,默认为 gemini-2.5-flash-preview-tts,不同模型支持的特性可能不同。" }, "gemini_tts_prefix": { - "description": "Google Gemini TTS 前缀设置", - "hint": "可选参数,用于在合成语音前添加特定前缀文本。" + "description": "Google Gemini TTS 前缀设置", + "hint": "可选参数,用于在合成语音前添加特定前缀文本。" }, "gemini_tts_voice_name": { - "description": "Google Gemini TTS 音色选择", - "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。" + "description": "Google Gemini TTS 音色选择", + "hint": "选择合成语音的音色,默认为 Leda,不同音色效果可参考官方文档。" }, "character": { - "description": "GPT-SoVITS 角色选择", - "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。" + "description": "GPT-SoVITS 角色选择", + "hint": "选择要使用的语音角色,需要提前在 GPT-SoVITS 服务中配置好对应的角色模型。" }, "emotion": { - "description": "GPT-SoVITS 情感选择", - "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" + "description": "GPT-SoVITS 情感选择", + "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" }, "edge-tts-voice": { - "description": "Edge TTS 音色选择", - "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" + "description": "Edge TTS 音色选择", + "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" }, "rate": { - "description": "Edge TTS 语速调节", - "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。" + "description": "Edge TTS 语速调节", + "hint": "调整语音语速,格式如 +0% 表示正常语速,可增减百分比进行调整。" }, "volume": { - "description": "Edge TTS 音量调节", - "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。" + "description": "Edge TTS 音量调节", + "hint": "调整语音音量,格式如 +0% 表示正常音量,可增减百分比进行调整。" }, "pitch": { - "description": "Edge TTS 音调调节", - "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。" + "description": "Edge TTS 音调调节", + "hint": "调整语音音调,格式如 +0Hz 表示正常音调,可增减 Hz 值进行调整。" }, "genie_onnx_model_dir": { "description": "ONNX 模型目录", From 502d50f8ffd7b912dbe6abe701044475625a4690 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 20:23:01 +0800 Subject: [PATCH 5/9] =?UTF-8?q?fix:=E5=87=A0=E4=B8=AA=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=B8=8D=E5=BA=94=E8=AF=A5=E4=BF=AE=E6=94=B9=E7=9A=84=E7=BF=BB?= =?UTF-8?q?=E8=AF=91=E4=BF=AE=E6=94=B9=E5=9B=9E=E5=8E=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/i18n/locales/zh-CN/features/config-metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 0781ce515..0813964cc 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -490,11 +490,11 @@ "hint": "Slack 的连接模式。`webhook` 使用 Webhook 服务器,`socket` 使用 Slack 的 Socket 模式。" }, "slack_webhook_host": { - "description": "Slack Webhook 主机", + "description": "Slack Webhook host", "hint": "仅在 Slack 连接模式为 `webhook` 时有效。" }, "slack_webhook_path": { - "description": "Slack Webhook 路径", + "description": "Slack Webhook Path", "hint": "仅在 Slack 连接模式为 `webhook` 时有效。" }, "slack_webhook_port": { @@ -920,7 +920,7 @@ "provider_group": { "provider": { "gemini_tts_api_key": { - "description": "Google Gemini TTS API 密钥", + "description": "Google Gemini TTS API Key", "hint": "请在 Google Cloud Console 获取 Gemini TTS API 密钥,用于身份验证和服务调用。" }, "gemini_tts_api_base": { From 806b04e09b3f520f24016e6e54047f4dca97ddb5 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Tue, 24 Feb 2026 20:29:10 +0800 Subject: [PATCH 6/9] =?UTF-8?q?fix:=E6=89=BE=E5=88=B0=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E7=BC=A9=E8=BF=9B=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B7=B2?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/i18n/locales/en-US/features/config-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 66c8d68a5..7a89c2b97 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -922,7 +922,7 @@ }, "gemini_tts_api_base": { "description": "Google Gemini TTS API Base URL", - "hint": "The API endpoint URL for Gemini TTS service. Default value is usually sufficient, modify only for special network environments." + "hint": "The API endpoint URL for Gemini TTS service. Default value is usually sufficient, modify only for special network environments." }, "gemini_tts_timeout": { "description": "Google Gemini TTS Timeout", From b809be482d78ac87223b9581a4227d59cdbdb33f Mon Sep 17 00:00:00 2001 From: Lishiling Date: Wed, 25 Feb 2026 09:20:49 +0800 Subject: [PATCH 7/9] =?UTF-8?q?fix:=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E4=B8=8D=E5=BA=94=E8=AF=A5=E6=94=B9=E4=B8=BA=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/i18n/locales/zh-CN/features/config-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 0813964cc..343f08b5d 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -139,7 +139,7 @@ "description": "文档解析提供商" }, "moonshotai_api_key": { - "description": "Moonshot AI API 密钥" + "description": "Moonshot AI API Key" } } } From ad927b2461f65806e8f99972c0fdeb5035fd1081 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Wed, 25 Feb 2026 09:25:01 +0800 Subject: [PATCH 8/9] =?UTF-8?q?fix:=E5=B0=86=E6=89=80=E6=9C=89edge-tts-voi?= =?UTF-8?q?ce=E4=BF=AE=E6=94=B9=E4=B8=BAedge=5Ftts=5Fvoice=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E5=8F=98=E9=87=8F=E5=91=BD=E5=90=8D=E7=9A=84=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/config/default.py | 4 ++-- astrbot/core/provider/sources/edge_tts_source.py | 2 +- .../src/i18n/locales/en-US/features/config-metadata.json | 2 +- .../src/i18n/locales/zh-CN/features/config-metadata.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 81b5af6f8..7e5be3133 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -1317,7 +1317,7 @@ class ChatProviderTemplate(TypedDict): "type": "edge_tts", "provider_type": "text_to_speech", "enable": False, - "edge-tts-voice": "zh-CN-XiaoxiaoNeural", + "edge_tts_voice": "zh-CN-XiaoxiaoNeural", "rate": "+0%", "volume": "+0%", "pitch": "+0Hz", @@ -1574,7 +1574,7 @@ class ChatProviderTemplate(TypedDict): "type": "string", "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。", }, - "edge-tts-voice": { + "edge_tts_voice": { "description": "Edge TTS 音色选择", "type": "string", "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。", diff --git a/astrbot/core/provider/sources/edge_tts_source.py b/astrbot/core/provider/sources/edge_tts_source.py index 503bd275b..c493da509 100644 --- a/astrbot/core/provider/sources/edge_tts_source.py +++ b/astrbot/core/provider/sources/edge_tts_source.py @@ -35,7 +35,7 @@ def __init__( super().__init__(provider_config, provider_settings) # 设置默认语音,如果没有指定则使用中文小萱 - self.voice = provider_config.get("edge-tts-voice", "zh-CN-XiaoxiaoNeural") + self.voice = provider_config.get("edge_tts_voice", "zh-CN-XiaoxiaoNeural") self.rate = provider_config.get("rate") self.volume = provider_config.get("volume") self.pitch = provider_config.get("pitch") diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index 7a89c2b97..fc9ca82e3 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -948,7 +948,7 @@ "description": "GPT-SoVITS Emotion Selection", "hint": "Select the emotional style for speech synthesis. Default is default, available emotions depend on character model support." }, - "edge-tts-voice": { + "edge_tts_voice": { "description": "Edge TTS Voice Selection", "hint": "Select the voice character for Microsoft Edge TTS. Default is zh-CN-XiaoxiaoNeural, refer to Microsoft official documentation for complete list." }, diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index 343f08b5d..c91ec3442 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -951,7 +951,7 @@ "description": "GPT-SoVITS 情感选择", "hint": "选择合成语音的情感风格,默认为 default,具体可选情感取决于角色模型的支持。" }, - "edge-tts-voice": { + "edge_tts_voice": { "description": "Edge TTS 音色选择", "hint": "选择微软 Edge TTS 的语音角色,默认为 zh-CN-XiaoxiaoNeural,可参考微软官方文档获取完整列表。" }, From c4abe8dc8d7963f40453f990c8e2d90288764a62 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Thu, 26 Feb 2026 14:15:30 +0800 Subject: [PATCH 9/9] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/i18n/locales/en-US/features/config-metadata.json | 4 ---- .../src/i18n/locales/zh-CN/features/config-metadata.json | 4 ---- 2 files changed, 8 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/features/config-metadata.json b/dashboard/src/i18n/locales/en-US/features/config-metadata.json index cf2fc00b5..f1caf06cf 100644 --- a/dashboard/src/i18n/locales/en-US/features/config-metadata.json +++ b/dashboard/src/i18n/locales/en-US/features/config-metadata.json @@ -1184,10 +1184,6 @@ "description": "Service subscription key", "hint": "Azure TTS subscription key (not a token)." }, - "proxy": { - "description": "Proxy Address", - "hint": "HTTP/HTTPS proxy address, format: http://127.0.0.1:7890. Only takes effect for API requests to this provider and does not affect Docker internal network communication." - }, "dashscope_tts_voice": { "description": "Voice" }, diff --git a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json index f05eaa2cc..63978dd9b 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +++ b/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json @@ -1188,10 +1188,6 @@ "description": "服务订阅密钥", "hint": "Azure_TTS 服务的订阅密钥(注意不是令牌)" }, - "proxy": { - "description": "代理地址", - "hint": "HTTP/HTTPS 代理地址,格式如 http://127.0.0.1:7890。仅对该提供商的 API 请求生效,不影响 Docker 内网通信。" - }, "dashscope_tts_voice": { "description": "音色" },