Class SpeechSynthesisErrorEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The SpeechSynthesisErrorEvent interface of the Web Speech API contains information about any errors that occur while processing SpeechSynthesisUtterance objects in the speech service.
[Value("SpeechSynthesisErrorEvent")]
public class SpeechSynthesisErrorEvent : SpeechSynthesisEvent
- Inheritance
-
SpeechSynthesisErrorEvent
- Inherited Members
Remarks
Constructors
SpeechSynthesisErrorEvent()
public SpeechSynthesisErrorEvent()
SpeechSynthesisErrorEvent(string, SpeechSynthesisErrorEventInit)
The SpeechSynthesisErrorEvent() constructor creates a new SpeechSynthesisErrorEvent object.
public SpeechSynthesisErrorEvent(string type, SpeechSynthesisErrorEventInit eventInitDict)
Parameters
typestringeventInitDictSpeechSynthesisErrorEventInit
Remarks
NOTE
A web developer doesn't typically need to call this constructor, as the browser creates these objects itself when firing events.
Properties
Error
The error property of the
SpeechSynthesisErrorEvent interface returns an error code indicating what has gone wrong with a speech synthesis attempt.
[Value("error")]
public SpeechSynthesisErrorCode Error { get; }
Property Value
- SpeechSynthesisErrorCode
A string containing the error reason. Possible values are: