mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Remove embedded images before send text to TTS
This commit is contained in:
		@@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user