Can you predict how many seconds speechSynthesis.speak() will talk?

44 Views Asked by At
let msg = new SpeechSynthesisUtterance();
msg.lang = "en-GB" ;
msg.rate = 1.1 ;
msg.pitch = 1.1 ;
msg.text = txt ;
window.speechSynthesis.speak(msg);

Is there any way to predict how many seconds it will take to pronounce the text ?

1

There are 1 best solutions below