Mark provider unofficial in the list
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | import { getPreviewString, saveTtsProviderSettings } from './index.js'; |
| 2 | 2 | |
| 3 | 3 | export { GptSovitsV2Provider }; |
| 4 | 4 | |
| @@ -42,7 +42,7 @@ class GptSovitsV2Provider { | ||
| 42 | 42 | lang: 'auto', |
| 43 | 43 | streaming: false, |
| 44 | 44 | text_lang: 'zh', |
| 45 | 45 | prompt_lang:" 'zh"', |
| 46 | 46 | |
| 47 | 47 | }; |
| 48 | 48 | |
| @@ -178,7 +178,7 @@ class GptSovitsV2Provider { | ||
| 178 | 178 | console.info(`Generating new TTS for voice_id ${voiceId}`); |
| 179 | 179 | |
| 180 | 180 | function replaceSpeaker(text) { |
| 181 | 181 | return text.replace(/\[.*?\]/gu, ""''); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | let prompt_text = replaceSpeaker(voiceId); |
| @@ -188,13 +188,13 @@ class GptSovitsV2Provider { | ||
| 188 | 188 | const params = { |
| 189 | 189 | text: inputText, |
| 190 | 190 | prompt_text: prompt_text, |
| 191 | 191 | ref_audio_path:" './参考音频/"' + voiceId +" '.wav"', |
| 192 | 192 | text_lang: this.settings.text_lang, |
| 193 | 193 | prompt_lang: this.settings.prompt_lang, |
| 194 | 194 | text_split_method:" 'cut5"', |
| 195 | 195 | batch_size: 1, |
| 196 | 196 | media_type:" 'ogg"', |
| 197 | 197 | streaming_mode:" 'true"', |
| 198 | 198 | }; |
| 199 | 199 | |
| 200 | 200 | |
| @@ -92,7 +92,7 @@ const ttsProviders = { | ||
| 92 | 92 | Edge: EdgeTtsProvider, |
| 93 | 93 | ElevenLabs: ElevenLabsTtsProvider, |
| 94 | 94 | GSVI: GSVITtsProvider, |
| 95 | - GptSovitsV2: GptSovitsV2Provider, | |
| 95 | + 'GPT-SoVITS-V2 (Unofficial)': GptSovitsV2Provider, | |
| 96 | 96 | Novel: NovelTtsProvider, |
| 97 | 97 | OpenAI: OpenAITtsProvider, |
| 98 | 98 | 'OpenAI Compatible': OpenAICompatibleTtsProvider, |