SpeechRecognition.onend

The onend property of the SpeechRecognition interface represents an event handler that will run when the speech recognition service has disconnected (when the end event fires.)

Syntax

mySpeechRecognition.onend = function() { /* ... */ };

Examples

var recognition = new SpeechRecognition();

recognition.onend = function() {
  console.log('Speech recognition service disconnected');
}

Specifications

Specification
Web Speech API
# dom-speechrecognition-onend

Browser compatibility

BCD tables only load in the browser

See also