rejoin style
This commit is contained in:
parent
0e0bd0d3d9
commit
bbd4d7e2fd
|
@ -276,7 +276,8 @@ class SBVits2TtsProvider {
|
||||||
async fetchTtsGeneration(inputText, voiceId) {
|
async fetchTtsGeneration(inputText, voiceId) {
|
||||||
console.info(`Generating new TTS for voice_id ${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();
|
const params = new URLSearchParams();
|
||||||
// restore for auto_split
|
// restore for auto_split
|
||||||
inputText = inputText.replaceAll('<br>', '\n');
|
inputText = inputText.replaceAll('<br>', '\n');
|
||||||
|
|
Loading…
Reference in New Issue