mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-11 02:43:50 +02:00
Cancel TTS
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user