Add cyrillic special quotes to tts option

This commit is contained in:
Cohee 2024-02-09 18:33:01 +02:00
parent d8d4732614
commit 867c42cb6d
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ async function processTtsQueue() {
}
if (extension_settings.tts.narrate_quoted_only) {
const special_quotes = /[“”]/g; // Extend this regex to include other special quotes
const special_quotes = /[“”«»]/g; // Extend this regex to include other special quotes
text = text.replace(special_quotes, '"');
const matches = text.match(/".*?"/g); // Matches text inside double quotes, non-greedily
const partJoiner = (ttsProvider?.separator || ' ... ');