SpeechRecognition: audioend event

Limited availability

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

The audioend event of the Web Speech API is fired when the user agent has finished capturing audio for speech recognition.

Syntax

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

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

onaudioend = (event) => { }

Event type

A generic Event with no added properties.

Examples

You can use the audioend event in an addEventListener method:

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

recognition.addEventListener("audioend", () => {
  console.log("Audio capturing ended");
});

Or use the onaudioend event handler property:

js
recognition.onaudioend = () => {
  console.log("Audio capturing ended");
};

Specifications

Specification
Web Speech API
# eventdef-speechrecognition-audioend
Web Speech API
# dom-speechrecognition-onaudioend

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
audioend 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