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…
Reference in New Issue