summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/talkfile.h
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-12-15 13:13:57 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-12-15 13:13:57 +0000
commitbebddd42c265bf63845f42bb29f48de5ed263f69 (patch)
treeb5dbb6e711d4d71034c4ee19ddfa7e0af043971b /rbutil/rbutilqt/talkfile.h
parent1e489e53b8d0807fc52423ae7453d4b1d047d370 (diff)
downloadrockbox-bebddd42c265bf63845f42bb29f48de5ed263f69.tar.gz
rockbox-bebddd42c265bf63845f42bb29f48de5ed263f69.tar.bz2
rockbox-bebddd42c265bf63845f42bb29f48de5ed263f69.zip
rbutil: reworked configuration of TTS engines to the new Style.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15932 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/talkfile.h')
-rw-r--r--rbutil/rbutilqt/talkfile.h65
1 files changed, 2 insertions, 63 deletions
diff --git a/rbutil/rbutilqt/talkfile.h b/rbutil/rbutilqt/talkfile.h
index 2e2c3d7a01..d45d3a1907 100644
--- a/rbutil/rbutilqt/talkfile.h
+++ b/rbutil/rbutilqt/talkfile.h
@@ -25,30 +25,7 @@
#include "progressloggerinterface.h"
#include "encoders.h"
-
-
-class TTSBase : public QObject
-{
- Q_OBJECT
-public:
- TTSBase(){}
- virtual ~TTSBase(){}
- virtual bool voice(QString text,QString wavfile){(void)text; (void)wavfile; return false;}
- virtual bool start(){return false;}
- virtual bool stop(){return false;}
-
- void setTTSexe(QString exe){m_TTSexec=exe;}
- void setTTsOpts(QString opts) {m_TTSOpts=opts;}
- void setTTsLanguage(QString language) {m_TTSLanguage = language;}
- void setTTsTemplate(QString t) { m_TTSTemplate = t; }
-
-protected:
- QString m_TTSexec;
- QString m_TTSOpts;
- QString m_TTSTemplate;
- QString m_TTSLanguage;
-};
-
+#include "tts.h"
class TalkFileCreator :public QObject
{
@@ -61,14 +38,6 @@ public:
void setUserSettings(QSettings* setting) { userSettings = setting;}
- void setTTSexe(QString exe){m_TTSexec=exe;}
-
- void setTTsType(QString tts) { m_curTTS = tts; }
- void setTTsOpts(QString opts) {m_TTSOpts=opts;}
- void setTTsLanguage(QString language) {m_TTSLanguage = language;}
- void setTTsTemplate(QString t) { m_curTTSTemplate = t; }
-
-
void setDir(QDir dir){m_dir = dir; }
void setMountPoint(QString mountpoint) {m_mountpoint =mountpoint; }
@@ -90,12 +59,7 @@ private:
QDir m_dir;
QString m_mountpoint;
- QString m_curTTS;
- QString m_TTSexec;
- QString m_TTSOpts;
- QString m_TTSLanguage;
- QString m_curTTSTemplate;
-
+
bool m_overwriteTalk;
bool m_overwriteWav;
bool m_removeWav;
@@ -109,31 +73,6 @@ private:
bool m_abort;
};
-class TTSSapi : public TTSBase
-{
-public:
- TTSSapi() {};
- virtual bool voice(QString text,QString wavfile);
- virtual bool start();
- virtual bool stop();
-
-private:
- QProcess* voicescript;
-};
-
-class TTSExes : public TTSBase
-{
-public:
- TTSExes() {};
- virtual bool voice(QString text,QString wavfile);
- virtual bool start();
- virtual bool stop() {return true;}
-
-private:
-
-};
-
-
#endif