diff --git a/src/ts/process/tts.ts b/src/ts/process/tts.ts new file mode 100644 index 00000000..2b4ac802 --- /dev/null +++ b/src/ts/process/tts.ts @@ -0,0 +1,6 @@ +export async function sayTTS(text:string) { + const utterThis = new SpeechSynthesisUtterance(text); + const voices = speechSynthesis.getVoices(); + utterThis.voice = voices[0] + speechSynthesis.speak(utterThis) +} \ No newline at end of file