forked from KDE/okular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtts.h
38 lines (30 loc) · 1.12 KB
/
tts.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
/***************************************************************************
* Copyright (C) 2008 by Pino Toscano <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#ifndef _TTS_H_
#define _TTS_H_
#include <qobject.h>
#include <QTextToSpeech>
class OkularTTS : public QObject
{
Q_OBJECT
public:
explicit OkularTTS( QObject *parent = nullptr );
~OkularTTS();
void say( const QString &text );
void stopAllSpeechs();
public slots:
void slotSpeechStateChanged(QTextToSpeech::State state);
signals:
void isSpeaking( bool speaking );
private:
// private storage
class Private;
Private *d;
};
#endif