Jump to content

Programming Reference:TextToSpeech Class: Difference between revisions

From BCI2000 Wiki
Mellinger (talk | contribs)
No edit summary
 
Mellinger (talk | contribs)
Line 7: Line 7:
===string Text (rw)===
===string Text (rw)===
The text to be spoken. This text is provided to the underlying text-to-speech engine unchanged, and may contain control characters as defined by that engine.
The text to be spoken. This text is provided to the underlying text-to-speech engine unchanged, and may contain control characters as defined by that engine.
(For speech markup defined by the Microsoft TTS Engine, see [http://msdn.microsoft.com/en-us/library/ms723638(VS.85).aspx].)
 
For speech markup defined by the Microsoft TTS Engine, see http://msdn.microsoft.com/en-us/library/ms723638(VS.85).aspx.
 
===float Volume (rw)===
===float Volume (rw)===
Playback volume in the range 0.0 to 1.0.
Playback volume in the range 0.0 to 1.0.

Revision as of 10:34, 16 June 2008

Synopsis

The TextToSpeech class is a wrapper for synthetic speech audio output. TextToSpeech objects may be stored in STL containers.

Properties

For each property, there is a getter method carrying the plain property name. Writable properties have an additional setter method prefixed with "Set".

string Text (rw)

The text to be spoken. This text is provided to the underlying text-to-speech engine unchanged, and may contain control characters as defined by that engine.

For speech markup defined by the Microsoft TTS Engine, see http://msdn.microsoft.com/en-us/library/ms723638(VS.85).aspx.

float Volume (rw)

Playback volume in the range 0.0 to 1.0.

Methods

Default Constructor, Destructor

These provide the full set of methods required to use TextToSpeech as a data type in STL containers, such as std::vector<TextToSpeech>.

Speak()

Starts speaking.

Stop()

Stops speaking, and resets the speaking position to the beginning. This method does nothing when no speaking is performed.

See also

Programming Reference:WavePlayer Class, Programming Reference:MidiPlayer Class