mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
Bug fixes
This commit is contained in:
@@ -8089,6 +8089,12 @@ speechSynthesis.getVoices();
|
||||
this.notificationTTSVoice = index;
|
||||
configRepository.setString('VRCX_notificationTTSVoice', this.notificationTTSVoice);
|
||||
var voices = speechSynthesis.getVoices();
|
||||
if (voices.length === 0) {
|
||||
return;
|
||||
}
|
||||
if (index > voices.length) {
|
||||
index = 0;
|
||||
}
|
||||
var voiceName = voices[index].name;
|
||||
speechSynthesis.cancel();
|
||||
this.speak(voiceName);
|
||||
|
||||
Reference in New Issue
Block a user