Merge pull request #2418 from Risenafis/fix-sbvits-style

Fix Style-Bert-VITS2 style
This commit is contained in:
Cohee 2024-06-25 15:07:47 +03:00 committed by GitHub
commit 0f00adca0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ class SBVits2TtsProvider {
async fetchTtsGeneration(inputText, voiceId) {
console.info(`Generating new TTS for voice_id ${voiceId}`);
const [model_id, speaker_id, style] = voiceId.split('-');
const [model_id, speaker_id, ...rest] = voiceId.split('-');
const style = rest.join('-');
const params = new URLSearchParams();
// restore for auto_split
inputText = inputText.replaceAll('<br>', '\n');