SpeechSynthesis

Wisej.Web.Ext.Speech.SpeechSynthesis

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.

public class SpeechSynthesis : Component, IExtenderProvider

Constructors

Initializes a new instance of the Speech class.

Properties

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)

Methods

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.

ParameterTypeDescription

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.

ParameterTypeDescription

control

The Control for which to retrieve the speech properties.

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.

ParameterTypeDescription

control

speechSynthesis

Adds an utterance to the utterance queue; it will be spoken when any other utterances queued before it have been spoken.

ParameterTypeDescription

text

Last updated