#include <Speech.h>
Public Types | |
| enum | Mode { DICTATE, COMMAND, ON, OFF } |
Public Methods | |
| Speech () | |
| Constructs using element. More... | |
| ~Speech () | |
| Destructor. More... | |
| virtual std::string | getWord () |
| virtual int | getId () |
| virtual void | setMode (Mode mode) |
| virtual std::list< asdfjlk > & | getList () |
| virtual void | config () |
| virtual bool | startSampling ()=0 |
| virtual bool | stopSampling ()=0 |
| virtual bool | sample ()=0 |
| virtual void | updateData ()=0 |
Protected Methods | |
| void | startThread () |
Static Protected Methods | |
| void | controlLoop (Speech ¤tInstance) |
Protected Attributes | |
| std::list< asdfjlk > | _wordQueue |
| Mode | _currentMode |
| std::string | _filename |
| std::string | _dragonIP |
| int | _dragonPort |
| std::string | _user |
|
|
Definition at line 56 of file Speech.h.
|
|
|
Constructs using element.
|
|
|
Destructor.
|
|
|
Definition at line 90 of file Speech.h. References _wordQueue.
00091 {
00092 std::string word = "";
00093
00094 if (_wordQueue.size > 0)
00095 {
00096 word = (*_wordQueue.begin()).word;
00097 _wordQueue.pop_front();
00098 }
00099
00100 return word;
00101 }
|
|
|
Definition at line 103 of file Speech.h. References _wordQueue.
00104 {
00105 int id = -1;
00106
00107 if (_wordQueue.size > 0)
00108 {
00109 id = (*_wordQueue.begin()).id;
00110 _wordQueue.pop_front();
00111 }
00112
00113 return id;
00114 }
|
|
|
Definition at line 116 of file Speech.h.
00117 {
00118 _mode = mode;
00119 // TODO: tell dragon about the mode change.
00120 }
|
|
|
Definition at line 122 of file Speech.h. References _wordQueue.
00123 {
00124 return _wordQueue;
00125 }
|
|
|
Definition at line 128 of file Speech.h. References _dragonIP, _dragonPort, _filename, and _user.
00129 {
00130 _filename = "somefile.vjs";
00131 _dragonIP = "129.186.232.70";
00132 _dragonPort = 5600;
00133 _user = "kevin";
00134 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 79 of file Speech.h. Referenced by config. |
|
|
Definition at line 80 of file Speech.h. Referenced by config. |
|
|
Definition at line 81 of file Speech.h. Referenced by config. |
|
|
Definition at line 82 of file Speech.h. Referenced by config. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002