SpeechSynthesis
Wisej.Web.Ext.Speech.SpeechSynthesis
Last updated
Wisej.Web.Ext.Speech.SpeechSynthesis
Last updated
Namespace: Wisej.Web.Ext.Speech
Assembly: Wisej.Web.Ext.Speech (3.2.0.0)
The SpeechSynthesis interface of the Web Speech API is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
Initializes a new instance of the Speech class.
Boolean: Enables or disables the this SpeechSynthesis extender. (Default: True
)
String: Returns or sets the language of the utterance. (Default: ""
)
Single: Returns and sets the pitch at which the utterance will be spoken at. (Default: 1
)
Single: Returns and sets the speed at which the utterance will be spoken at. (Default: 1
)
String: Returns or sets the voice that will be used to speak the utterance. (Default: "native"
)
Single: Returns or sets the volume that the utterance will be spoken at. The default is 1 (maximum). (Default: 1
)
Removes all utterances from the utterance queue. If an utterance is currently being spoken, speaking will stop immediately.
Returns true if SpeechSynthesis can offer an extender property to the specified target component.
Parameter | Type | Description |
---|---|---|
target | The target object to add an extender property to. |
Returns: Boolean. true if the SpeechSynthesis class can offer one or more extender properties; otherwise, false.
SpeechSynthesis properties.
Parameter | Type | Description |
---|---|---|
control |
Returns: Properties. A Properties instance with the SpeechSynthesis properties.
Returns: Task<String[]>.
Puts the SpeechSynthesis object into a paused state.
Removes all speech extenders.
Resumes speaking if the SpeechSynthesis object was already paused.
Parameter | Type | Description |
---|---|---|
control | ||
speechSynthesis |
Adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.
Parameter | Type | Description |
---|---|---|
text |
The for which to retrieve the speech properties.