SpeechSynthesis Pause button needed

33 Views Asked by At

Hi im trying to create a pause button for this. Here's what i have

function onClickPlay() {
var msg = new SpeechSynthesisUtterance();
msg.text = "Once upon a time it was the middle of winter the flakes of snow were falling like feathers from the sky";
window.speechSynthesis.speak(msg);
}

i need a onClickPause()

I havn't tried anything because im not to good with javascript

0

There are 0 best solutions below