From bbd4d7e2fd003e6968175d640b7cb82d78239c5e Mon Sep 17 00:00:00 2001 From: Risenafis Date: Tue, 25 Jun 2024 20:05:41 +0900 Subject: [PATCH] rejoin style --- public/scripts/extensions/tts/sbvits2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/tts/sbvits2.js b/public/scripts/extensions/tts/sbvits2.js index 7f542ca6a..fc31fc574 100644 --- a/public/scripts/extensions/tts/sbvits2.js +++ b/public/scripts/extensions/tts/sbvits2.js @@ -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('
', '\n');