|
direcs
2012-09-30
|
Speaks a text with espeak (Linux only). More...
#include <speakThread.h>
Public Slots | |
| void | speak (QString text, int phase=0) |
Signals | |
| void | speechCompleted (int mPhase) |
Public Member Functions | |
| virtual void | run () |
| void | setLanguage (QString language) |
| void | setRate (int value) |
| void | setVoice (unsigned char gender, unsigned char age) |
| SpeakThread () | |
| void | stop () |
| ~SpeakThread () | |
Private Member Functions | |
| QString | removeHTML (QString string) |
Private Attributes | |
| int | mPhase |
| bool | saySomething |
| volatile bool | stopped |
| QString | textToSpeak |
| this is for the thread, which waits for something to say. | |
Static Private Attributes | |
| static const unsigned long | THREADSLEEPTIME = 200 |
Speaks a text with espeak (Linux only).
Definition at line 41 of file speakThread.h.
| SpeakThread::SpeakThread | ( | ) |
| SpeakThread::~SpeakThread | ( | ) |
|
private |
|
virtual |
| void SpeakThread::setLanguage | ( | QString | language | ) |
Definition at line 125 of file speakThread.cpp.


| void SpeakThread::setRate | ( | int | value | ) |
Definition at line 135 of file speakThread.cpp.


| void SpeakThread::setVoice | ( | unsigned char | gender, |
| unsigned char | age | ||
| ) |
|
slot |
Speaks a text with espeak. All HTML-Code in the parameter (text) is also removed internally).
| text | is the text to speak. |
| phase | is an optional value. This could be a special phase which could be returned when the speech ends or so. |
Definition at line 100 of file speakThread.cpp.

|
signal |
This is to let other methods or classes know that we completed the speech.
| mPhase | could be a phase we where other program continue with their actions. |

| void SpeakThread::stop | ( | ) |
Definition at line 52 of file speakThread.cpp.


|
private |
Definition at line 78 of file speakThread.h.
|
private |
Definition at line 76 of file speakThread.h.
|
private |
Definition at line 75 of file speakThread.h.
|
private |
this is for the thread, which waits for something to say.
Definition at line 77 of file speakThread.h.
|
staticprivate |
Definition at line 82 of file speakThread.h.