mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add provider-specific TTS processing: XTTS - replace ellipsis, Novel - remove tildes.
This commit is contained in:
@ -503,6 +503,10 @@ async function processTtsQueue() {
|
||||
text = matches ? matches.join(partJoiner) : text;
|
||||
}
|
||||
|
||||
if (typeof ttsProvider?.processText === 'function') {
|
||||
text = await ttsProvider.processText(text);
|
||||
}
|
||||
|
||||
// Collapse newlines and spaces into single space
|
||||
text = text.replace(/\s+/g, ' ');
|
||||
|
||||
|
Reference in New Issue
Block a user