SpeechRecognitionErrorEvent
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Die SpeechRecognitionErrorEvent
-Schnittstelle der Web Speech API repräsentiert Fehlermeldungen vom Erkennungsdienst.
Instanz-Eigenschaften
SpeechRecognitionErrorEvent
erbt auch Eigenschaften von seiner Elternschnittstelle, Event
.
SpeechRecognitionErrorEvent.error
Schreibgeschützt-
Gibt den Typ des aufgetretenen Fehlers zurück.
SpeechRecognitionErrorEvent.message
Schreibgeschützt-
Gibt eine Nachricht zurück, die den Fehler genauer beschreibt.
Beispiele
js
const recognition = new SpeechRecognition();
recognition.onerror = (event) => {
console.log(`Speech recognition error detected: ${event.error}`);
console.log(`Additional information: ${event.message}`);
};
Spezifikationen
Specification |
---|
Web Speech API # speechrecognitionerrorevent |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- Uses a non-standard name.
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.