From de03bf834edd766118877095990dff1a7626b47d Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Mon, 3 Jun 2024 19:09:55 +0100 Subject: [PATCH] feat: add option to allow nonlocal TTS voices --- src/lib/components/chat/Settings/Audio.svelte | 25 +++++++++++++++---- src/lib/i18n/locales/ar-BH/translation.json | 2 ++ src/lib/i18n/locales/bg-BG/translation.json | 2 ++ src/lib/i18n/locales/bn-BD/translation.json | 2 ++ src/lib/i18n/locales/ca-ES/translation.json | 2 ++ src/lib/i18n/locales/ceb-PH/translation.json | 2 ++ src/lib/i18n/locales/de-DE/translation.json | 2 ++ src/lib/i18n/locales/dg-DG/translation.json | 2 ++ src/lib/i18n/locales/en-GB/translation.json | 2 ++ src/lib/i18n/locales/en-US/translation.json | 2 ++ src/lib/i18n/locales/es-ES/translation.json | 2 ++ src/lib/i18n/locales/fa-IR/translation.json | 2 ++ src/lib/i18n/locales/fi-FI/translation.json | 2 ++ src/lib/i18n/locales/fr-CA/translation.json | 2 ++ src/lib/i18n/locales/fr-FR/translation.json | 2 ++ src/lib/i18n/locales/he-IL/translation.json | 2 ++ src/lib/i18n/locales/hi-IN/translation.json | 2 ++ src/lib/i18n/locales/hr-HR/translation.json | 2 ++ src/lib/i18n/locales/it-IT/translation.json | 2 ++ src/lib/i18n/locales/ja-JP/translation.json | 2 ++ src/lib/i18n/locales/ka-GE/translation.json | 2 ++ src/lib/i18n/locales/ko-KR/translation.json | 2 ++ src/lib/i18n/locales/nl-NL/translation.json | 2 ++ src/lib/i18n/locales/pa-IN/translation.json | 2 ++ src/lib/i18n/locales/pl-PL/translation.json | 2 ++ src/lib/i18n/locales/pt-BR/translation.json | 2 ++ src/lib/i18n/locales/pt-PT/translation.json | 2 ++ src/lib/i18n/locales/ru-RU/translation.json | 2 ++ src/lib/i18n/locales/sr-RS/translation.json | 2 ++ src/lib/i18n/locales/sv-SE/translation.json | 2 ++ src/lib/i18n/locales/tr-TR/translation.json | 2 ++ src/lib/i18n/locales/uk-UA/translation.json | 2 ++ src/lib/i18n/locales/vi-VN/translation.json | 2 ++ src/lib/i18n/locales/zh-CN/translation.json | 2 ++ src/lib/i18n/locales/zh-TW/translation.json | 2 ++ src/lib/stores/index.ts | 1 + 36 files changed, 89 insertions(+), 5 deletions(-) diff --git a/src/lib/components/chat/Settings/Audio.svelte b/src/lib/components/chat/Settings/Audio.svelte index 007c85c78..b0a320d2c 100644 --- a/src/lib/components/chat/Settings/Audio.svelte +++ b/src/lib/components/chat/Settings/Audio.svelte @@ -3,6 +3,7 @@ import { user, settings } from '$lib/stores'; import { createEventDispatcher, onMount, getContext } from 'svelte'; import { toast } from 'svelte-sonner'; + import Switch from '$lib/components/common/Switch.svelte'; const dispatch = createEventDispatcher(); const i18n = getContext('i18n'); @@ -20,6 +21,7 @@ let conversationMode = false; let speechAutoSend = false; let responseAutoPlayback = false; + let nonLocalVoices = false; let TTSEngines = ['', 'openai']; let TTSEngine = ''; @@ -105,6 +107,7 @@ STTEngine = $settings?.audio?.STTEngine ?? ''; TTSEngine = $settings?.audio?.TTSEngine ?? ''; + nonLocalVoices = $settings.audio?.nonLocalVoices ?? false; speaker = $settings?.audio?.speaker ?? ''; model = $settings?.audio?.model ?? ''; @@ -139,7 +142,8 @@ STTEngine: STTEngine !== '' ? STTEngine : undefined, TTSEngine: TTSEngine !== '' ? TTSEngine : undefined, speaker: speaker !== '' ? speaker : undefined, - model: model !== '' ? model : undefined + model: model !== '' ? model : undefined, + nonLocalVoices: nonLocalVoices } }); dispatch('save'); @@ -290,16 +294,27 @@ +
+
+ {$i18n.t('Allow non-local voices')} +
+ +
+ +
+
{:else if TTSEngine === 'openai'}
diff --git a/src/lib/i18n/locales/ar-BH/translation.json b/src/lib/i18n/locales/ar-BH/translation.json index b39dc9625..813b605ef 100644 --- a/src/lib/i18n/locales/ar-BH/translation.json +++ b/src/lib/i18n/locales/ar-BH/translation.json @@ -37,6 +37,7 @@ "All Users": "جميع المستخدمين", "Allow": "يسمح", "Allow Chat Deletion": "يستطيع حذف المحادثات", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "الأحرف الأبجدية الرقمية والواصلات", "Already have an account?": "هل تملك حساب ؟", "an assistant": "مساعد", @@ -206,6 +207,7 @@ "Experimental": "تجريبي", "Export": "تصدير", "Export All Chats (All Users)": "تصدير جميع الدردشات (جميع المستخدمين)", + "Export chat (.json)": "", "Export Chats": "تصدير جميع الدردشات", "Export Documents Mapping": "تصدير وثائق الخرائط", "Export Models": "نماذج التصدير", diff --git a/src/lib/i18n/locales/bg-BG/translation.json b/src/lib/i18n/locales/bg-BG/translation.json index 790ecb02c..fb8b885b8 100644 --- a/src/lib/i18n/locales/bg-BG/translation.json +++ b/src/lib/i18n/locales/bg-BG/translation.json @@ -37,6 +37,7 @@ "All Users": "Всички Потребители", "Allow": "Позволи", "Allow Chat Deletion": "Позволи Изтриване на Чат", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "алфанумерични знаци и тире", "Already have an account?": "Вече имате акаунт? ", "an assistant": "асистент", @@ -206,6 +207,7 @@ "Experimental": "Експериментално", "Export": "Износ", "Export All Chats (All Users)": "Експортване на всички чатове (За всички потребители)", + "Export chat (.json)": "", "Export Chats": "Експортване на чатове", "Export Documents Mapping": "Експортване на документен мапинг", "Export Models": "Експортиране на модели", diff --git a/src/lib/i18n/locales/bn-BD/translation.json b/src/lib/i18n/locales/bn-BD/translation.json index ae139f3b6..8f7fe1533 100644 --- a/src/lib/i18n/locales/bn-BD/translation.json +++ b/src/lib/i18n/locales/bn-BD/translation.json @@ -37,6 +37,7 @@ "All Users": "সব ইউজার", "Allow": "অনুমোদন", "Allow Chat Deletion": "চ্যাট ডিলিট করতে দিন", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "ইংরেজি অক্ষর, সংখ্যা এবং হাইফেন", "Already have an account?": "আগে থেকেই একাউন্ট আছে?", "an assistant": "একটা এসিস্ট্যান্ট", @@ -206,6 +207,7 @@ "Experimental": "পরিক্ষামূলক", "Export": "রপ্তানি", "Export All Chats (All Users)": "সব চ্যাট এক্সপোর্ট করুন (সব ইউজারের)", + "Export chat (.json)": "", "Export Chats": "চ্যাটগুলো এক্সপোর্ট করুন", "Export Documents Mapping": "ডকুমেন্টসমূহ ম্যাপিং এক্সপোর্ট করুন", "Export Models": "রপ্তানি মডেল", diff --git a/src/lib/i18n/locales/ca-ES/translation.json b/src/lib/i18n/locales/ca-ES/translation.json index 52a827b23..953073024 100644 --- a/src/lib/i18n/locales/ca-ES/translation.json +++ b/src/lib/i18n/locales/ca-ES/translation.json @@ -37,6 +37,7 @@ "All Users": "Tots els Usuaris", "Allow": "Permet", "Allow Chat Deletion": "Permet la Supressió del Xat", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caràcters alfanumèrics i guions", "Already have an account?": "Ja tens un compte?", "an assistant": "un assistent", @@ -206,6 +207,7 @@ "Experimental": "Experimental", "Export": "Exportar", "Export All Chats (All Users)": "Exporta Tots els Xats (Tots els Usuaris)", + "Export chat (.json)": "", "Export Chats": "Exporta Xats", "Export Documents Mapping": "Exporta el Mapatge de Documents", "Export Models": "Models d'exportació", diff --git a/src/lib/i18n/locales/ceb-PH/translation.json b/src/lib/i18n/locales/ceb-PH/translation.json index 8c3d5733f..7b8cbe1e9 100644 --- a/src/lib/i18n/locales/ceb-PH/translation.json +++ b/src/lib/i18n/locales/ceb-PH/translation.json @@ -37,6 +37,7 @@ "All Users": "Ang tanan nga mga tiggamit", "Allow": "Sa pagtugot", "Allow Chat Deletion": "Tugoti nga mapapas ang mga chat", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alphanumeric nga mga karakter ug hyphen", "Already have an account?": "Naa na kay account ?", "an assistant": "usa ka katabang", @@ -206,6 +207,7 @@ "Experimental": "Eksperimento", "Export": "", "Export All Chats (All Users)": "I-export ang tanan nga mga chat (Tanan nga tiggamit)", + "Export chat (.json)": "", "Export Chats": "I-export ang mga chat", "Export Documents Mapping": "I-export ang pagmapa sa dokumento", "Export Models": "", diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index 81e919ac8..7a53910e4 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -37,6 +37,7 @@ "All Users": "Alle Benutzer", "Allow": "Erlauben", "Allow Chat Deletion": "Chat Löschung erlauben", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alphanumerische Zeichen und Bindestriche", "Already have an account?": "Hast du vielleicht schon ein Account?", "an assistant": "ein Assistent", @@ -206,6 +207,7 @@ "Experimental": "Experimentell", "Export": "Exportieren", "Export All Chats (All Users)": "Alle Chats exportieren (alle Benutzer)", + "Export chat (.json)": "", "Export Chats": "Chats exportieren", "Export Documents Mapping": "Dokumentenmapping exportieren", "Export Models": "Modelle exportieren", diff --git a/src/lib/i18n/locales/dg-DG/translation.json b/src/lib/i18n/locales/dg-DG/translation.json index 396a51dfc..c732573a0 100644 --- a/src/lib/i18n/locales/dg-DG/translation.json +++ b/src/lib/i18n/locales/dg-DG/translation.json @@ -37,6 +37,7 @@ "All Users": "All Users", "Allow": "Allow", "Allow Chat Deletion": "Allow Delete Chats", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "so alpha, many hyphen", "Already have an account?": "Such account exists?", "an assistant": "such assistant", @@ -206,6 +207,7 @@ "Experimental": "Much Experiment", "Export": "", "Export All Chats (All Users)": "Export All Chats (All Doggos)", + "Export chat (.json)": "", "Export Chats": "Export Barks", "Export Documents Mapping": "Export Mappings of Dogos", "Export Models": "", diff --git a/src/lib/i18n/locales/en-GB/translation.json b/src/lib/i18n/locales/en-GB/translation.json index f43f58a22..1502569a4 100644 --- a/src/lib/i18n/locales/en-GB/translation.json +++ b/src/lib/i18n/locales/en-GB/translation.json @@ -37,6 +37,7 @@ "All Users": "", "Allow": "", "Allow Chat Deletion": "", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "", "Already have an account?": "", "an assistant": "", @@ -206,6 +207,7 @@ "Experimental": "", "Export": "", "Export All Chats (All Users)": "", + "Export chat (.json)": "", "Export Chats": "", "Export Documents Mapping": "", "Export Models": "", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index f43f58a22..1502569a4 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -37,6 +37,7 @@ "All Users": "", "Allow": "", "Allow Chat Deletion": "", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "", "Already have an account?": "", "an assistant": "", @@ -206,6 +207,7 @@ "Experimental": "", "Export": "", "Export All Chats (All Users)": "", + "Export chat (.json)": "", "Export Chats": "", "Export Documents Mapping": "", "Export Models": "", diff --git a/src/lib/i18n/locales/es-ES/translation.json b/src/lib/i18n/locales/es-ES/translation.json index 7ef3691b8..e61ecf3d3 100644 --- a/src/lib/i18n/locales/es-ES/translation.json +++ b/src/lib/i18n/locales/es-ES/translation.json @@ -37,6 +37,7 @@ "All Users": "Todos los Usuarios", "Allow": "Permitir", "Allow Chat Deletion": "Permitir Borrar Chats", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caracteres alfanuméricos y guiones", "Already have an account?": "¿Ya tienes una cuenta?", "an assistant": "un asistente", @@ -206,6 +207,7 @@ "Experimental": "Experimental", "Export": "Exportar", "Export All Chats (All Users)": "Exportar todos los chats (Todos los usuarios)", + "Export chat (.json)": "", "Export Chats": "Exportar Chats", "Export Documents Mapping": "Exportar el mapeo de documentos", "Export Models": "Modelos de exportación", diff --git a/src/lib/i18n/locales/fa-IR/translation.json b/src/lib/i18n/locales/fa-IR/translation.json index 251c318de..643404565 100644 --- a/src/lib/i18n/locales/fa-IR/translation.json +++ b/src/lib/i18n/locales/fa-IR/translation.json @@ -37,6 +37,7 @@ "All Users": "همه کاربران", "Allow": "اجازه دادن", "Allow Chat Deletion": "اجازه حذف گپ", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "حروف الفبایی و خط فاصله", "Already have an account?": "از قبل حساب کاربری دارید؟", "an assistant": "یک دستیار", @@ -206,6 +207,7 @@ "Experimental": "آزمایشی", "Export": "صادرات", "Export All Chats (All Users)": "اکسپورت از همه گپ\u200cها(همه کاربران)", + "Export chat (.json)": "", "Export Chats": "اکسپورت از گپ\u200cها", "Export Documents Mapping": "اکسپورت از نگاشت اسناد", "Export Models": "مدل های صادرات", diff --git a/src/lib/i18n/locales/fi-FI/translation.json b/src/lib/i18n/locales/fi-FI/translation.json index 994659c81..b53822417 100644 --- a/src/lib/i18n/locales/fi-FI/translation.json +++ b/src/lib/i18n/locales/fi-FI/translation.json @@ -37,6 +37,7 @@ "All Users": "Kaikki käyttäjät", "Allow": "Salli", "Allow Chat Deletion": "Salli keskustelujen poisto", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "kirjaimia, numeroita ja väliviivoja", "Already have an account?": "Onko sinulla jo tili?", "an assistant": "avustaja", @@ -206,6 +207,7 @@ "Experimental": "Kokeellinen", "Export": "Vienti", "Export All Chats (All Users)": "Vie kaikki keskustelut (kaikki käyttäjät)", + "Export chat (.json)": "", "Export Chats": "Vie keskustelut", "Export Documents Mapping": "Vie asiakirjakartoitus", "Export Models": "Vie malleja", diff --git a/src/lib/i18n/locales/fr-CA/translation.json b/src/lib/i18n/locales/fr-CA/translation.json index 21dbb6347..895800555 100644 --- a/src/lib/i18n/locales/fr-CA/translation.json +++ b/src/lib/i18n/locales/fr-CA/translation.json @@ -37,6 +37,7 @@ "All Users": "Tous les utilisateurs", "Allow": "Autoriser", "Allow Chat Deletion": "Autoriser la suppression des discussions", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caractères alphanumériques et tirets", "Already have an account?": "Vous avez déjà un compte ?", "an assistant": "un assistant", @@ -206,6 +207,7 @@ "Experimental": "Expérimental", "Export": "Exportation", "Export All Chats (All Users)": "Exporter toutes les discussions (Tous les utilisateurs)", + "Export chat (.json)": "", "Export Chats": "Exporter les discussions", "Export Documents Mapping": "Exporter le mappage des documents", "Export Models": "Modèles d’exportation", diff --git a/src/lib/i18n/locales/fr-FR/translation.json b/src/lib/i18n/locales/fr-FR/translation.json index 040b54269..e8e36b730 100644 --- a/src/lib/i18n/locales/fr-FR/translation.json +++ b/src/lib/i18n/locales/fr-FR/translation.json @@ -37,6 +37,7 @@ "All Users": "Tous les Utilisateurs", "Allow": "Autoriser", "Allow Chat Deletion": "Autoriser la suppression du chat", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caractères alphanumériques et tirets", "Already have an account?": "Vous avez déjà un compte ?", "an assistant": "un assistant", @@ -206,6 +207,7 @@ "Experimental": "Expérimental", "Export": "Exportation", "Export All Chats (All Users)": "Exporter Tous les Chats (Tous les Utilisateurs)", + "Export chat (.json)": "", "Export Chats": "Exporter les Chats", "Export Documents Mapping": "Exporter la Correspondance des Documents", "Export Models": "Exporter les Modèles", diff --git a/src/lib/i18n/locales/he-IL/translation.json b/src/lib/i18n/locales/he-IL/translation.json index 6ae7a33de..32ad5c3a8 100644 --- a/src/lib/i18n/locales/he-IL/translation.json +++ b/src/lib/i18n/locales/he-IL/translation.json @@ -37,6 +37,7 @@ "All Users": "כל המשתמשים", "Allow": "אפשר", "Allow Chat Deletion": "אפשר מחיקת צ'אט", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "תווים אלפאנומריים ומקפים", "Already have an account?": "כבר יש לך חשבון?", "an assistant": "עוזר", @@ -206,6 +207,7 @@ "Experimental": "ניסיוני", "Export": "ייצא", "Export All Chats (All Users)": "ייצוא כל הצ'אטים (כל המשתמשים)", + "Export chat (.json)": "", "Export Chats": "ייצוא צ'אטים", "Export Documents Mapping": "ייצוא מיפוי מסמכים", "Export Models": "ייצוא מודלים", diff --git a/src/lib/i18n/locales/hi-IN/translation.json b/src/lib/i18n/locales/hi-IN/translation.json index 7a8f78718..d4e8c2b43 100644 --- a/src/lib/i18n/locales/hi-IN/translation.json +++ b/src/lib/i18n/locales/hi-IN/translation.json @@ -37,6 +37,7 @@ "All Users": "सभी उपयोगकर्ता", "Allow": "अनुमति दें", "Allow Chat Deletion": "चैट हटाने की अनुमति दें", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "अल्फ़ान्यूमेरिक वर्ण और हाइफ़न", "Already have an account?": "क्या आपके पास पहले से एक खाता मौजूद है?", "an assistant": "एक सहायक", @@ -206,6 +207,7 @@ "Experimental": "प्रयोगात्मक", "Export": "निर्यातित माल", "Export All Chats (All Users)": "सभी चैट निर्यात करें (सभी उपयोगकर्ताओं की)", + "Export chat (.json)": "", "Export Chats": "चैट निर्यात करें", "Export Documents Mapping": "निर्यात दस्तावेज़ मैपिंग", "Export Models": "निर्यात मॉडल", diff --git a/src/lib/i18n/locales/hr-HR/translation.json b/src/lib/i18n/locales/hr-HR/translation.json index 207678a39..ea8297376 100644 --- a/src/lib/i18n/locales/hr-HR/translation.json +++ b/src/lib/i18n/locales/hr-HR/translation.json @@ -37,6 +37,7 @@ "All Users": "Svi korisnici", "Allow": "Dopusti", "Allow Chat Deletion": "Dopusti brisanje razgovora", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alfanumerički znakovi i crtice", "Already have an account?": "Već imate račun?", "an assistant": "asistent", @@ -206,6 +207,7 @@ "Experimental": "Eksperimentalno", "Export": "Izvoz", "Export All Chats (All Users)": "Izvoz svih razgovora (svi korisnici)", + "Export chat (.json)": "", "Export Chats": "Izvoz razgovora", "Export Documents Mapping": "Izvoz mapiranja dokumenata", "Export Models": "Izvezi modele", diff --git a/src/lib/i18n/locales/it-IT/translation.json b/src/lib/i18n/locales/it-IT/translation.json index ca64e88b3..e1ab9f7d2 100644 --- a/src/lib/i18n/locales/it-IT/translation.json +++ b/src/lib/i18n/locales/it-IT/translation.json @@ -37,6 +37,7 @@ "All Users": "Tutti gli utenti", "Allow": "Consenti", "Allow Chat Deletion": "Consenti l'eliminazione della chat", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caratteri alfanumerici e trattini", "Already have an account?": "Hai già un account?", "an assistant": "un assistente", @@ -206,6 +207,7 @@ "Experimental": "Sperimentale", "Export": "Esportazione", "Export All Chats (All Users)": "Esporta tutte le chat (tutti gli utenti)", + "Export chat (.json)": "", "Export Chats": "Esporta chat", "Export Documents Mapping": "Esporta mappatura documenti", "Export Models": "Esporta modelli", diff --git a/src/lib/i18n/locales/ja-JP/translation.json b/src/lib/i18n/locales/ja-JP/translation.json index 803bac0ae..8319a90e0 100644 --- a/src/lib/i18n/locales/ja-JP/translation.json +++ b/src/lib/i18n/locales/ja-JP/translation.json @@ -37,6 +37,7 @@ "All Users": "すべてのユーザー", "Allow": "許可", "Allow Chat Deletion": "チャットの削除を許可", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "英数字とハイフン", "Already have an account?": "すでにアカウントをお持ちですか?", "an assistant": "アシスタント", @@ -206,6 +207,7 @@ "Experimental": "実験的", "Export": "輸出", "Export All Chats (All Users)": "すべてのチャットをエクスポート (すべてのユーザー)", + "Export chat (.json)": "", "Export Chats": "チャットをエクスポート", "Export Documents Mapping": "ドキュメントマッピングをエクスポート", "Export Models": "モデルのエクスポート", diff --git a/src/lib/i18n/locales/ka-GE/translation.json b/src/lib/i18n/locales/ka-GE/translation.json index f23ca57b6..601ab5f3c 100644 --- a/src/lib/i18n/locales/ka-GE/translation.json +++ b/src/lib/i18n/locales/ka-GE/translation.json @@ -37,6 +37,7 @@ "All Users": "ყველა მომხმარებელი", "Allow": "ნების დართვა", "Allow Chat Deletion": "მიმოწერის წაშლის დაშვება", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "ალფანუმერული სიმბოლოები და დეფისები", "Already have an account?": "უკვე გაქვს ანგარიში?", "an assistant": "ასისტენტი", @@ -206,6 +207,7 @@ "Experimental": "ექსპერიმენტალური", "Export": "ექსპორტი", "Export All Chats (All Users)": "ექსპორტი ყველა ჩათი (ყველა მომხმარებელი)", + "Export chat (.json)": "", "Export Chats": "მიმოწერის ექსპორტირება", "Export Documents Mapping": "დოკუმენტების კავშირის ექსპორტი", "Export Models": "ექსპორტის მოდელები", diff --git a/src/lib/i18n/locales/ko-KR/translation.json b/src/lib/i18n/locales/ko-KR/translation.json index 7fffca76a..2ab8a39ae 100644 --- a/src/lib/i18n/locales/ko-KR/translation.json +++ b/src/lib/i18n/locales/ko-KR/translation.json @@ -37,6 +37,7 @@ "All Users": "모든 사용자", "Allow": "허용", "Allow Chat Deletion": "채팅 삭제 허용", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "영문자,숫자 및 하이픈", "Already have an account?": "이미 계정이 있으신가요?", "an assistant": "어시스턴트", @@ -206,6 +207,7 @@ "Experimental": "실험적", "Export": "수출", "Export All Chats (All Users)": "모든 채팅 내보내기 (모든 사용자)", + "Export chat (.json)": "", "Export Chats": "채팅 내보내기", "Export Documents Mapping": "문서 매핑 내보내기", "Export Models": "모델 내보내기", diff --git a/src/lib/i18n/locales/nl-NL/translation.json b/src/lib/i18n/locales/nl-NL/translation.json index 00dc9d443..e9197ea2d 100644 --- a/src/lib/i18n/locales/nl-NL/translation.json +++ b/src/lib/i18n/locales/nl-NL/translation.json @@ -37,6 +37,7 @@ "All Users": "Alle Gebruikers", "Allow": "Toestaan", "Allow Chat Deletion": "Sta Chat Verwijdering toe", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alfanumerieke karakters en streepjes", "Already have an account?": "Heb je al een account?", "an assistant": "een assistent", @@ -206,6 +207,7 @@ "Experimental": "Experimenteel", "Export": "Exporteren", "Export All Chats (All Users)": "Exporteer Alle Chats (Alle Gebruikers)", + "Export chat (.json)": "", "Export Chats": "Exporteer Chats", "Export Documents Mapping": "Exporteer Documenten Mapping", "Export Models": "Modellen exporteren", diff --git a/src/lib/i18n/locales/pa-IN/translation.json b/src/lib/i18n/locales/pa-IN/translation.json index 43fbd7545..b1335557e 100644 --- a/src/lib/i18n/locales/pa-IN/translation.json +++ b/src/lib/i18n/locales/pa-IN/translation.json @@ -37,6 +37,7 @@ "All Users": "ਸਾਰੇ ਉਪਭੋਗਤਾ", "Allow": "ਅਨੁਮਤੀ", "Allow Chat Deletion": "ਗੱਲਬਾਤ ਮਿਟਾਉਣ ਦੀ ਆਗਿਆ ਦਿਓ", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "ਅਲਫ਼ਾਨਯੂਮੈਰਿਕ ਅੱਖਰ ਅਤੇ ਹਾਈਫਨ", "Already have an account?": "ਪਹਿਲਾਂ ਹੀ ਖਾਤਾ ਹੈ?", "an assistant": "ਇੱਕ ਸਹਾਇਕ", @@ -206,6 +207,7 @@ "Experimental": "ਪਰਮਾਣੂਕ੍ਰਿਤ", "Export": "ਨਿਰਯਾਤ", "Export All Chats (All Users)": "ਸਾਰੀਆਂ ਗੱਲਾਂ ਨਿਰਯਾਤ ਕਰੋ (ਸਾਰੇ ਉਪਭੋਗਤਾ)", + "Export chat (.json)": "", "Export Chats": "ਗੱਲਾਂ ਨਿਰਯਾਤ ਕਰੋ", "Export Documents Mapping": "ਡਾਕੂਮੈਂਟ ਮੈਪਿੰਗ ਨਿਰਯਾਤ ਕਰੋ", "Export Models": "ਨਿਰਯਾਤ ਮਾਡਲ", diff --git a/src/lib/i18n/locales/pl-PL/translation.json b/src/lib/i18n/locales/pl-PL/translation.json index 72d09d8d1..23b9a18ec 100644 --- a/src/lib/i18n/locales/pl-PL/translation.json +++ b/src/lib/i18n/locales/pl-PL/translation.json @@ -37,6 +37,7 @@ "All Users": "Wszyscy użytkownicy", "Allow": "Pozwól", "Allow Chat Deletion": "Pozwól na usuwanie czatu", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "znaki alfanumeryczne i myślniki", "Already have an account?": "Masz już konto?", "an assistant": "asystent", @@ -206,6 +207,7 @@ "Experimental": "Eksperymentalne", "Export": "Eksport", "Export All Chats (All Users)": "Eksportuj wszystkie czaty (wszyscy użytkownicy)", + "Export chat (.json)": "", "Export Chats": "Eksportuj czaty", "Export Documents Mapping": "Eksportuj mapowanie dokumentów", "Export Models": "Eksportuj modele", diff --git a/src/lib/i18n/locales/pt-BR/translation.json b/src/lib/i18n/locales/pt-BR/translation.json index 41a2829a4..553747182 100644 --- a/src/lib/i18n/locales/pt-BR/translation.json +++ b/src/lib/i18n/locales/pt-BR/translation.json @@ -37,6 +37,7 @@ "All Users": "Todos os Usuários", "Allow": "Permitir", "Allow Chat Deletion": "Permitir Exclusão de Bate-papo", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caracteres alfanuméricos e hífens", "Already have an account?": "Já tem uma conta?", "an assistant": "um assistente", @@ -206,6 +207,7 @@ "Experimental": "Experimental", "Export": "Exportação", "Export All Chats (All Users)": "Exportar Todos os Bate-papos (Todos os Usuários)", + "Export chat (.json)": "", "Export Chats": "Exportar Bate-papos", "Export Documents Mapping": "Exportar Mapeamento de Documentos", "Export Models": "Modelos de Exportação", diff --git a/src/lib/i18n/locales/pt-PT/translation.json b/src/lib/i18n/locales/pt-PT/translation.json index c6b69ccb7..700de872b 100644 --- a/src/lib/i18n/locales/pt-PT/translation.json +++ b/src/lib/i18n/locales/pt-PT/translation.json @@ -37,6 +37,7 @@ "All Users": "Todos os Usuários", "Allow": "Permitir", "Allow Chat Deletion": "Permitir Exclusão de Bate-papo", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "caracteres alfanuméricos e hífens", "Already have an account?": "Já tem uma conta?", "an assistant": "um assistente", @@ -206,6 +207,7 @@ "Experimental": "Experimental", "Export": "Exportação", "Export All Chats (All Users)": "Exportar Todos os Bate-papos (Todos os Usuários)", + "Export chat (.json)": "", "Export Chats": "Exportar Bate-papos", "Export Documents Mapping": "Exportar Mapeamento de Documentos", "Export Models": "Modelos de Exportação", diff --git a/src/lib/i18n/locales/ru-RU/translation.json b/src/lib/i18n/locales/ru-RU/translation.json index 37e3ea3b9..75892de0f 100644 --- a/src/lib/i18n/locales/ru-RU/translation.json +++ b/src/lib/i18n/locales/ru-RU/translation.json @@ -37,6 +37,7 @@ "All Users": "Все пользователи", "Allow": "Разрешить", "Allow Chat Deletion": "Дозволять удаление чат", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "буквенно цифровые символы и дефисы", "Already have an account?": "у вас уже есть аккаунт?", "an assistant": "ассистент", @@ -206,6 +207,7 @@ "Experimental": "Экспериментальное", "Export": "Экспорт", "Export All Chats (All Users)": "Экспортировать все чаты (все пользователи)", + "Export chat (.json)": "", "Export Chats": "Экспортировать чаты", "Export Documents Mapping": "Экспортировать отображение документов", "Export Models": "Экспорт моделей", diff --git a/src/lib/i18n/locales/sr-RS/translation.json b/src/lib/i18n/locales/sr-RS/translation.json index de561bee9..a937831e6 100644 --- a/src/lib/i18n/locales/sr-RS/translation.json +++ b/src/lib/i18n/locales/sr-RS/translation.json @@ -37,6 +37,7 @@ "All Users": "Сви корисници", "Allow": "Дозволи", "Allow Chat Deletion": "Дозволи брисање ћаскања", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "алфанумерички знакови и цртице", "Already have an account?": "Већ имате налог?", "an assistant": "помоћник", @@ -206,6 +207,7 @@ "Experimental": "Експериментално", "Export": "Извоз", "Export All Chats (All Users)": "Извези сва ћаскања (сви корисници)", + "Export chat (.json)": "", "Export Chats": "Извези ћаскања", "Export Documents Mapping": "Извези мапирање докумената", "Export Models": "Извези моделе", diff --git a/src/lib/i18n/locales/sv-SE/translation.json b/src/lib/i18n/locales/sv-SE/translation.json index ccf931697..f9167134e 100644 --- a/src/lib/i18n/locales/sv-SE/translation.json +++ b/src/lib/i18n/locales/sv-SE/translation.json @@ -37,6 +37,7 @@ "All Users": "Alla användare", "Allow": "Tillåt", "Allow Chat Deletion": "Tillåt chattborttagning", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alfanumeriska tecken och bindestreck", "Already have an account?": "Har du redan ett konto?", "an assistant": "en assistent", @@ -206,6 +207,7 @@ "Experimental": "Experimentell", "Export": "Export", "Export All Chats (All Users)": "Exportera alla chattar (alla användare)", + "Export chat (.json)": "", "Export Chats": "Exportera chattar", "Export Documents Mapping": "Exportera dokumentmappning", "Export Models": "Exportera modeller", diff --git a/src/lib/i18n/locales/tr-TR/translation.json b/src/lib/i18n/locales/tr-TR/translation.json index e201c5b66..f6fe4b1c0 100644 --- a/src/lib/i18n/locales/tr-TR/translation.json +++ b/src/lib/i18n/locales/tr-TR/translation.json @@ -37,6 +37,7 @@ "All Users": "Tüm Kullanıcılar", "Allow": "İzin ver", "Allow Chat Deletion": "Sohbet Silmeye İzin Ver", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "alfanumerik karakterler ve tireler", "Already have an account?": "Zaten bir hesabınız mı var?", "an assistant": "bir asistan", @@ -206,6 +207,7 @@ "Experimental": "Deneysel", "Export": "Ihracat", "Export All Chats (All Users)": "Tüm Sohbetleri Dışa Aktar (Tüm Kullanıcılar)", + "Export chat (.json)": "", "Export Chats": "Sohbetleri Dışa Aktar", "Export Documents Mapping": "Belge Eşlemesini Dışa Aktar", "Export Models": "Modelleri Dışa Aktar", diff --git a/src/lib/i18n/locales/uk-UA/translation.json b/src/lib/i18n/locales/uk-UA/translation.json index d4e3a680c..fe74067d8 100644 --- a/src/lib/i18n/locales/uk-UA/translation.json +++ b/src/lib/i18n/locales/uk-UA/translation.json @@ -37,6 +37,7 @@ "All Users": "Всі користувачі", "Allow": "Дозволити", "Allow Chat Deletion": "Дозволити видалення чату", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "алфавітно-цифрові символи та дефіси", "Already have an account?": "Вже є обліковий запис?", "an assistant": "асистента", @@ -206,6 +207,7 @@ "Experimental": "Експериментальне", "Export": "Експорт", "Export All Chats (All Users)": "Експортувати всі чати (всі користувачі)", + "Export chat (.json)": "", "Export Chats": "Експортувати чати", "Export Documents Mapping": "Експортувати відображення документів", "Export Models": "Експорт моделей", diff --git a/src/lib/i18n/locales/vi-VN/translation.json b/src/lib/i18n/locales/vi-VN/translation.json index 72bf9668f..c27b614d7 100644 --- a/src/lib/i18n/locales/vi-VN/translation.json +++ b/src/lib/i18n/locales/vi-VN/translation.json @@ -37,6 +37,7 @@ "All Users": "Danh sách người sử dụng", "Allow": "Cho phép", "Allow Chat Deletion": "Cho phép Xóa nội dung chat", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "ký tự số và gạch nối", "Already have an account?": "Bạn đã có tài khoản?", "an assistant": "trợ lý", @@ -206,6 +207,7 @@ "Experimental": "Thử nghiệm", "Export": "Xuất khẩu", "Export All Chats (All Users)": "Tải về tất cả nội dung chat (tất cả mọi người)", + "Export chat (.json)": "", "Export Chats": "Tải nội dung chat về máy", "Export Documents Mapping": "Tải cấu trúc tài liệu về máy", "Export Models": "Tải Models về máy", diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index f6f0d80e5..14035d8ef 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -37,6 +37,7 @@ "All Users": "所有用户", "Allow": "允许", "Allow Chat Deletion": "允许删除聊天记录", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "字母数字字符和连字符", "Already have an account?": "已经有账户了吗?", "an assistant": "助手", @@ -206,6 +207,7 @@ "Experimental": "实验性", "Export": "出口", "Export All Chats (All Users)": "导出所有聊天(所有用户)", + "Export chat (.json)": "", "Export Chats": "导出聊天", "Export Documents Mapping": "导出文档映射", "Export Models": "导出模型", diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index d78cfad4e..87e00f71f 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -37,6 +37,7 @@ "All Users": "所有使用者", "Allow": "允許", "Allow Chat Deletion": "允許刪除聊天紀錄", + "Allow non-local voices": "", "alphanumeric characters and hyphens": "英文字母、數字(0~9)和連字符(-)", "Already have an account?": "已經有帳號了嗎?", "an assistant": "助手", @@ -206,6 +207,7 @@ "Experimental": "實驗功能", "Export": "出口", "Export All Chats (All Users)": "匯出所有聊天紀錄(所有使用者)", + "Export chat (.json)": "", "Export Chats": "匯出聊天紀錄", "Export Documents Mapping": "匯出文件映射", "Export Models": "匯出模型", diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 63453a5cd..5616045f6 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -111,6 +111,7 @@ type AudioSettings = { TTSEngine?: string; speaker?: string; model?: string; + nonLocalVoices?: boolean; }; type TitleSettings = {