diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 922a16e4f..92b3f9280 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -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); }