Classes | |
struct | WavFileInfo |
Public Member Functions | |
SpeechSynth (OptionManager &mgr, const std::string &descrName="SpeechSynth", const std::string &tagName="SpeechSynth") | |
bool | sayText (const std::string &text, int priority, bool block=false) |
bool | sendCommand (const std::string &text, int priority, bool block=false, time_t *timestamp=NULL) |
void | flushQueue () |
bool | playWavFile (const std::string &fname, int priority, bool block=false, int mindelay=20) |
Play a wav file; the wav file must exist on the same machine as the running festival-server, which is not necessarily the same as localhost. | |
void | start2 () |
This is called from within start() after the subcomponents have started. |
Definition at line 64 of file SpeechSynth.H.
bool SpeechSynth::playWavFile | ( | const std::string & | fname, | |
int | priority, | |||
bool | block = false , |
|||
int | mindelay = 20 | |||
) |
Play a wav file; the wav file must exist on the same machine as the running festival-server, which is not necessarily the same as localhost.
The wave file will be first loaded into the festival-server if it has not yet been loaded.
Definition at line 274 of file SpeechSynth.C.
References sformat().
void SpeechSynth::start2 | ( | ) | [virtual] |
This is called from within start() after the subcomponents have started.
Reimplemented from ModelComponent.
Definition at line 154 of file SpeechSynth.C.