fix sbvits2 auto splitting

This commit is contained in:
Risenafis 2024-06-11 00:21:05 +09:00
parent b3e57dae85
commit 4e447a59b5
1 changed files with 5 additions and 0 deletions

View File

@ -276,6 +276,11 @@ class SBVits2TtsProvider {
const [model_id, speaker_id, style] = voiceId.split('-');
const params = new URLSearchParams();
if (this.settings.auto_split) {
// newlines are replaced with spaces
// so, revert for auto_split
inputText = inputText.replace(' ', '\n');
}
params.append('text', inputText);
params.append('model_id', model_id);
params.append('speaker_id', speaker_id);