🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🔥 refactor: remove the legacy speech-to-text settings (#20062)
Arvin Xu611268b83539
diff --git a/apps/server/src/globalConfig/parseDefaultAgent.test.ts b/apps/server/src/globalConfig/parseDefaultAgent.test.tsindex 0a29bd601c7..1498ff07053 100644--- a/apps/server/src/globalConfig/parseDefaultAgent.test.ts+++ b/apps/server/src/globalConfig/parseDefaultAgent.test.ts@@ -11,8 +11,8 @@ describe('parseAgentConfig', () => {});it('parses nested fields correctly', () => {- const envStr = 'tts.sttLocale=en-US';- const expected = { tts: { sttLocale: 'en-US' } };+ const envStr = 'tts.ttsService=openai';+ const expected = { tts: { ttsService: 'openai' } };expect(parseAgentConfig(envStr)).toEqual(expected);});diff --git a/docs/self-hosting/environment-variables/basic.mdx b/docs/self-hosting/environment-variables/basic.mdxindex eb5502d7ffa..286ee479563 100644--- a/docs/self-hosting/environment-variables/basic.mdx+++ b/docs/self-hosting/environment-variables/basic.mdx@@ -56,7 +56,7 @@ The `DEFAULT_AGENT_CONFIG` is used to configure the default settings for the Lob| Configuration Type | Example | Explanation || ----------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ || Basic Key-Value Pair | `model=gpt-4` | Set the model to `gpt-4`. |-| Nested Field | `tts.sttLocale=en-US` | Set the language locale for the text-to-speech service to `en-US`. |+| Nested Field | `tts.voice.openai=nova` | Set the default OpenAI text-to-speech voice to `nova`. || Array | `plugins=search-engine,lobe-image-designer` | Enable the `search-engine` and `lobe-image-designer` plugins. || Chinese Comma | `plugins=search-engine,lobe-image-designer` | Same as above, demonstrating support for Chinese comma separation. || Multiple Configurations | `model=glm-4;provider=zhipu` | Set the model to `glm-4` and the model provider to `zhipu`. |diff --git a/docs/self-hosting/environment-variables/basic.zh-CN.mdx b/docs/self-hosting/environment-variables/basic.zh-CN.mdxindex be0e286e870..7c3693a4787 100644--- a/docs/self-hosting/environment-variables/basic.zh-CN.mdx+++ b/docs/self-hosting/environment-variables/basic.zh-CN.mdx@@ -52,7 +52,7 @@ LobeHub 在部署时提供了一些额外的配置项,你可以使用环境变| 配置项类型 | 示例 | 解释 || ----- | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- || 基本键值对 | `model=gpt-4` | 设置模型为 `gpt-4`。 |-| 嵌套字段 | `tts.sttLocale=en-US` | 设置文本到语音服务的语言区域为 `en-US`。 |+| 嵌套字段 | `tts.voice.openai=nova` | 设置 OpenAI 文本转语音的默认音色为 `nova`。 || 数组 | `plugins=search-engine,lobe-image-designer` | 启用 `search-engine` 和 `lobe-image-designer` 插件。 || 中文逗号 | `plugins=search-engine,lobe-image-designer` | 同上,演示支持中文逗号分隔。 || 多个配置项 | `model=glm-4;provider=zhipu` | 设置模型为 `glm-4` 且模型服务商为 `zhipu`。 |diff --git a/locales/ar/setting.json b/locales/ar/setting.jsonindex bebb7d4f24d..02f6d160b89 100644--- a/locales/ar/setting.json+++ b/locales/ar/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - واجهة سطر أوامر برمجية ذكية من Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - أداة بحث نصي سريعة للغاية","settingSystemTools.tools.uv.desc": "uv - مدير حزم Python فائق السرعة",- "settingTTS.openai.sttModel": "نموذج OpenAI لتحويل الكلام إلى نص","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "نموذج OpenAI لتحويل النص إلى كلام","settingTTS.showAllLocaleVoice.desc": "إذا تم إيقافه، سيتم عرض الأصوات المتوفرة للغة الحالية فقط","settingTTS.showAllLocaleVoice.title": "عرض جميع الأصوات حسب اللغة",- "settingTTS.stt": "إعدادات التعرف على الكلام",- "settingTTS.sttAutoStop.desc": "عند الإيقاف، لن يتوقف التعرف على الكلام تلقائيًا ويتطلب النقر يدويًا للإيقاف",- "settingTTS.sttAutoStop.title": "إيقاف تلقائي للتعرف على الكلام",- "settingTTS.sttLocale.desc": "لغة إدخال الصوت، يمكن أن تحسن دقة التعرف على الكلام",- "settingTTS.sttLocale.title": "لغة التعرف على الكلام",- "settingTTS.sttService.desc": "حيث أن 'المتصفح' هو خدمة التعرف على الكلام الأصلية في المتصفح",- "settingTTS.sttService.title": "خدمة التعرف على الكلام","settingTTS.submit": "تحديث خدمة الصوت","settingTTS.title": "خدمة الصوت","settingTTS.tts": "إعدادات تحويل النص إلى كلام",diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.jsonindex 108aa6c4c56..30a2925aef2 100644--- a/locales/bg-BG/setting.json+++ b/locales/bg-BG/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - агентен coding CLI на Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - изключително бърз инструмент за търсене в текст","settingSystemTools.tools.uv.desc": "uv – изключително бърз мениджър на Python пакети",- "settingTTS.openai.sttModel": "OpenAI модел за разпознаване на реч","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI модел за преобразуване на текст в реч","settingTTS.showAllLocaleVoice.desc": "Ако е изключено, ще се показват само гласове на текущия език","settingTTS.showAllLocaleVoice.title": "Показване на всички гласове по локал",- "settingTTS.stt": "Настройки за разпознаване на реч",- "settingTTS.sttAutoStop.desc": "Ако е изключено, разпознаването на реч няма да спира автоматично и ще изисква ръчно спиране",- "settingTTS.sttAutoStop.title": "Автоматично спиране на разпознаване на реч",- "settingTTS.sttLocale.desc": "Езикът на гласовия вход, тази опция подобрява точността на разпознаване",- "settingTTS.sttLocale.title": "Език за разпознаване на реч",- "settingTTS.sttService.desc": "„Браузър“ е вградената услуга за разпознаване на реч в браузъра",- "settingTTS.sttService.title": "Услуга за разпознаване на реч","settingTTS.submit": "Актуализирай гласовата услуга","settingTTS.title": "Гласова услуга","settingTTS.tts": "Настройки за преобразуване на текст в реч",diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.jsonindex 2f8cd3f5bb6..6eea3e8f2ea 100644--- a/locales/de-DE/setting.json+++ b/locales/de-DE/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code – Agentische Coding-CLI von Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep – extrem schnelles Tool zur Textsuche","settingSystemTools.tools.uv.desc": "uv – extrem schneller Python-Paketmanager",- "settingTTS.openai.sttModel": "OpenAI Sprach-zu-Text-Modell","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI Text-zu-Sprache-Modell","settingTTS.showAllLocaleVoice.desc": "Wenn deaktiviert, werden nur Stimmen in der aktuellen Sprache angezeigt","settingTTS.showAllLocaleVoice.title": "Alle Sprachvarianten anzeigen",- "settingTTS.stt": "Spracherkennungseinstellungen",- "settingTTS.sttAutoStop.desc": "Wenn deaktiviert, muss die Spracherkennung manuell beendet werden",- "settingTTS.sttAutoStop.title": "Spracherkennung automatisch beenden",- "settingTTS.sttLocale.desc": "Spracheingabesprache – verbessert die Erkennungsgenauigkeit",- "settingTTS.sttLocale.title": "Sprache der Spracherkennung",- "settingTTS.sttService.desc": "„Browser“ verwendet den nativen Spracherkennungsdienst des Browsers",- "settingTTS.sttService.title": "Spracherkennungsdienst","settingTTS.submit": "Sprachdienst aktualisieren","settingTTS.title": "Sprachdienst","settingTTS.tts": "Text-zu-Sprache-Einstellungen",diff --git a/locales/en-US/setting.json b/locales/en-US/setting.jsonindex a35bdf866b5..695aab8af23 100644--- a/locales/en-US/setting.json+++ b/locales/en-US/setting.json@@ -1256,18 +1256,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - Alibaba Qwen agentic coding CLI","settingSystemTools.tools.rg.desc": "ripgrep - extremely fast text search tool","settingSystemTools.tools.uv.desc": "uv - extremely fast Python package manager",- "settingTTS.openai.sttModel": "OpenAI Speech-to-Text Model","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI Text-to-Speech Model","settingTTS.showAllLocaleVoice.desc": "If closed, only voices in the current language will be displayed","settingTTS.showAllLocaleVoice.title": "Show All Locale Voices",- "settingTTS.stt": "Speech Recognition Settings",- "settingTTS.sttAutoStop.desc": "When closed, speech recognition will not end automatically and requires manual click to stop",- "settingTTS.sttAutoStop.title": "Auto Stop Speech Recognition",- "settingTTS.sttLocale.desc": "The language of the speech input, this option can improve the accuracy of speech recognition",- "settingTTS.sttLocale.title": "Speech Recognition Language",- "settingTTS.sttService.desc": "Where 'browser' is the native speech recognition service of the browser",- "settingTTS.sttService.title": "Speech Recognition Service","settingTTS.submit": "Update Voice Service","settingTTS.title": "Speech Service","settingTTS.tts": "Text-to-Speech Settings",diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.jsonindex 66e32997187..fb094832043 100644--- a/locales/es-ES/setting.json+++ b/locales/es-ES/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code: CLI de programación asistida de Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - herramienta de búsqueda de texto extremadamente rápida","settingSystemTools.tools.uv.desc": "uv: un gestor de paquetes de Python extremadamente rápido",- "settingTTS.openai.sttModel": "Modelo de Reconocimiento de Voz de OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Modelo de Texto a Voz de OpenAI","settingTTS.showAllLocaleVoice.desc": "Si está desactivado, solo se mostrarán las voces del idioma actual","settingTTS.showAllLocaleVoice.title": "Mostrar Todas las Voces Locales",- "settingTTS.stt": "Configuración de Reconocimiento de Voz",- "settingTTS.sttAutoStop.desc": "Si está desactivado, el reconocimiento de voz no finalizará automáticamente y requerirá detenerlo manualmente",- "settingTTS.sttAutoStop.title": "Detención Automática del Reconocimiento de Voz",- "settingTTS.sttLocale.desc": "El idioma de entrada de voz, esta opción puede mejorar la precisión del reconocimiento",- "settingTTS.sttLocale.title": "Idioma del Reconocimiento de Voz",- "settingTTS.sttService.desc": "Donde 'navegador' es el servicio nativo de reconocimiento de voz del navegador",- "settingTTS.sttService.title": "Servicio de Reconocimiento de Voz","settingTTS.submit": "Actualizar Servicio de Voz","settingTTS.title": "Servicio de Voz","settingTTS.tts": "Configuración de Texto a Voz",diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.jsonindex 15b67551fa4..68bb5c97c4c 100644--- a/locales/fa-IR/setting.json+++ b/locales/fa-IR/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - رابط خط فرمان کدنویسی هوشمند Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - ابزار بسیار سریع برای جستجوی متن","settingSystemTools.tools.uv.desc": "uv - مدیر بستهی پایتون با سرعتی بسیار بالا",- "settingTTS.openai.sttModel": "مدل تبدیل گفتار به متن OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "مدل تبدیل متن به گفتار OpenAI","settingTTS.showAllLocaleVoice.desc": "در صورت غیرفعال بودن، فقط صداهای زبان فعلی نمایش داده میشوند","settingTTS.showAllLocaleVoice.title": "نمایش همه صداهای زبانها",- "settingTTS.stt": "تنظیمات تشخیص گفتار",- "settingTTS.sttAutoStop.desc": "در صورت غیرفعال بودن، تشخیص گفتار بهصورت خودکار متوقف نمیشود و نیاز به توقف دستی دارد",- "settingTTS.sttAutoStop.title": "توقف خودکار تشخیص گفتار",- "settingTTS.sttLocale.desc": "زبان ورودی گفتار، این گزینه دقت تشخیص گفتار را افزایش میدهد",- "settingTTS.sttLocale.title": "زبان تشخیص گفتار",- "settingTTS.sttService.desc": "در اینجا 'مرورگر' به سرویس بومی تشخیص گفتار مرورگر اشاره دارد",- "settingTTS.sttService.title": "سرویس تشخیص گفتار","settingTTS.submit": "بهروزرسانی سرویس صوتی","settingTTS.title": "سرویس صوتی","settingTTS.tts": "تنظیمات تبدیل متن به گفتار",diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.jsonindex 4293345c121..870e52ccab2 100644--- a/locales/fr-FR/setting.json+++ b/locales/fr-FR/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - CLI d’agent de programmation d’Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - outil de recherche de texte extrêmement rapide","settingSystemTools.tools.uv.desc": "uv - gestionnaire de packages Python extrêmement rapide",- "settingTTS.openai.sttModel": "Modèle de reconnaissance vocale OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Modèle de synthèse vocale OpenAI","settingTTS.showAllLocaleVoice.desc": "Si désactivé, seules les voix de la langue actuelle seront affichées","settingTTS.showAllLocaleVoice.title": "Afficher toutes les voix locales",- "settingTTS.stt": "Paramètres de reconnaissance vocale",- "settingTTS.sttAutoStop.desc": "Si désactivé, la reconnaissance vocale ne s’arrêtera pas automatiquement et nécessitera un clic manuel pour l’arrêter",- "settingTTS.sttAutoStop.title": "Arrêt automatique de la reconnaissance vocale",- "settingTTS.sttLocale.desc": "Langue de l’entrée vocale, ce paramètre peut améliorer la précision de la reconnaissance",- "settingTTS.sttLocale.title": "Langue de reconnaissance vocale",- "settingTTS.sttService.desc": "Le service 'navigateur' correspond à la reconnaissance vocale native du navigateur",- "settingTTS.sttService.title": "Service de reconnaissance vocale","settingTTS.submit": "Mettre à jour le service vocal","settingTTS.title": "Service vocal","settingTTS.tts": "Paramètres de synthèse vocale",diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.jsonindex 959289c54d7..1643fb76d73 100644--- a/locales/it-IT/setting.json+++ b/locales/it-IT/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - CLI di programmazione agentica di Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - strumento estremamente veloce per la ricerca di testo","settingSystemTools.tools.uv.desc": "uv - gestore di pacchetti Python estremamente veloce",- "settingTTS.openai.sttModel": "Modello OpenAI per Riconoscimento Vocale","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Modello OpenAI per Sintesi Vocale","settingTTS.showAllLocaleVoice.desc": "Se disattivato, verranno mostrate solo le voci nella lingua corrente","settingTTS.showAllLocaleVoice.title": "Mostra Tutte le Voci Locali",- "settingTTS.stt": "Impostazioni Riconoscimento Vocale",- "settingTTS.sttAutoStop.desc": "Se disattivato, il riconoscimento vocale non terminerà automaticamente e richiederà un clic manuale per fermarsi",- "settingTTS.sttAutoStop.title": "Arresto Automatico Riconoscimento Vocale",- "settingTTS.sttLocale.desc": "La lingua dell'input vocale, questa opzione può migliorare la precisione del riconoscimento",- "settingTTS.sttLocale.title": "Lingua Riconoscimento Vocale",- "settingTTS.sttService.desc": "Dove 'browser' è il servizio nativo di riconoscimento vocale del browser",- "settingTTS.sttService.title": "Servizio Riconoscimento Vocale","settingTTS.submit": "Aggiorna Servizio Vocale","settingTTS.title": "Servizio Vocale","settingTTS.tts": "Impostazioni Sintesi Vocale",diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.jsonindex c8088d394e7..b8f0b870837 100644--- a/locales/ja-JP/setting.json+++ b/locales/ja-JP/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - Alibaba Qwen エージェント型コーディング CLI","settingSystemTools.tools.rg.desc": "ripgrep - 非常に高速なテキスト検索ツール","settingSystemTools.tools.uv.desc": "uv - 非常に高速な Python パッケージマネージャー",- "settingTTS.openai.sttModel": "OpenAI 音声認識モデル","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI 音声合成モデル","settingTTS.showAllLocaleVoice.desc": "無効にすると、現在の言語の音声のみが表示されます","settingTTS.showAllLocaleVoice.title": "すべての言語の音声を表示",- "settingTTS.stt": "音声認識設定",- "settingTTS.sttAutoStop.desc": "無効にすると、音声認識は自動的に停止せず、手動で停止する必要があります",- "settingTTS.sttAutoStop.title": "音声認識の自動停止",- "settingTTS.sttLocale.desc": "音声入力の言語、このオプションを選択すると音声認識の精度が向上します",- "settingTTS.sttLocale.title": "音声認識言語",- "settingTTS.sttService.desc": "ブラウザはネイティブの音声認識サービスです",- "settingTTS.sttService.title": "音声認識サービス","settingTTS.submit": "音声サービスを更新","settingTTS.title": "音声サービス","settingTTS.tts": "音声合成設定",diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.jsonindex 90c13e04453..d53ec032f48 100644--- a/locales/ko-KR/setting.json+++ b/locales/ko-KR/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - Alibaba Qwen 에이전트 기반 코딩 CLI","settingSystemTools.tools.rg.desc": "ripgrep - 매우 빠른 텍스트 검색 도구","settingSystemTools.tools.uv.desc": "uv - 매우 빠른 Python 패키지 관리자",- "settingTTS.openai.sttModel": "OpenAI 음성 인식 모델","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI 음성 합성 모델","settingTTS.showAllLocaleVoice.desc": "현재 언어의 음성만 표시하려면 닫으세요","settingTTS.showAllLocaleVoice.title": "모든 로캘 음성 표시",- "settingTTS.stt": "음성 인식 설정",- "settingTTS.sttAutoStop.desc": "비활성화하면 음성 인식이 자동으로 종료되지 않으며 수동으로 종료 버튼을 클릭해야 합니다",- "settingTTS.sttAutoStop.title": "음성 인식 자동 중지",- "settingTTS.sttLocale.desc": "음성 입력의 언어로 음성 인식 정확도를 향상시킬 수 있습니다",- "settingTTS.sttLocale.title": "음성 인식 언어",- "settingTTS.sttService.desc": "브라우저는 기본 음성 인식 서비스입니다",- "settingTTS.sttService.title": "음성 인식 서비스","settingTTS.submit": "음성 서비스 업데이트","settingTTS.title": "음성 서비스","settingTTS.tts": "음성 합성 설정",diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.jsonindex 989ddd234e6..23cd9f6108a 100644--- a/locales/nl-NL/setting.json+++ b/locales/nl-NL/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - Agentische coding-CLI van Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - extreem snelle tool voor tekstzoekopdrachten","settingSystemTools.tools.uv.desc": "uv - extreem snelle Python‑pakketbeheerder",- "settingTTS.openai.sttModel": "OpenAI Spraak-naar-Tekst Model","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI Tekst-naar-Spraak Model","settingTTS.showAllLocaleVoice.desc": "Indien uitgeschakeld, worden alleen stemmen in de huidige taal weergegeven","settingTTS.showAllLocaleVoice.title": "Alle lokale stemmen tonen",- "settingTTS.stt": "Spraakherkenningsinstellingen",- "settingTTS.sttAutoStop.desc": "Indien uitgeschakeld, stopt spraakherkenning niet automatisch en moet handmatig worden gestopt",- "settingTTS.sttAutoStop.title": "Automatisch stoppen spraakherkenning",- "settingTTS.sttLocale.desc": "De taal van de spraakinvoer, dit kan de nauwkeurigheid van spraakherkenning verbeteren",- "settingTTS.sttLocale.title": "Taal spraakherkenning",- "settingTTS.sttService.desc": "‘Browser’ is de ingebouwde spraakherkenningsservice van de browser",- "settingTTS.sttService.title": "Spraakherkenningsservice","settingTTS.submit": "Spraakservice bijwerken","settingTTS.title": "Spraakservice","settingTTS.tts": "Tekst-naar-Spraak Instellingen",diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.jsonindex 4d16473389e..a4148cb7608 100644--- a/locales/pl-PL/setting.json+++ b/locales/pl-PL/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code – agentowe CLI do kodowania od Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep – niezwykle szybkie narzędzie do wyszukiwania tekstu","settingSystemTools.tools.uv.desc": "uv – wyjątkowo szybki menedżer pakietów dla Pythona",- "settingTTS.openai.sttModel": "Model rozpoznawania mowy OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Model syntezy mowy OpenAI","settingTTS.showAllLocaleVoice.desc": "Jeśli wyłączone, wyświetlane będą tylko głosy w bieżącym języku","settingTTS.showAllLocaleVoice.title": "Pokaż wszystkie głosy językowe",- "settingTTS.stt": "Ustawienia rozpoznawania mowy",- "settingTTS.sttAutoStop.desc": "Jeśli wyłączone, rozpoznawanie mowy nie zakończy się automatycznie i wymaga ręcznego zatrzymania",- "settingTTS.sttAutoStop.title": "Automatyczne zatrzymanie rozpoznawania mowy",- "settingTTS.sttLocale.desc": "Język wejścia głosowego, może poprawić dokładność rozpoznawania mowy",- "settingTTS.sttLocale.title": "Język rozpoznawania mowy",- "settingTTS.sttService.desc": "„Przeglądarka” oznacza natywną usługę rozpoznawania mowy przeglądarki",- "settingTTS.sttService.title": "Usługa rozpoznawania mowy","settingTTS.submit": "Zaktualizuj usługę głosową","settingTTS.title": "Usługa głosowa","settingTTS.tts": "Ustawienia syntezy mowy",diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.jsonindex 92263aa5f0d..cc26c7b719f 100644--- a/locales/pt-BR/setting.json+++ b/locales/pt-BR/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - CLI de codificação agentic da Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - ferramenta extremamente rápida para busca de texto","settingSystemTools.tools.uv.desc": "uv - gerenciador de pacotes Python extremamente rápido",- "settingTTS.openai.sttModel": "Modelo de Reconhecimento de Voz da OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Modelo de Texto para Fala da OpenAI","settingTTS.showAllLocaleVoice.desc": "Se desativado, apenas vozes no idioma atual serão exibidas","settingTTS.showAllLocaleVoice.title": "Mostrar Todas as Vozes do Idioma",- "settingTTS.stt": "Configurações de Reconhecimento de Voz",- "settingTTS.sttAutoStop.desc": "Se desativado, o reconhecimento de voz não será encerrado automaticamente e exigirá clique manual para parar",- "settingTTS.sttAutoStop.title": "Parada Automática do Reconhecimento de Voz",- "settingTTS.sttLocale.desc": "Idioma da entrada de voz, esta opção pode melhorar a precisão do reconhecimento",- "settingTTS.sttLocale.title": "Idioma do Reconhecimento de Voz",- "settingTTS.sttService.desc": "Onde 'navegador' é o serviço nativo de reconhecimento de voz do navegador",- "settingTTS.sttService.title": "Serviço de Reconhecimento de Voz","settingTTS.submit": "Atualizar Serviço de Voz","settingTTS.title": "Serviço de Voz","settingTTS.tts": "Configurações de Texto para Fala",diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.jsonindex 390b6b8638d..7add12ae95b 100644--- a/locales/ru-RU/setting.json+++ b/locales/ru-RU/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code — агентный CLI Alibaba Qwen для программирования","settingSystemTools.tools.rg.desc": "ripgrep — чрезвычайно быстрый инструмент для поиска текста","settingSystemTools.tools.uv.desc": "uv — сверхбыстрый менеджер пакетов Python",- "settingTTS.openai.sttModel": "Модель распознавания речи OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Модель синтеза речи OpenAI","settingTTS.showAllLocaleVoice.desc": "Если отключено, будут отображаться только голоса текущего языка","settingTTS.showAllLocaleVoice.title": "Показать все локальные голоса",- "settingTTS.stt": "Настройки распознавания речи",- "settingTTS.sttAutoStop.desc": "Если отключено, распознавание речи не завершится автоматически и потребует ручной остановки",- "settingTTS.sttAutoStop.title": "Автоостановка распознавания речи",- "settingTTS.sttLocale.desc": "Язык голосового ввода, влияет на точность распознавания",- "settingTTS.sttLocale.title": "Язык распознавания речи",- "settingTTS.sttService.desc": "«Браузер» — это встроенная служба распознавания речи браузера",- "settingTTS.sttService.title": "Служба распознавания речи","settingTTS.submit": "Обновить голосовую службу","settingTTS.title": "Голосовая служба","settingTTS.tts": "Настройки синтеза речи",diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.jsonindex f5b254e5ce4..3c36de89aff 100644--- a/locales/tr-TR/setting.json+++ b/locales/tr-TR/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - Alibaba Qwen otonom kodlama CLI'ı","settingSystemTools.tools.rg.desc": "ripgrep - son derece hızlı metin arama aracı","settingSystemTools.tools.uv.desc": "uv - son derece hızlı Python paket yöneticisi",- "settingTTS.openai.sttModel": "OpenAI Konuşmadan Metne Modeli","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI Metinden Konuşmaya Modeli","settingTTS.showAllLocaleVoice.desc": "Kapalıysa, yalnızca geçerli dildeki sesler gösterilir","settingTTS.showAllLocaleVoice.title": "Tüm Yerel Sesleri Göster",- "settingTTS.stt": "Konuşma Tanıma Ayarları",- "settingTTS.sttAutoStop.desc": "Kapalıysa, konuşma tanıma otomatik olarak sona ermez ve manuel olarak durdurulması gerekir",- "settingTTS.sttAutoStop.title": "Konuşma Tanımayı Otomatik Durdur",- "settingTTS.sttLocale.desc": "Konuşma girişinin dili, bu seçenek tanıma doğruluğunu artırabilir",- "settingTTS.sttLocale.title": "Konuşma Tanıma Dili",- "settingTTS.sttService.desc": "'Tarayıcı', tarayıcının yerel konuşma tanıma hizmetidir",- "settingTTS.sttService.title": "Konuşma Tanıma Hizmeti","settingTTS.submit": "Ses Hizmetini Güncelle","settingTTS.title": "Ses Hizmeti","settingTTS.tts": "Metinden Konuşmaya Ayarları",diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.jsonindex c1bb4dce19a..b135da6fff7 100644--- a/locales/vi-VN/setting.json+++ b/locales/vi-VN/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - CLI lập trình tự động của Alibaba Qwen","settingSystemTools.tools.rg.desc": "ripgrep - công cụ tìm kiếm văn bản cực nhanh","settingSystemTools.tools.uv.desc": "uv - trình quản lý gói Python cực nhanh",- "settingTTS.openai.sttModel": "Mô Hình Chuyển Giọng Nói Thành Văn Bản của OpenAI","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "Mô Hình Chuyển Văn Bản Thành Giọng Nói của OpenAI","settingTTS.showAllLocaleVoice.desc": "Nếu tắt, chỉ hiển thị giọng nói theo ngôn ngữ hiện tại","settingTTS.showAllLocaleVoice.title": "Hiển Thị Tất Cả Giọng Nói Theo Ngôn Ngữ",- "settingTTS.stt": "Cài Đặt Nhận Diện Giọng Nói",- "settingTTS.sttAutoStop.desc": "Khi tắt, nhận diện giọng nói sẽ không tự động kết thúc và cần nhấn dừng thủ công",- "settingTTS.sttAutoStop.title": "Tự Động Dừng Nhận Diện Giọng Nói",- "settingTTS.sttLocale.desc": "Ngôn ngữ đầu vào giọng nói, tùy chọn này có thể cải thiện độ chính xác của nhận diện giọng nói",- "settingTTS.sttLocale.title": "Ngôn Ngữ Nhận Diện Giọng Nói",- "settingTTS.sttService.desc": "‘Trình duyệt’ là dịch vụ nhận diện giọng nói gốc của trình duyệt",- "settingTTS.sttService.title": "Dịch Vụ Nhận Diện Giọng Nói","settingTTS.submit": "Cập Nhật Dịch Vụ Giọng Nói","settingTTS.title": "Dịch Vụ Giọng Nói","settingTTS.tts": "Cài Đặt Chuyển Văn Bản Thành Giọng Nói",diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.jsonindex 05888d1ea42..7e4286f38a4 100644--- a/locales/zh-CN/setting.json+++ b/locales/zh-CN/setting.json@@ -1256,18 +1256,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - 阿里通义千问命令行编码助理","settingSystemTools.tools.rg.desc": "ripgrep - 极快的文本搜索工具","settingSystemTools.tools.uv.desc": "uv - 极快的 Python 包管理器",- "settingTTS.openai.sttModel": "OpenAI 语音识别模型","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI 语音合成模型","settingTTS.showAllLocaleVoice.desc": "关闭则只显示当前语种的声源","settingTTS.showAllLocaleVoice.title": "显示所有语种声源",- "settingTTS.stt": "语音识别设置",- "settingTTS.sttAutoStop.desc": "关闭后,语音识别将不会自动结束,需要手动点击结束按钮",- "settingTTS.sttAutoStop.title": "自动结束语音识别",- "settingTTS.sttLocale.desc": "语音输入的语种,此选项可提高语音识别准确率",- "settingTTS.sttLocale.title": "语音识别语种",- "settingTTS.sttService.desc": "其中 browser 为浏览器原生的语音识别服务",- "settingTTS.sttService.title": "语音识别服务","settingTTS.submit": "更新语音服务","settingTTS.title": "语音服务","settingTTS.tts": "语音合成设置",diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.jsonindex 75b2909f300..8f50f0ee39d 100644--- a/locales/zh-TW/setting.json+++ b/locales/zh-TW/setting.json@@ -1225,18 +1225,10 @@"settingSystemTools.tools.qwen.desc": "Qwen Code - 阿里巴巴通義千問代理式程式碼 CLI","settingSystemTools.tools.rg.desc": "ripgrep - 極速的文字搜尋工具","settingSystemTools.tools.uv.desc": "uv — 極高速的 Python 套件管理器",- "settingTTS.openai.sttModel": "OpenAI 語音識別模型","settingTTS.openai.title": "OpenAI","settingTTS.openai.ttsModel": "OpenAI 語音合成模型","settingTTS.showAllLocaleVoice.desc": "關閉則只顯示當前語種的聲源","settingTTS.showAllLocaleVoice.title": "顯示所有語種聲源",- "settingTTS.stt": "語音識別設定",- "settingTTS.sttAutoStop.desc": "關閉後,語音識別將不會自動結束,需要手動點擊結束按鈕",- "settingTTS.sttAutoStop.title": "自動結束語音識別",- "settingTTS.sttLocale.desc": "語音輸入的語種,此選項可提高語音識別準確率",- "settingTTS.sttLocale.title": "語音識別語種",- "settingTTS.sttService.desc": "其中 browser 為瀏覽器原生的語音識別服務",- "settingTTS.sttService.title": "語音識別服務","settingTTS.submit": "更新語音服務","settingTTS.title": "語音服務","settingTTS.tts": "語音合成設定",diff --git a/packages/builtin-skills/src/lobehub/references/model.ts b/packages/builtin-skills/src/lobehub/references/model.tsindex 44ac152b412..128fdba1d52 100644--- a/packages/builtin-skills/src/lobehub/references/model.ts+++ b/packages/builtin-skills/src/lobehub/references/model.ts@@ -22,7 +22,7 @@ The \`--type\` filter accepts the following values:| \`chat\` | Text chat / LLM models || \`embedding\` | Text embedding models || \`tts\` | Text-to-speech models |-| \`stt\` | Speech-to-text models |+| \`asr\` | Speech-to-text models || \`image\` | Image generation models || \`video\` | Video generation models || \`text2music\` | Music generation models |diff --git a/packages/const/src/settings/agent.ts b/packages/const/src/settings/agent.tsindex f6a8b3d0559..490cbac880c 100644--- a/packages/const/src/settings/agent.ts+++ b/packages/const/src/settings/agent.ts@@ -11,7 +11,6 @@ import { DEFAULT_MODEL } from './llm';export const DEFAUTT_AGENT_TTS_CONFIG: LobeAgentTTSConfig = {showAllLocaleVoice: false,- sttLocale: 'auto',ttsService: 'openai',voice: {openai: 'alloy',diff --git a/packages/const/src/settings/tts.ts b/packages/const/src/settings/tts.tsindex 446b829b28d..21da5416c7a 100644--- a/packages/const/src/settings/tts.ts+++ b/packages/const/src/settings/tts.ts@@ -2,9 +2,6 @@ import type { UserTTSConfig } from '@lobechat/types';export const DEFAULT_TTS_CONFIG: UserTTSConfig = {openAI: {- sttModel: 'whisper-1',ttsModel: 'tts-1',},- sttAutoStop: true,- sttServer: 'openai',};diff --git a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.tsindex 725a5b650dc..b8e94637af3 100644--- a/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts+++ b/packages/database/src/repositories/dataImporter/deprecated/__tests__/index.test.ts@@ -878,7 +878,6 @@ describe('DataImporter', () => {"You are a LobeChat technical operator 🍐🐊. You now need to write a developer's guide for LobeChat as a guide for them to develop LobeChat. This guide will include several sections, and you need to output the corresponding document content based on the user's input.\n\nHere is the technical introduction of LobeChat\n\n LobeChat is an AI conversation application built with the Next.js framework. It uses a series of technology stacks to implement various functions and features.\n\n\n ## Basic Technology Stack\n\n The core technology stack of LobeChat is as follows:\n\n - **Framework**: We chose [Next.js](https://nextjs.org/), a powerful React framework that provides key features such as server-side rendering, routing framework, and Router Handler for our project.\n - **Component Library**: We use [Ant Design (antd)](https://ant.design/) as the basic component library, and introduce [lobe-ui](https://github.com/lobehub/lobe-ui) as our business component library.\n - **State Management**: We use [zustand](https://github.com/pmndrs/zustand), a lightweight and easy-to-use state management library.\n - **Network Request**: We adopt [swr](https://swr.vercel.app/), a React Hooks library for data fetching.\n - **Routing**: We directly use the routing solution provided by [Next.js](https://nextjs.org/) itself.\n - **Internationalization**: We use [i18next](https://www.i18next.com/) to implement multi-language support for the application.\n - **Styling**: We use [antd-style](https://github.com/ant-design/antd-style), a CSS-in-JS library that is compatible with Ant Design.\n - **Unit Testing**: We use [vitest](https://github.com/vitejs/vitest) for unit testing.\n\n ## Folder Directory Structure\n\n The folder directory structure of LobeChat is as follows:\n\n \\`\\`\\`bash\n src\n ├── app # Main logic and state management related code of the application\n ├── components # Reusable UI components\n ├── config # Application configuration files, including client environment variables and server environment variables\n ├── const # Used to define constants, such as action types, route names, etc.\n ├── features # Function modules related to business functions, such as Agent settings, plugin development pop-ups, etc.\n ├── hooks # Custom utility Hooks reused throughout the application\n ├── layout # Layout components of the application, such as navigation bar, sidebar, etc.\n ├── locales # Language files for internationalization\n ├── services # Encapsulated backend service interfaces, such as HTTP requests\n ├── store # Zustand store for state management\n ├── types # TypeScript type definition files\n └── utils # Common utility functions\n \\`\\`\\`\n",tts: {showAllLocaleVoice: false,- sttLocale: 'auto',ttsService: 'openai',voice: { openai: 'alloy' },},diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.tsindex 4f42f84ac11..3ad4dd9f2b9 100644--- a/packages/locales/src/default/setting.ts+++ b/packages/locales/src/default/setting.ts@@ -1499,22 +1499,11 @@ export default {'settingSystemTools.tools.qwen.desc': 'Qwen Code - Alibaba Qwen agentic coding CLI','settingSystemTools.tools.rg.desc': 'ripgrep - extremely fast text search tool','settingSystemTools.tools.uv.desc': 'uv - extremely fast Python package manager',- 'settingTTS.openai.sttModel': 'OpenAI Speech-to-Text Model','settingTTS.openai.title': 'OpenAI','settingTTS.openai.ttsModel': 'OpenAI Text-to-Speech Model','settingTTS.showAllLocaleVoice.desc':'If closed, only voices in the current language will be displayed','settingTTS.showAllLocaleVoice.title': 'Show All Locale Voices',- 'settingTTS.stt': 'Speech Recognition Settings',- 'settingTTS.sttAutoStop.desc':- 'When closed, speech recognition will not end automatically and requires manual click to stop',- 'settingTTS.sttAutoStop.title': 'Auto Stop Speech Recognition',- 'settingTTS.sttLocale.desc':- 'The language of the speech input, this option can improve the accuracy of speech recognition',- 'settingTTS.sttLocale.title': 'Speech Recognition Language',- 'settingTTS.sttService.desc':- "Where 'browser' is the native speech recognition service of the browser",- 'settingTTS.sttService.title': 'Speech Recognition Service','settingTTS.submit': 'Update Voice Service','settingTTS.title': 'Speech Service','settingTTS.tts': 'Text-to-Speech Settings',diff --git a/packages/types/src/agent/tts.ts b/packages/types/src/agent/tts.tsindex c99c0076b6c..f49c6886633 100644--- a/packages/types/src/agent/tts.ts+++ b/packages/types/src/agent/tts.ts@@ -2,7 +2,6 @@ export type TTSServer = 'openai';export interface LobeAgentTTSConfig {showAllLocaleVoice?: boolean;- sttLocale: 'auto' | string;ttsService: TTSServer;voice: {openai: string;diff --git a/packages/types/src/user/settings/tts.ts b/packages/types/src/user/settings/tts.tsindex bc34f8cf1ee..7357efdc2ab 100644--- a/packages/types/src/user/settings/tts.ts+++ b/packages/types/src/user/settings/tts.ts@@ -1,10 +1,5 @@-export type STTServer = 'openai' | 'browser';-export interface UserTTSConfig {openAI: {- sttModel: 'whisper-1';ttsModel: 'gpt-4o-mini-tts' | 'tts-1' | 'tts-1-hd';};- sttAutoStop: boolean;- sttServer: STTServer;}diff --git a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snapindex 6955b3e27c8..eeb24f36c45 100644--- a/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap+++ b/src/store/user/slices/settings/selectors/__snapshots__/settings.test.ts.snap@@ -10,7 +10,6 @@ exports[`settingsSelectors > currentSettings > should merge DEFAULT_SETTINGS and"systemRole": "","tts": {"showAllLocaleVoice": false,- "sttLocale": "auto","ttsService": "openai","voice": {"openai": "alloy",@@ -39,11 +38,8 @@ exports[`settingsSelectors > currentSettings > should merge DEFAULT_SETTINGS and"themeMode": "light","tts": {"openAI": {- "sttModel": "whisper-1","ttsModel": "tts-1",},- "sttAutoStop": true,- "sttServer": "openai",},}`;@@ -130,11 +126,8 @@ exports[`settingsSelectors > currentSystemAgent > should merge DEFAULT_SYSTEM_AGexports[`settingsSelectors > currentTTS > should merge DEFAULT_TTS_CONFIG and s.settings.tts correctly 1`] = `{"openAI": {- "sttModel": "whisper-2",- "ttsModel": "tts-1",+ "ttsModel": "tts-1-hd",},- "sttAutoStop": false,- "sttServer": "openai",}`;@@ -173,7 +166,6 @@ exports[`settingsSelectors > defaultAgent > should merge DEFAULT_AGENT and s.set"systemRole": "user","tts": {"showAllLocaleVoice": false,- "sttLocale": "auto","ttsService": "openai","voice": {"openai": "alloy",@@ -221,7 +213,6 @@ exports[`settingsSelectors > defaultAgentConfig > should merge DEFAULT_AGENT_CON"systemRole": "custom role","tts": {"showAllLocaleVoice": false,- "sttLocale": "auto","ttsService": "openai","voice": {"openai": "alloy",diff --git a/src/store/user/slices/settings/selectors/settings.test.ts b/src/store/user/slices/settings/selectors/settings.test.tsindex bba7f3d5205..bcc118806ea 100644--- a/src/store/user/slices/settings/selectors/settings.test.ts+++ b/src/store/user/slices/settings/selectors/settings.test.ts@@ -23,7 +23,6 @@ describe('settingsSelectors', () => {params: {},tts: {showAllLocaleVoice: false,- sttLocale: 'auto',ttsService: 'openai',voice: {openai: 'alloy',@@ -37,11 +36,8 @@ describe('settingsSelectors', () => {},tts: {openAI: {- sttModel: 'whisper-1',ttsModel: 'tts-1',},- sttAutoStop: true,- sttServer: 'openai',},languageModel: {openAI: {@@ -106,9 +102,8 @@ describe('settingsSelectors', () => {const s = {settings: {tts: {- sttAutoStop: false,openAI: {- sttModel: 'whisper-2',+ ttsModel: 'tts-1-hd',},},},