Programming Reference:SpeechStimulus Class
Appearance
(Redirected from Programming Reference:SpeechStimulus)
Location
src/shared/modules/application/audio
Synopsis
The SpeechStimulus class combines the Stimulus Class interface with the TextToSpeech Class, resulting in a stimulus that uses a system-wide text-to-speech engine to render a given text. When a SpeechStimulus object is deallocated while a text is spoken, speech is not aborted. Rather, it continues to the end of the text.
Properties
string Text (rw)
Text to be rendered by the system-wide text-to-speech engine.
float Volume (rw)
A number between 0 and 1, representing the volume of TTS output.
Methods
Present()
Renders the text contained in the Text property using the system-wide text-to-speech engine.
Conceal()
Does nothing.
See also
Programming Reference:Stimulus Class, Programming Reference:AudioStimulus Class, Programming Reference:TextToSpeech Class.