refac: audio

This commit is contained in:
Timothy J. Baek committed 2024-06-07 20:51:53 -07:00
1 parent 16615010f7
commit 27417dd771
4 files changed
+23 -16

No files matched your search

@@ -221,11 +221,12 @@
)
?.at(0) ?? undefined;
console.log($settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice);
console.log(voices);
currentUtterance = new SpeechSynthesisUtterance(content);
currentUtterance.voice = voice;
if (voice) {
currentUtterance.voice = voice;
}
speechSynthesis.speak(currentUtterance);
}
}, 100);