-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSpeakReal.h
46 lines (38 loc) · 979 Bytes
/
SpeakReal.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
#ifndef SPEAKREAL_H
#define SPEAKREAL_H
#include <QObject>
#include "phonon"
#include "QFile"
class SpeakReal : public QObject
{
Q_OBJECT
public:
explicit SpeakReal(QObject *parent = 0,const QString &bookname = "");
~SpeakReal();
signals:
void soundEnded();
void speakError();
void UncontionsFile();
public slots:
void stateChanged(Phonon::State newState,Phonon::State oldstate);
void realSpeak();
void setSoundTime(const int &soundtime);
void setInterval(const int &interval);
void realPersonSpeak(const QString &text);
void realSpeakRestart();
void realSpeakPlay();
void realSpeakStop();
Phonon::MediaObject *getMediaObject();
private:
Phonon::MediaObject *mediaObject;
Phonon::AudioOutput *audioOutput;
Phonon::State curState;
QString wordText;
QString bookName;
QString currUser;
QString soundPath;
int soundTime;
int Interval;
int time;
};
#endif // SPEAKREAL_H