Revoke 1-time object URLs

This commit is contained in:
Cohee
2024-05-22 01:36:38 +03:00
parent 255cd1310d
commit 0371bf4e9f
6 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class SpeechT5TtsProvider {
const url = URL.createObjectURL(audio);
this.audioElement.src = url;
this.audioElement.play();
URL.revokeObjectURL(url);
}
async loadSettings(settings) {