mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
fix sbvits2 auto splitting
This commit is contained in:
parent
b3e57dae85
commit
4e447a59b5
@ -276,6 +276,11 @@ class SBVits2TtsProvider {
|
|||||||
|
|
||||||
const [model_id, speaker_id, style] = voiceId.split('-');
|
const [model_id, speaker_id, style] = voiceId.split('-');
|
||||||
const params = new URLSearchParams();
|
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('text', inputText);
|
||||||
params.append('model_id', model_id);
|
params.append('model_id', model_id);
|
||||||
params.append('speaker_id', speaker_id);
|
params.append('speaker_id', speaker_id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user