const recognition = new (
window.SpeechRecognition || window.webkitSpeechRecognition
)();
recognition.addEventListener("speechend", () => {
console.log("Speech has stopped being detected");
});SpeechRecognition: speechend event / notebook
SpeechRecognition: speechend event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
recognition.onspeechend = () => {
console.log("Speech has stopped being detected");
};