Table of Contents

TTMSFNCWXSpeechSynthesis Class

Ready-to-use text-to-speech component that publishes voice, pitch, rate, and volume settings together with playback events for use at design time.

API unit family: TMSFNCWXSpeechSynthesis Inherits from: TTMSFNCWXCustomSpeechSynthesis

Syntax

TTMSFNCWXSpeechSynthesis = class(TTMSFNCWXCustomSpeechSynthesis)

Remarks

Drop this component on a form, configure the desired voice, then call TTMSFNCWXCustomSpeechSynthesis.Speak to read text aloud.

Properties

Name Description
IsSpeaking Indicates whether speech output is currently active. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Pitch Pitch of the spoken voice. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Rate Speaking rate of the spoken voice. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Voice Name of the voice used for speech output. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Voices List of voice names made available by the host platform. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Volume Loudness of the spoken voice. (inherited from TTMSFNCWXCustomSpeechSynthesis)

Methods

Name Description
Cancel Stops the current speech output and discards any pending text. (inherited from TTMSFNCWXCustomSpeechSynthesis)
ConfigureVoices Opens the voice selection editor so a voice can be chosen interactively.
Pause Suspends the current speech output so it can be continued later. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Resume Continues speech output that was previously suspended with Pause. (inherited from TTMSFNCWXCustomSpeechSynthesis)
Speak Speaks the supplied text using the current voice, pitch, rate, and volume settings. (inherited from TTMSFNCWXCustomSpeechSynthesis)

Events

Name Description
OnEnd Occurs when speech output finishes or is cancelled. (inherited from TTMSFNCWXCustomSpeechSynthesis)
OnPause Occurs when speech output is suspended. (inherited from TTMSFNCWXCustomSpeechSynthesis)
OnResume Occurs when suspended speech output is continued. (inherited from TTMSFNCWXCustomSpeechSynthesis)
OnStart Occurs when speech output begins. (inherited from TTMSFNCWXCustomSpeechSynthesis)
OnVoiceReady Occurs when the list of available voices has been loaded and contains at least one entry. (inherited from TTMSFNCWXCustomSpeechSynthesis)