利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
feat(webui): standardize TTS API key links
harry0703a3da7917ae26
diff --git a/test/services/test_webui_tts_settings.py b/test/services/test_webui_tts_settings.pynew file mode 100644index 00000000..9d92adf9--- /dev/null+++ b/test/services/test_webui_tts_settings.py@@ -0,0 +1,96 @@+import json+from pathlib import Path+from unittest.mock import patch++from streamlit.testing.v1 import AppTest++from app.config import config+from app.services import voice+++ROOT_DIR = Path(__file__).parent.parent.parent+WEBUI_MAIN = ROOT_DIR / "webui" / "Main.py"+I18N_DIR = ROOT_DIR / "webui" / "i18n"+LOCALES = ("de", "en", "es", "id", "pt", "ru", "tr", "vi", "zh")++# 每个服务商只维护一个官方入口。Chatterbox 是自托管服务,没有统一的 Key+# 领取平台,因此链接到实际使用的兼容服务配置说明,避免误导用户注册第三方账号。+TTS_API_KEY_LABELS = {+ "Speech Key": "portal.azure.com",+ "SiliconFlow API Key": "cloud.siliconflow.cn/account/ak",+ "Gemini API Key": "aistudio.google.com/app/apikey",+ "MiMo API Key": "mimo.mi.com/docs/",+ "ElevenLabs API Key": "elevenlabs.io/app/settings/api-keys",+ "Chatterbox API Key": "github.com/travisvn/chatterbox-tts-api",+}++TTS_PROVIDER_WIDGETS = {+ "azure-tts-v2": ("azure_speech_key_input", "Speech Key"),+ "siliconflow": ("siliconflow_api_key_input", "SiliconFlow API Key"),+ "gemini-tts": ("gemini_tts_api_key_input", "Gemini API Key"),+ "mimo-tts": ("mimo_tts_api_key_input", "MiMo API Key"),+ "elevenlabs": ("elevenlabs_api_key_input", "ElevenLabs API Key"),+ "chatterbox": ("chatterbox_api_key_input", "Chatterbox API Key"),+}+++def _load_translation(locale: str) -> dict:+ """直接读取语言文件,确保断言覆盖用户实际看到的最终 Markdown 标签。"""+ data = json.loads((I18N_DIR / f"{locale}.json").read_text(encoding="utf-8"))+ return data["Translation"]+++def _widget_by_key(elements, key: str):+ """Streamlit 控件标签会翻译,使用稳定业务 key 定位真实输入框。"""+ return next(+ item+ for item in elements+ if str(getattr(item, "key", "")) == key+ or str(getattr(item, "key", "")).startswith(f"{key}_")+ )+++def test_all_tts_api_key_labels_include_an_official_configuration_link():+ """所有语言都应保留服务商名称和可点击入口,避免翻译时丢失链接。"""+ for locale in LOCALES:+ translations = _load_translation(locale)+ for label_key, expected_host in TTS_API_KEY_LABELS.items():+ label = translations[label_key]+ assert expected_host in label, f"{locale}: {label_key}"+ assert "](" in label, f"{locale}: {label_key}"+++def test_tts_provider_inputs_render_the_standardized_labels():+ """实际切换每个 TTS Provider,确认输入框没有绕过统一后的翻译标签。"""+ test_ui = dict(+ config.ui,+ voice_mode="tts",+ tts_server="azure-tts-v1",+ voice_name="",+ )+ translations = _load_translation("zh")++ with (+ patch.object(config, "ui", test_ui),+ patch.object(config, "save_config"),+ patch.object(voice, "get_all_azure_voices", return_value=[]),+ patch.object(voice, "get_siliconflow_voices", return_value=[]),+ patch.object(voice, "get_gemini_voices", return_value=[]),+ patch.object(voice, "get_mimo_voices", return_value=[]),+ patch.object(voice, "get_elevenlabs_voices", return_value=[]),+ patch.object(voice, "get_chatterbox_voices", return_value=[]),+ ):+ app = AppTest.from_file(str(WEBUI_MAIN), default_timeout=30)+ app.session_state["ui_language"] = "zh"+ app.run()++ for provider, (widget_key, label_key) in TTS_PROVIDER_WIDGETS.items():+ provider_select = _widget_by_key(app.selectbox, "tts_server_select")+ provider_select.set_value(provider).run()++ api_key_input = _widget_by_key(app.text_input, widget_key)+ assert api_key_input.label == translations[label_key]+ assert api_key_input.proto.type == api_key_input.proto.PASSWORD+ assert not getattr(api_key_input.proto, "help", "")++ assert [str(item.value) for item in app.exception] == []diff --git a/webui/Main.py b/webui/Main.pyindex 80b82343..ff2666e1 100644--- a/webui/Main.py+++ b/webui/Main.py@@ -3165,7 +3165,7 @@ def _render_audio_settings(panel, params):# Gemini TTS 与 Gemini LLM 共用同一份密钥;在音频面板提供直接入口,# 用户无需先切换 LLM Provider 才能完成语音配置。gemini_tts_api_key = st.text_input(- f"Google Gemini {tr('API Key')}",+ tr("Gemini API Key"),value=config.app.get("gemini_api_key", ""),type="password",key="gemini_tts_api_key_input",diff --git a/webui/i18n/de.json b/webui/i18n/de.jsonindex 3ee1f9e2..e1181366 100644--- a/webui/i18n/de.json+++ b/webui/i18n/de.json@@ -101,7 +101,7 @@"Background Music Source": "Quelle der Hintergrundmusik","Speech Synthesis": "Stimme (passend zur Skriptsprache)","Speech Region": "Region (:red[Erforderlich, [Region abrufen](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "API-Schlüssel (:red[Erforderlich, [API-Schlüssel abrufen](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Azure Speech API-Schlüssel ([API-Schlüssel abrufen](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Stimmenlautstärke","Speech Rate": "Sprechtempo","Custom Audio File": "Benutzerdefinierte Audiodatei",@@ -202,12 +202,13 @@"TTS Provider": "Sprachsynthese-Anbieter auswählen","TTS Servers": "TTS-Server","No voices available for the selected TTS server. Please select another server.": "Keine Stimmen für den ausgewählten TTS-Server verfügbar. Bitte wählen Sie einen anderen Server.",- "SiliconFlow API Key": "SiliconFlow API-Schlüssel [Schlüssel abrufen](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Xiaomi-MiMo-API-Schlüssel [Hier abrufen](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "ElevenLabs API-Schlüssel",+ "SiliconFlow API Key": "SiliconFlow API-Schlüssel ([Schlüssel abrufen](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Google Gemini API-Schlüssel ([Schlüssel abrufen](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Xiaomi MiMo API-Schlüssel ([Schlüssel abrufen](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "ElevenLabs API-Schlüssel ([Schlüssel abrufen](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "ElevenLabs-Modell","Chatterbox Base URL": "Chatterbox-Basis-URL",- "Chatterbox API Key": "Chatterbox API-Schlüssel",+ "Chatterbox API Key": "Chatterbox API-Schlüssel (Optional; [Konfiguration ansehen](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Chatterbox-Modell","Chatterbox Voices": "Chatterbox-Stimmen","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/en.json b/webui/i18n/en.jsonindex f97bcfa7..b4483280 100644--- a/webui/i18n/en.json+++ b/webui/i18n/en.json@@ -98,7 +98,7 @@"Background Music Source": "Background Music Source","Speech Synthesis": "Voice (match script language)","Speech Region": "Region(:red[Required,[Get Region](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "API Key(:red[Required,[Get API Key](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Azure Speech API Key ([Get API Key](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Voice Volume","Speech Rate": "Voice Speed","Custom Audio File": "Custom Audio File",@@ -199,12 +199,13 @@"TTS Provider": "Select the voice synthesis provider","TTS Servers": "TTS Servers","No voices available for the selected TTS server. Please select another server.": "No voices available for the selected TTS server. Please select another server.",- "SiliconFlow API Key": "SiliconFlow API Key [Click to get](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Xiaomi MiMo API Key [Click to get](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "ElevenLabs API Key",+ "SiliconFlow API Key": "SiliconFlow API Key ([Get API Key](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Google Gemini API Key ([Get API Key](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Xiaomi MiMo API Key ([Get API Key](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "ElevenLabs API Key ([Get API Key](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "ElevenLabs Model","Chatterbox Base URL": "Chatterbox Base URL",- "Chatterbox API Key": "Chatterbox API Key",+ "Chatterbox API Key": "Chatterbox API Key (Optional; [View Setup](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Chatterbox Model","Chatterbox Voices": "Chatterbox Voices","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/es.json b/webui/i18n/es.jsonindex 02c401c0..30c5de4b 100644--- a/webui/i18n/es.json+++ b/webui/i18n/es.json@@ -98,7 +98,7 @@"Background Music Source": "Fuente de música de fondo","Speech Synthesis": "Voz (idioma del guion)","Speech Region": "Región (:red[Requerido, [Obtener región](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "Clave API (:red[Requerido, [Obtener clave API](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Clave API de Azure Speech ([Obtener clave](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Volumen de voz","Speech Rate": "Velocidad de voz","Custom Audio File": "Archivo de audio personalizado",@@ -199,11 +199,12 @@"TTS Provider": "Selecciona el proveedor de síntesis de voz","TTS Servers": "Servidores TTS","No voices available for the selected TTS server. Please select another server.": "No hay voces disponibles para el servidor TTS seleccionado. Selecciona otro servidor.",- "SiliconFlow API Key": "Clave API de SiliconFlow [Obtener](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Clave API de Xiaomi MiMo [Obtener](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "Clave API de ElevenLabs",+ "SiliconFlow API Key": "Clave API de SiliconFlow ([Obtener clave](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Clave API de Google Gemini ([Obtener clave](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Clave API de Xiaomi MiMo ([Obtener clave](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "Clave API de ElevenLabs ([Obtener clave](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "Modelo de ElevenLabs",- "Chatterbox API Key": "Clave API de Chatterbox",+ "Chatterbox API Key": "Clave API de Chatterbox (Opcional; [Ver configuración](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Base URL": "URL base de Chatterbox","Chatterbox Model": "Modelo de Chatterbox","Chatterbox Voices": "Voces de Chatterbox",diff --git a/webui/i18n/id.json b/webui/i18n/id.jsonindex f3004ec6..60662287 100644--- a/webui/i18n/id.json+++ b/webui/i18n/id.json@@ -98,7 +98,7 @@"Background Music Source": "Sumber Musik Latar","Speech Synthesis": "Suara (sesuai bahasa skrip)","Speech Region": "Wilayah (:red[Diperlukan, [Dapatkan Wilayah](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "Kunci API (:red[Diperlukan, [Dapatkan Kunci API](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Kunci API Azure Speech ([Dapatkan kunci](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Volume Suara","Speech Rate": "Kecepatan Bicara","Custom Audio File": "File Audio Kustom",@@ -199,12 +199,13 @@"TTS Provider": "Pilih penyedia sintesis suara","TTS Servers": "Server TTS","No voices available for the selected TTS server. Please select another server.": "Tidak ada suara yang tersedia untuk server TTS yang dipilih. Silakan pilih server lain.",- "SiliconFlow API Key": "Kunci API SiliconFlow [Klik untuk mendapatkan](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Kunci API Xiaomi MiMo [Klik untuk mendapatkan](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "Kunci API ElevenLabs",+ "SiliconFlow API Key": "Kunci API SiliconFlow ([Dapatkan kunci](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Kunci API Google Gemini ([Dapatkan kunci](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Kunci API Xiaomi MiMo ([Dapatkan kunci](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "Kunci API ElevenLabs ([Dapatkan kunci](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "Model ElevenLabs","Chatterbox Base URL": "URL Dasar Chatterbox",- "Chatterbox API Key": "Kunci API Chatterbox",+ "Chatterbox API Key": "Kunci API Chatterbox (Opsional; [Lihat konfigurasi](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Model Chatterbox","Chatterbox Voices": "Suara Chatterbox","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/pt.json b/webui/i18n/pt.jsonindex 84f95227..dc95a318 100644--- a/webui/i18n/pt.json+++ b/webui/i18n/pt.json@@ -99,7 +99,7 @@"Background Music Source": "Fonte da música de fundo","Speech Synthesis": "Voz (idioma do roteiro)","Speech Region": "Região (:red[Obrigatória, [Obter região](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "Chave da API (:red[Obrigatória, [Obter chave](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Chave da API do Azure Speech ([Obter chave](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Volume da voz","Speech Rate": "Velocidade da voz","Custom Audio File": "Áudio personalizado",@@ -199,12 +199,13 @@"TTS Provider": "Selecione o provedor de síntese de voz","TTS Servers": "Servidores TTS","No voices available for the selected TTS server. Please select another server.": "Não há vozes disponíveis para o servidor TTS selecionado. Por favor, selecione outro servidor.",- "SiliconFlow API Key": "Chave API do SiliconFlow [Obter](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Chave API do Xiaomi MiMo [Obter](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "Chave API do ElevenLabs",+ "SiliconFlow API Key": "Chave API do SiliconFlow ([Obter chave](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Chave API do Google Gemini ([Obter chave](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Chave API do Xiaomi MiMo ([Obter chave](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "Chave API do ElevenLabs ([Obter chave](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "Modelo ElevenLabs","Chatterbox Base URL": "URL base do Chatterbox",- "Chatterbox API Key": "Chave API do Chatterbox",+ "Chatterbox API Key": "Chave API do Chatterbox (Opcional; [Ver configuração](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Modelo Chatterbox","Chatterbox Voices": "Vozes do Chatterbox","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/ru.json b/webui/i18n/ru.jsonindex 24282ae2..31099f12 100644--- a/webui/i18n/ru.json+++ b/webui/i18n/ru.json@@ -98,7 +98,7 @@"Background Music Source": "Источник фоновой музыки","Speech Synthesis": "Голос (язык сценария)","Speech Region": "Регион (:red[обязательно, [получить регион](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "API-ключ (:red[обязательно, [получить API-ключ](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "API-ключ Azure Speech ([получить ключ](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Громкость озвучки (1.0 = 100%)","Speech Rate": "Темп озвучки","Custom Audio File": "Свой аудиофайл",@@ -195,12 +195,13 @@"TTS Provider": "Провайдер синтеза речи","TTS Servers": "Сервис озвучки","No voices available for the selected TTS server. Please select another server.": "В выбранном сервисе озвучки нет доступных голосов. Выберите другой сервис.",- "SiliconFlow API Key": "API-ключ SiliconFlow [получить](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "API-ключ Xiaomi MiMo [получить](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "API-ключ ElevenLabs",+ "SiliconFlow API Key": "API-ключ SiliconFlow ([получить ключ](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "API-ключ Google Gemini ([получить ключ](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "API-ключ Xiaomi MiMo ([получить ключ](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "API-ключ ElevenLabs ([получить ключ](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "Модель ElevenLabs","Chatterbox Base URL": "Базовый URL Chatterbox",- "Chatterbox API Key": "API-ключ Chatterbox",+ "Chatterbox API Key": "API-ключ Chatterbox (необязательно; [настройка](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Модель Chatterbox","Chatterbox Voices": "Голоса Chatterbox","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/tr.json b/webui/i18n/tr.jsonindex 562c8d03..773c6a30 100644--- a/webui/i18n/tr.json+++ b/webui/i18n/tr.json@@ -98,7 +98,7 @@"Background Music Source": "Arka Plan Müziği Kaynağı","Speech Synthesis": "Ses (senaryo dili)","Speech Region": "Bölge (:red[Gerekli, [Bölge Al](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "API Anahtarı (:red[Gerekli, [API Anahtarı Al](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Azure Speech API Anahtarı ([Anahtar al](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Ses Seviyesi","Speech Rate": "Konuşma Hızı","No Voice": "Ses yok (konuşma sentezi yok)",@@ -197,12 +197,13 @@"TTS Provider": "Ses sentezi sağlayıcısını seçin","TTS Servers": "TTS Sunucuları","No voices available for the selected TTS server. Please select another server.": "Seçilen TTS sunucusu için uygun ses bulunamadı. Lütfen başka bir sunucu seçin.",- "SiliconFlow API Key": "SiliconFlow API Anahtarı [Almak için tıklayın](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Xiaomi MiMo API Anahtarı [Almak için tıklayın](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "ElevenLabs API Anahtarı",+ "SiliconFlow API Key": "SiliconFlow API Anahtarı ([Anahtar al](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Google Gemini API Anahtarı ([Anahtar al](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Xiaomi MiMo API Anahtarı ([Anahtar al](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "ElevenLabs API Anahtarı ([Anahtar al](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "ElevenLabs Modeli","Chatterbox Base URL": "Chatterbox Temel URL'si",- "Chatterbox API Key": "Chatterbox API Anahtarı",+ "Chatterbox API Key": "Chatterbox API Anahtarı (İsteğe bağlı; [Yapılandırmayı görüntüle](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Chatterbox Modeli","Chatterbox Voices": "Chatterbox Sesleri","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/vi.json b/webui/i18n/vi.jsonindex d6096c22..8a3e77f7 100644--- a/webui/i18n/vi.json+++ b/webui/i18n/vi.json@@ -98,7 +98,7 @@"Background Music Source": "Nguồn Nhạc Nền","Speech Synthesis": "Giọng đọc (theo ngôn ngữ)","Speech Region": "Khu vực (:red[Bắt buộc, [Lấy khu vực](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "Khóa API (:red[Bắt buộc, [Lấy khóa](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Khóa API Azure Speech ([Lấy khóa](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "Âm lượng giọng đọc","Speech Rate": "Tốc độ đọc","Custom Audio File": "Tệp Âm Thanh Tùy Chỉnh",@@ -199,12 +199,13 @@"TTS Provider": "Chọn nhà cung cấp tổng hợp giọng nói","TTS Servers": "Máy chủ TTS","No voices available for the selected TTS server. Please select another server.": "Không có giọng nói nào cho máy chủ TTS đã chọn. Vui lòng chọn máy chủ khác.",- "SiliconFlow API Key": "Khóa API SiliconFlow [Lấy khóa](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "Khóa API Xiaomi MiMo [Nhấn để lấy](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "Khóa API ElevenLabs",+ "SiliconFlow API Key": "Khóa API SiliconFlow ([Lấy khóa](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Khóa API Google Gemini ([Lấy khóa](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "Khóa API Xiaomi MiMo ([Lấy khóa](https://mimo.mi.com/docs/quick-start/first-api-call))",+ "ElevenLabs API Key": "Khóa API ElevenLabs ([Lấy khóa](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "Mô Hình ElevenLabs","Chatterbox Base URL": "URL cơ sở Chatterbox",- "Chatterbox API Key": "Khóa API Chatterbox",+ "Chatterbox API Key": "Khóa API Chatterbox (Không bắt buộc; [Xem cấu hình](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Mô hình Chatterbox","Chatterbox Voices": "Giọng Chatterbox","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",diff --git a/webui/i18n/zh.json b/webui/i18n/zh.jsonindex 11a876ee..b112327c 100644--- a/webui/i18n/zh.json+++ b/webui/i18n/zh.json@@ -98,7 +98,7 @@"Background Music Source": "背景音乐来源","Speech Synthesis": "朗读声音(与文案语言保持一致)","Speech Region": "服务区域 (:red[必填,[点击获取](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",- "Speech Key": "API Key (:red[必填,密钥1 或 密钥2 均可 [点击获取](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices)])",+ "Speech Key": "Azure Speech API 密钥([点击获取](https://portal.azure.com/#view/Microsoft_Azure_ProjectOxford/CognitiveServicesHub/~/SpeechServices))","Speech Volume": "朗读音量(1.0表示100%)","Speech Rate": "朗读速度(1.0表示1倍速)","Custom Audio File": "自定义音频文件",@@ -199,12 +199,13 @@"TTS Provider": "语音合成提供商","TTS Servers": "TTS服务器","No voices available for the selected TTS server. Please select another server.": "当前选择的TTS服务器没有可用的声音,请选择其他服务器。",- "SiliconFlow API Key": "硅基流动API密钥 [点击获取](https://cloud.siliconflow.cn/account/ak)",- "MiMo API Key": "小米 MiMo API 密钥 [点击获取](https://platform.xiaomimimo.com/docs/zh-CN/quick-start/first-api-call)",- "ElevenLabs API Key": "ElevenLabs API 密钥",+ "SiliconFlow API Key": "硅基流动 API 密钥([点击获取](https://cloud.siliconflow.cn/account/ak))",+ "Gemini API Key": "Google Gemini API 密钥([点击获取](https://aistudio.google.com/app/apikey))",+ "MiMo API Key": "小米 MiMo API 密钥([点击获取](https://mimo.mi.com/docs/zh-CN/quick-start/first-api-call))",+ "ElevenLabs API Key": "ElevenLabs API 密钥([点击获取](https://elevenlabs.io/app/settings/api-keys))","ElevenLabs Model": "ElevenLabs 模型","Chatterbox Base URL": "Chatterbox Base URL",- "Chatterbox API Key": "Chatterbox API Key",+ "Chatterbox API Key": "Chatterbox API 密钥(可选,[查看配置](https://github.com/travisvn/chatterbox-tts-api))","Chatterbox Model": "Chatterbox 模型","Chatterbox Voices": "Chatterbox 音色","Chatterbox Base URL Placeholder": "http://localhost:4123/v1",