1 // Copyright 2005-2019 The Mumble Developers. All rights reserved.
2 // Use of this source code is governed by a BSD-style license
3 // that can be found in the LICENSE file at the root of the
4 // Mumble source tree or at <https://www.mumble.info/LICENSE>.
5 
6 #ifndef MUMBLE_MUMBLE_TEXTTOSPEECH_H_
7 #define MUMBLE_MUMBLE_TEXTTOSPEECH_H_
8 
9 #include <QtCore/QObject>
10 
11 class TextToSpeechPrivate;
12 
13 class TextToSpeech : public QObject {
14 		friend class TextToSpeechPrivate;
15 	private:
16 		Q_OBJECT
17 		Q_DISABLE_COPY(TextToSpeech)
18 		Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
19 	protected:
20 		bool enabled;
21 	public:
22 		TextToSpeech(QObject *parent = NULL);
23 		~TextToSpeech() Q_DECL_OVERRIDE;
24 		bool isEnabled() const;
25 	public slots:
26 		void say(const QString &text);
27 		void setEnabled(bool ena);
28 		void setVolume(int volume);
29 	private:
30 		TextToSpeechPrivate *d;
31 };
32 
33 #endif
34