mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-30 12:13:48 +02:00
Cancel TTS
This commit is contained in:
@@ -5723,6 +5723,7 @@ speechSynthesis.getVoices();
|
|||||||
$app.data.TTSvoices = speechSynthesis.getVoices();
|
$app.data.TTSvoices = speechSynthesis.getVoices();
|
||||||
var saveNotificationTTS = function () {
|
var saveNotificationTTS = function () {
|
||||||
configRepository.setBool('VRCX_notificationTTS', this.notificationTTS);
|
configRepository.setBool('VRCX_notificationTTS', this.notificationTTS);
|
||||||
|
speechSynthesis.cancel();
|
||||||
if (this.notificationTTS) {
|
if (this.notificationTTS) {
|
||||||
this.speak('Notification text-to-speech enabled');
|
this.speak('Notification text-to-speech enabled');
|
||||||
}
|
}
|
||||||
@@ -5866,6 +5867,7 @@ speechSynthesis.getVoices();
|
|||||||
configRepository.setString('VRCX_notificationTTSVoice', this.notificationTTSVoice);
|
configRepository.setString('VRCX_notificationTTSVoice', this.notificationTTSVoice);
|
||||||
var voices = speechSynthesis.getVoices();
|
var voices = speechSynthesis.getVoices();
|
||||||
var voiceName = voices[index].name;
|
var voiceName = voices[index].name;
|
||||||
|
speechSynthesis.cancel();
|
||||||
this.speak(voiceName);
|
this.speak(voiceName);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user