mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Merge pull request #3037 from yar3333/release
Remove embedded images before send text to TTS
This commit is contained in:
commit
fe469745b3
@ -483,6 +483,9 @@ async function processTtsQueue() {
|
||||
text = matches ? matches.join(partJoiner) : text;
|
||||
}
|
||||
|
||||
// Remove embedded images
|
||||
text = text.replace(/!\[.*?]\([^)]*\)/g, '');
|
||||
|
||||
if (typeof ttsProvider?.processText === 'function') {
|
||||
text = await ttsProvider.processText(text);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user