mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
Mark provider unofficial in the list
This commit is contained in:
parent
43c3943287
commit
00e48097e5
@ -1,4 +1,4 @@
|
|||||||
import { getPreviewString, saveTtsProviderSettings } from './index.js';
|
import { saveTtsProviderSettings } from './index.js';
|
||||||
|
|
||||||
export { GptSovitsV2Provider };
|
export { GptSovitsV2Provider };
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ class GptSovitsV2Provider {
|
|||||||
lang: 'auto',
|
lang: 'auto',
|
||||||
streaming: false,
|
streaming: false,
|
||||||
text_lang: 'zh',
|
text_lang: 'zh',
|
||||||
prompt_lang:"zh",
|
prompt_lang: 'zh',
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -178,7 +178,7 @@ class GptSovitsV2Provider {
|
|||||||
console.info(`Generating new TTS for voice_id ${voiceId}`);
|
console.info(`Generating new TTS for voice_id ${voiceId}`);
|
||||||
|
|
||||||
function replaceSpeaker(text) {
|
function replaceSpeaker(text) {
|
||||||
return text.replace(/\[.*?\]/gu, "");
|
return text.replace(/\[.*?\]/gu, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
let prompt_text = replaceSpeaker(voiceId);
|
let prompt_text = replaceSpeaker(voiceId);
|
||||||
@ -187,15 +187,15 @@ class GptSovitsV2Provider {
|
|||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
text: inputText,
|
text: inputText,
|
||||||
prompt_text:prompt_text,
|
prompt_text: prompt_text,
|
||||||
ref_audio_path:"./参考音频/"+voiceId+".wav",
|
ref_audio_path: './参考音频/' + voiceId + '.wav',
|
||||||
text_lang: this.settings.text_lang,
|
text_lang: this.settings.text_lang,
|
||||||
prompt_lang: this.settings.prompt_lang,
|
prompt_lang: this.settings.prompt_lang,
|
||||||
text_split_method:"cut5",
|
text_split_method: 'cut5',
|
||||||
batch_size:1,
|
batch_size: 1,
|
||||||
media_type:"ogg",
|
media_type: 'ogg',
|
||||||
streaming_mode:"true",
|
streaming_mode: 'true',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const url = `${this.settings.provider_endpoint}/`;
|
const url = `${this.settings.provider_endpoint}/`;
|
||||||
|
@ -92,7 +92,7 @@ const ttsProviders = {
|
|||||||
Edge: EdgeTtsProvider,
|
Edge: EdgeTtsProvider,
|
||||||
ElevenLabs: ElevenLabsTtsProvider,
|
ElevenLabs: ElevenLabsTtsProvider,
|
||||||
GSVI: GSVITtsProvider,
|
GSVI: GSVITtsProvider,
|
||||||
GptSovitsV2: GptSovitsV2Provider,
|
'GPT-SoVITS-V2 (Unofficial)': GptSovitsV2Provider,
|
||||||
Novel: NovelTtsProvider,
|
Novel: NovelTtsProvider,
|
||||||
OpenAI: OpenAITtsProvider,
|
OpenAI: OpenAITtsProvider,
|
||||||
'OpenAI Compatible': OpenAICompatibleTtsProvider,
|
'OpenAI Compatible': OpenAICompatibleTtsProvider,
|
||||||
|
Loading…
Reference in New Issue
Block a user