Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The SpeechRecognitionError interface of the Web Speech API represents error messages from the recognition service.
This SpeechRecognitionError interface was renamed to SpeechRecognitionErrorEvent in the Web Speech API specification.
Properties
SpeechRecognitionError also inherits properties from its parent interface, Event.
SpeechRecognitionError.errorRead only- Returns the type of error raised.
SpeechRecognitionError.messageRead only- Returns a message describing the error in more detail.
Examples
var recognition = new SpeechRecognition();
recognition.onerror = function(event) {
console.log('Speech recognition error detected: ' + event.error);
console.log('Additional information: ' + event.message);
}
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.SpeechRecognitionError" (depth: 1) to the MDN compatibility data repository.
