Welcome to mirror list, hosted at ThFree Co, Russian Federation.

TextToSpeech.h « mumble « src - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4e799f2989380a68bb2139732cb3553037bdf374 (plain)
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
// Copyright 2007-2021 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.

#ifndef MUMBLE_MUMBLE_TEXTTOSPEECH_H_
#define MUMBLE_MUMBLE_TEXTTOSPEECH_H_

#include <QtCore/QObject>

class TextToSpeechPrivate;

class TextToSpeech : public QObject {
	friend class TextToSpeechPrivate;

private:
	Q_OBJECT
	Q_DISABLE_COPY(TextToSpeech)
	Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled)
protected:
	bool enabled;

public:
	TextToSpeech(QObject *parent = nullptr);
	~TextToSpeech() Q_DECL_OVERRIDE;
	bool isEnabled() const;
public slots:
	void say(const QString &text);
	void setEnabled(bool ena);
	void setVolume(int volume);

private:
	TextToSpeechPrivate *d;
};

#endif