From 297e514b783493d2e9bc0c554a364d638f995595 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 4 Jan 2021 07:51:03 +1300 Subject: [PATCH] Cancel TTS --- html/src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/src/app.js b/html/src/app.js index ccb6439b..7a209e1b 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -5723,6 +5723,7 @@ speechSynthesis.getVoices(); $app.data.TTSvoices = speechSynthesis.getVoices(); var saveNotificationTTS = function () { configRepository.setBool('VRCX_notificationTTS', this.notificationTTS); + speechSynthesis.cancel(); if (this.notificationTTS) { this.speak('Notification text-to-speech enabled'); } @@ -5866,6 +5867,7 @@ speechSynthesis.getVoices(); configRepository.setString('VRCX_notificationTTSVoice', this.notificationTTSVoice); var voices = speechSynthesis.getVoices(); var voiceName = voices[index].name; + speechSynthesis.cancel(); this.speak(voiceName); };