-
Notifications
You must be signed in to change notification settings - Fork 1
/
SpeakMgr.h
48 lines (38 loc) · 923 Bytes
/
SpeakMgr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef SPEAKMGR_H
#define SPEAKMGR_H
#include <QObject>
#include "SpeakGoogle.h"
#include "Thread/thread.h"
#include "QtSpeech.h"
#include "ConfigFile.h"
//////////////////////////////////////////
//
class SpeakMgr : public QObject
{
Q_OBJECT
public:
explicit SpeakMgr(ConfigFile *config, QObject *parent = 0);
~SpeakMgr();
public:
void Speak(const QString &text,
const int &speakInterval,
const int &SpeakRepetitions);
void Stop();
private slots:
void changeSpeakEngineToESpeak();
signals:
void SpeakFininshed();
public slots:
void EmitSpeakFininshSignal();
private:
SoundTread *sound;//eSpeakTTS
SpeakGoogle *speakGoogleTTS;//GoogleTTS
QtSpeech *QtSpeakTTS;//QtSpeakTTS
QString speakMethod;//·¢Òô·½·¨
QString speakRate;
QString otherTTS;
QString textSpeak;
int Interval;
int Repetitions;
};
#endif // SPEAKMGR_H