SpeechRecognition: soundstart event

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The soundstart event of the Web Speech API is fired when any sound — recognizable speech or not — has been detected.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

js
addEventListener("soundstart", (event) => { })

onsoundstart = (event) => { }

Event type

A generic Event with no added properties.

Examples

You can use the soundstart event in an addEventListener method:

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

recognition.addEventListener("soundstart", () => {
  console.log("Some sound is being received");
});

Or use the onsoundstart event handler property:

js
recognition.onsoundstart = () => {
  console.log("Some sound is being received");
};

Specifications

Specification
Web Speech API
# eventdef-speechrecognition-soundstart
Web Speech API
# dom-speechrecognition-onsoundstart

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
soundstart event
Chrome – Full support
Chrome 33 (Release date: 2014-02-20)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox 143 (Release date: 2025-09-16)
disabled
disabled From version 143 users must explicitly set the media.webspeech.recognition.enable preference to true. To change preferences in Firefox, visit about:config.
Opera – Full support
Opera 20 (Release date: 2014-03-04)
footnote Full support
Safari – Full support
Safari 14.1 (Release date: 2021-04-26)
footnote Full support
Chrome Android – Full support
Chrome Android 33 (Release date: 2014-02-26)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote No support
Opera Android – Full support
Opera Android 20 (Release date: 2014-03-06)
footnote Full support
Safari on iOS – Full support
Safari on iOS 14.5 (Release date: 2021-04-26)
footnote Full support
Samsung Internet – Full support
Samsung Internet 2 (Release date: 2014-10-17)
footnote Full support
WebView Android – Full support
WebView Android 4.4.3 (Release date: 2014-06-02)
footnote Full support
WebView on iOS – Full support
WebView on iOS 14.5 (Release date: 2021-04-26)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
User must explicitly enable this feature.

See also