#include <SpeechModule.h>
Inheritance diagram for ot::SpeechModule:


Public Member Functions | |
| SpeechModule () | |
| virtual | ~SpeechModule () |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| virtual void | close () |
| virtual void | pushEvent () |
| void | Speak (const char *p_Sentence, bool p_Async=true) |
| bool | GetCommand (DWORD p_CommandId, DWORD p_SpeechSetId, std::string &p_Command) |
Protected Attributes | |
| NodeVector | m_Nodes |
| list of SpeechSource nodes in the tree | |
| DWORD | m_NextNodeId |
| next node id/rule name | |
| SpeechCoreBase * | m_SpeechCore |
| Speech Core (SR) component. | |
| SpeechVoiceModule * | m_Voice |
| Speech Voice (TTS) component. | |
| ConfigNode * | m_ConfigTree |
| Configuration Tree for following SpeechSources. | |
| NodeVector | m_Push2Nodes |
| vector of all nodes that should push a speech event a second time | |
|
|
constructor method. |
|
|
Destructor method, clears nodes member. |
|
|
closes the module. A place for cleanup code etc. This class provides an empty implementation for subclasses not doing anything here. Reimplemented from ot::Module. |
|
||||||||||||
|
This method is called to construct a new Node. It compares name to the SpeechSource element name, and if it matches creates a new SpeechSource node.
Implements ot::NodeFactory. Reimplemented in ot::SpeechControlModule. |
|
||||||||||||||||
|
Get a command string from a command id
|
|
||||||||||||
|
initializes the tracker module. This class provides an implementation that sets the initialization flag to true. Subclasses should call this method if they override this method. It takes the attributes of the element configuring this module and a local tree consisting of the children of the element. This tree must be build of Nodes.
Reimplemented from ot::Module. Reimplemented in ot::SpeechControlModule. |
|
|
pushes event information into the tracker tree. It enables the module to push new data into the tree by updating EventGenerator nodes and thereby triggering an event. Reimplemented from ot::Module. Reimplemented in ot::SpeechControlModule. |
|
||||||||||||
|
Speak a sentence with the default voice |
|
|
Configuration Tree for following SpeechSources.
|
|
|
next node id/rule name
|
|
|
list of SpeechSource nodes in the tree
|
|
|
vector of all nodes that should push a speech event a second time
|
|
|
Speech Core (SR) component.
|
|
|
Speech Voice (TTS) component.
|
1.4.6