summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttsbase.cpp
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-19 15:21:09 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-19 19:32:43 +0000
commitfc4af2062b7bcf888a24c0258e6ce441476ded04 (patch)
treedc9f6261e2cf9715024f5d6f9b024e6820f9a48b /rbutil/rbutilqt/base/ttsbase.cpp
parent1748b475a9550227e864cff776e576dd28fb4e95 (diff)
downloadrockbox-fc4af2062b7bcf888a24c0258e6ce441476ded04.tar.gz
rockbox-fc4af2062b7bcf888a24c0258e6ce441476ded04.tar.bz2
rockbox-fc4af2062b7bcf888a24c0258e6ce441476ded04.zip
rbutil: Support 'espeak-ng' and 'mimic' TTS engines
Change-Id: Ibf6e46254f42b28800351fdb303539b2ec13d422
Diffstat (limited to 'rbutil/rbutilqt/base/ttsbase.cpp')
-rw-r--r--rbutil/rbutilqt/base/ttsbase.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/base/ttsbase.cpp b/rbutil/rbutilqt/base/ttsbase.cpp
index 3b8384f534..0254c44e1d 100644
--- a/rbutil/rbutilqt/base/ttsbase.cpp
+++ b/rbutil/rbutilqt/base/ttsbase.cpp
@@ -25,7 +25,9 @@
#include "ttsmssp.h"
#include "ttsexes.h"
#include "ttsespeak.h"
+#include "ttsespeakng.h"
#include "ttsflite.h"
+#include "ttsmimic.h"
#include "ttsswift.h"
#if defined(Q_OS_MACX)
#include "ttscarbon.h"
@@ -43,6 +45,8 @@ void TTSBase::initTTSList()
{
#if !defined(Q_OS_WIN)
ttsList["espeak"] = tr("Espeak TTS Engine");
+ ttsList["espeakng"] = tr("Espeak-ng TTS Engine");
+ ttsList["mimic"] = tr("Mimic TTS Engine");
#endif
ttsList["flite"] = tr("Flite TTS Engine");
ttsList["swift"] = tr("Swift TTS Engine");
@@ -85,6 +89,10 @@ TTSBase* TTSBase::getTTS(QObject* parent,QString ttsName)
#endif
if(ttsName == "espeak")
tts = new TTSEspeak(parent);
+ else if(ttsName == "espeakng")
+ tts = new TTSEspeakNG(parent);
+ else if(ttsName == "mimic")
+ tts = new TTSMimic(parent);
else if(ttsName == "flite")
tts = new TTSFlite(parent);
else if(ttsName == "swift")