BibleTime
src
frontend
texttospeech.h
Go to the documentation of this file.
1
/*********
2
*
3
* In the name of the Father, and of the Son, and of the Holy Spirit.
4
*
5
* This file is part of BibleTime's source code, https://bibletime.info/
6
*
7
* Copyright 1999-2026 by the BibleTime developers.
8
* The BibleTime source code is licensed under the GNU General Public License
9
* version 2.0.
10
*
11
**********/
12
13
#pragma once
14
15
#ifdef BUILD_TEXT_TO_SPEECH
16
17
#include <memory>
18
#include <QString>
19
#include <QTextToSpeech>
20
21
22
namespace
BtTextToSpeech {
23
24
/**
25
\brief Speaks the given text.
26
\param[in] text The text to speak.
27
*/
28
void
speakText(QString
const
& text);
29
30
/**
31
\brief Creates a QTextToSpeech instance based on settings.
32
\returns The QTextToSpeech instance.
33
*/
34
std::unique_ptr<QTextToSpeech> newInstance();
35
36
/**
37
\brief Resets the active text-to-speech instance.
38
\note This is needed in case the settings change.
39
*/
40
void
reset();
41
42
}
// namespace BtTextToSpeech
43
44
#endif
Generated by
1.9.8