SpeechRecognition: soundstart event


This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Bubbles No
Cancelable No
Interface Event
Event handler property onsoundstart


You can use the soundstart event in an addEventListener method:

var recognition = new webkitSpeechRecognition() || new SpeechRecognition();

recognition.addEventListener('soundstart', function() {
  console.log('Some sound is being received');

Or use the onsoundstart event handler property:

recognition.onsoundstart = function() {
  console.log('Some sound is being received');


Web Speech API
# eventdef-speechrecognition-soundstart

Browser compatibility

BCD tables only load in the browser

See also