mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Update public/scripts/extensions/tts/index.js
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
This commit is contained in:
parent
8b32ee9e80
commit
52a4c9202d
@ -484,7 +484,7 @@ async function processTtsQueue() {
|
||||
}
|
||||
|
||||
// Remove embedded images
|
||||
text = text.replace(/!\[alt-text]\([^)]*\)/g, ' ');
|
||||
text = text.replace(/!\[.*?]\([^)]*\)/g, '');
|
||||
|
||||
if (typeof ttsProvider?.processText === 'function') {
|
||||
text = await ttsProvider.processText(text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user