mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Revoke 1-time object URLs
This commit is contained in:
		@@ -155,6 +155,7 @@ class EdgeTtsProvider {
 | 
			
		||||
        const url = URL.createObjectURL(audio);
 | 
			
		||||
        this.audioElement.src = url;
 | 
			
		||||
        this.audioElement.play();
 | 
			
		||||
        URL.revokeObjectURL(url);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -180,6 +180,7 @@ class NovelTtsProvider {
 | 
			
		||||
        const url = URL.createObjectURL(audio);
 | 
			
		||||
        this.audioElement.src = url;
 | 
			
		||||
        this.audioElement.play();
 | 
			
		||||
        URL.revokeObjectURL(url);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async* fetchTtsGeneration(inputText, voiceId) {
 | 
			
		||||
 
 | 
			
		||||
@@ -60,6 +60,7 @@ class SpeechT5TtsProvider {
 | 
			
		||||
        const url = URL.createObjectURL(audio);
 | 
			
		||||
        this.audioElement.src = url;
 | 
			
		||||
        this.audioElement.play();
 | 
			
		||||
        URL.revokeObjectURL(url);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    async loadSettings(settings) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user