mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix xtts separator
This commit is contained in:
@ -502,6 +502,10 @@ async function processTtsQueue() {
|
|||||||
const partJoiner = (ttsProvider?.separator || ' ... ');
|
const partJoiner = (ttsProvider?.separator || ' ... ');
|
||||||
text = matches ? matches.join(partJoiner) : text;
|
text = matches ? matches.join(partJoiner) : text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Collapse newlines and spaces into single space
|
||||||
|
text = text.replace(/\s+/g, ' ');
|
||||||
|
|
||||||
console.log(`TTS: ${text}`)
|
console.log(`TTS: ${text}`)
|
||||||
const char = currentTtsJob.name
|
const char = currentTtsJob.name
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ class XTTSTtsProvider {
|
|||||||
settings
|
settings
|
||||||
ready = false
|
ready = false
|
||||||
voices = []
|
voices = []
|
||||||
separator = ' .. '
|
separator = '. '
|
||||||
|
|
||||||
languageLabels = {
|
languageLabels = {
|
||||||
"Arabic": "ar",
|
"Arabic": "ar",
|
||||||
|
Reference in New Issue
Block a user