Update public/scripts/extensions/tts/index.js

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
This commit is contained in:
Yaroslav Sivakov 2024-11-03 19:57:33 +03:00 committed by GitHub
parent 8b32ee9e80
commit 52a4c9202d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);