mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Remove embedded images before send text to TTS
This commit is contained in:
parent
17b7f17676
commit
8b32ee9e80
@ -483,6 +483,9 @@ async function processTtsQueue() {
|
||||
text = matches ? matches.join(partJoiner) : text;
|
||||
}
|
||||
|
||||
// Remove embedded images
|
||||
text = text.replace(/!\[alt-text]\([^)]*\)/g, ' ');
|
||||
|
||||
if (typeof ttsProvider?.processText === 'function') {
|
||||
text = await ttsProvider.processText(text);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user