MDN self-hosted library · e01.org

SpeechRecognition: soundend event

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
const recognition = new (
  window.SpeechRecognition || window.webkitSpeechRecognition
)();

recognition.addEventListener("soundend", (event) => {
  console.log("Sound has stopped being received");
});
js
recognition.onsoundend = (event) => {
  console.log("Sound has stopped being received");
};