js voice input code example
Example 1: javascript voice reader
var msg = new SpeechSynthesisUtterance();
msg.text = "Hello World";
window.speechSynthesis.speak(msg);
Example 2: speech to text in js
$('#pause-record-btn').on('click', function(e) {
recognition.stop();
});