SpeechRecognition.onerror
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The onerror
property of the
SpeechRecognition
interface represents an event handler that will run
when a speech recognition error occurs (when the error event fires.)
Syntax
mySpeechRecognition.onerror = function() { ... };
Examples
var recognition = new SpeechRecognition();
recognition.onerror = function(event) {
console.log('Speech recognition error detected: ' + event.error);
}
Specifications
Specification | Status | Comment |
---|---|---|
Web Speech API The definition of 'onerror' in that specification. |
Draft |
Browser compatibility
BCD tables only load in the browser