const recognition = new (
window.SpeechRecognition || window.webkitSpeechRecognition
)();
recognition.addEventListener("audiostart", () => {
console.log("Audio capturing started");
});SpeechRecognition: audiostart event / notebook
SpeechRecognition: audiostart event
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
recognition.onaudiostart = () => {
console.log("Audio capturing started");
};