ot::SpeechVoiceModule Class Reference
#include <SpeechVoiceModule.h>
Collaboration diagram for ot::SpeechVoiceModule:

Public Member Functions | |
| SpeechVoiceModule () | |
| virtual | ~SpeechVoiceModule () |
| DWORD | GetNumVoices () |
| const char * | GetVoiceName (DWORD p_Id, std::string &p_Name) |
| void | SetVoice (DWORD p_Id) |
| void | SetVoice (const char *p_Name) |
| void | Speak (const char *p_Sentence, bool p_Async=true) |
Protected Member Functions | |
| void | Initialize () |
| void | Destroy () |
Protected Attributes | |
| SpeechVoiceBase * | m_Voice |
Detailed Description
Definition at line 66 of file SpeechVoiceModule.h.
Constructor & Destructor Documentation
| ot::SpeechVoiceModule::SpeechVoiceModule | ( | ) | [inline] |
destroys (cleanup) all class members
Definition at line 81 of file SpeechVoiceModule.h.
References Initialize().
| virtual ot::SpeechVoiceModule::~SpeechVoiceModule | ( | ) | [inline, virtual] |
Member Function Documentation
| void ot::SpeechVoiceModule::Destroy | ( | ) | [protected] |
initializes all class members
Definition at line 68 of file SpeechVoiceModule.cxx.
References m_Voice.
Referenced by ~SpeechVoiceModule().
| DWORD ot::SpeechVoiceModule::GetNumVoices | ( | ) |
get the total number of voices
Definition at line 80 of file SpeechVoiceModule.cxx.
References ot::SpeechVoiceBase::GetNumVoices(), and m_Voice.
| const char * ot::SpeechVoiceModule::GetVoiceName | ( | DWORD | p_Id, | |
| std::string & | p_Name | |||
| ) |
get the voice name with this id
Definition at line 87 of file SpeechVoiceModule.cxx.
References ot::SpeechVoiceBase::GetVoiceName(), and m_Voice.
| void ot::SpeechVoiceModule::Initialize | ( | ) | [protected] |
Definition at line 57 of file SpeechVoiceModule.cxx.
References m_Voice.
Referenced by SpeechVoiceModule().
| void ot::SpeechVoiceModule::SetVoice | ( | const char * | p_Name | ) |
set the current voice by name
Definition at line 101 of file SpeechVoiceModule.cxx.
References m_Voice, and ot::SpeechVoiceBase::SetVoice().
| void ot::SpeechVoiceModule::SetVoice | ( | DWORD | p_Id | ) |
set the current voice by id
Definition at line 94 of file SpeechVoiceModule.cxx.
References m_Voice, and ot::SpeechVoiceBase::SetVoice().
| void ot::SpeechVoiceModule::Speak | ( | const char * | p_Sentence, | |
| bool | p_Async = true | |||
| ) |
Speak something.
Definition at line 108 of file SpeechVoiceModule.cxx.
References m_Voice, and ot::SpeechVoiceBase::Speak().
Referenced by ot::SpeechModule::Speak().
Member Data Documentation
SpeechVoiceBase* ot::SpeechVoiceModule::m_Voice [protected] |
Definition at line 70 of file SpeechVoiceModule.h.
Referenced by Destroy(), GetNumVoices(), GetVoiceName(), Initialize(), SetVoice(), and Speak().
The documentation for this class was generated from the following files: