Limited availability
The SpeechRecognitionErrorEvent
interface of the Web Speech API represents error messages from the recognition service.
SpeechRecognitionErrorEvent
also inherits properties from its parent interface, Event
.
SpeechRecognitionErrorEvent.error
Read only
Returns the type of error raised.
SpeechRecognitionErrorEvent.message
Read only
Returns a message describing the error in more detail.
const recognition = new SpeechRecognition();
recognition.onerror = (event) => {
console.log(`Speech recognition error detected: ${event.error}`);
console.log(`Additional information: ${event.message}`);
};
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3