Skip to content

Instantly share code, notes, and snippets.

View NiallMoody's full-sized avatar

Niall Moody NiallMoody

View GitHub Profile
@NiallMoody
NiallMoody / text2speech-in-bipsi.md
Last active August 21, 2021 10:10
Code snippet for using javascript text-to-speech in bipsi

To use javascript text to speech in bipsi, add the following code to a javascript event field called touch, before any of the await... lines:

let voice = new SpeechSynthesisUtterance();
voice.pitch = 1;
voice.rate = 1;
voice.text = "TEXT HERE";
window.speechSynthesis.speak(voice);

Replace TEXT HERE with your own text.