diff options
Diffstat (limited to 'utils/rbutilqt/base/ttsespeakng.h')
-rw-r--r-- | utils/rbutilqt/base/ttsespeakng.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/utils/rbutilqt/base/ttsespeakng.h b/utils/rbutilqt/base/ttsespeakng.h new file mode 100644 index 0000000000..55aba62e7d --- /dev/null +++ b/utils/rbutilqt/base/ttsespeakng.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2020 by Solomon Peachy | ||
10 | * | ||
11 | * This program is free software; you can redistribute it and/or | ||
12 | * modify it under the terms of the GNU General Public License | ||
13 | * as published by the Free Software Foundation; either version 2 | ||
14 | * of the License, or (at your option) any later version. | ||
15 | * | ||
16 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
17 | * KIND, either express or implied. | ||
18 | * | ||
19 | ****************************************************************************/ | ||
20 | |||
21 | #ifndef TTSESPEAKNG_H | ||
22 | #define TTSESPEAKNG_H | ||
23 | |||
24 | #include <QtCore> | ||
25 | #include "ttsexes.h" | ||
26 | |||
27 | class TTSEspeakNG : public TTSExes | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | TTSEspeakNG(QObject* parent=nullptr) : TTSExes(parent) | ||
32 | { | ||
33 | m_name = "espeak-ng"; | ||
34 | |||
35 | m_TTSTemplate = "\"%exe\" %options -w \"%wavfile\" -- \"%text\""; | ||
36 | m_TTSSpeakTemplate = "\"%exe\" %options -- \"%text\""; | ||
37 | m_capabilities = TTSBase::CanSpeak; | ||
38 | } | ||
39 | }; | ||
40 | |||
41 | #endif | ||