change window speech to text js code example
Example 1: speech to text in js
$('#start-record-btn').on('click', function(e) {
recognition.start();
});
Example 2: speech to text in js
var mobileRepeatBug = (current == 1 && transcript == event.results[0][0].transcript);
if(!mobileRepeatBug) {
noteContent += transcript;
noteTextarea.val(noteContent);
}