Skip to content

Instantly share code, notes, and snippets.

Avatar

Niall Moody NiallMoody

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

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.