summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-09-23 14:02:29 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-09-23 14:02:29 +0000
commitf79fbc19367cbca578571d399b7b4fdbc0978404 (patch)
treebac4d3daf5d1e71784d611c0ade208e6cacc6a28 /rbutil
parentacc70ec58d88771673c092711b3b2210a03c14bc (diff)
downloadrockbox-f79fbc19367cbca578571d399b7b4fdbc0978404.tar.gz
rockbox-f79fbc19367cbca578571d399b7b4fdbc0978404.tar.bz2
rockbox-f79fbc19367cbca578571d399b7b4fdbc0978404.zip
rbutil: added swift tts engine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14829 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/rbutil.ini40
-rw-r--r--rbutil/rbutilqt/talkfile.cpp1
2 files changed, 36 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/rbutil.ini b/rbutil/rbutilqt/rbutil.ini
index ea6a1a4cd4..4432344d0f 100644
--- a/rbutil/rbutilqt/rbutil.ini
+++ b/rbutil/rbutilqt/rbutil.ini
@@ -400,11 +400,15 @@ ttspreset02 = "espeak (user-adjusted)"
ttspreset03 = "flite (default)"
ttspreset04 = "flite (user-adjusted)"
ttspreset05 = "sapi (default)"
+ttspreset06 = "sapi (user-adjusted)"
+ttspreset07 = "swift (default)"
+ttspreset08 = "swift (user-adjusted)"
+
[ttspreset01]
tts = "espeak"
options = ""
-template = "\"%exe\" %options -w \"%wavfile\" \"%text\""
+template = "\"%exe\" \"%options\" -w \"%wavfile\" \"%text\""
edit = false
os = all
needslanguagecfg = false
@@ -412,7 +416,7 @@ needslanguagecfg = false
[ttspreset02]
tts = "espeak"
options = ""
-template = "\"%exe\" %options -w \"%wavfile\" \"%text\""
+template = "\"%exe\" \"%options\" -w \"%wavfile\" \"%text\""
edit = true
os = all
needslanguagecfg = false
@@ -420,7 +424,7 @@ needslanguagecfg = false
[ttspreset03]
tts = "flite"
options = ""
-template = "\"%exe\" %options -o \"%wavfile\" \"%text\""
+template = "\"%exe\" \"%options\" -o \"%wavfile\" \"%text\""
edit = false
os = all
needslanguagecfg = false
@@ -428,7 +432,7 @@ needslanguagecfg = false
[ttspreset04]
tts = "flite"
options = ""
-template = "\"%exe\" %options -o \"%wavfile\" \"%text\""
+template = "\"%exe\" \"%options\" -o \"%wavfile\" \"%text\""
edit = true
os = all
needslanguagecfg = false
@@ -436,7 +440,33 @@ needslanguagecfg = false
[ttspreset05]
tts = "sapi"
options = ""
-template = "cscript //nologo \"%exe\" /language:english %options"
+template = "cscript //nologo \"%exe\" /language:%lang \"%options\""
edit = false
os = win32
needslanguagecfg = true
+
+[ttspreset06]
+tts = "sapi"
+options = ""
+template = "cscript //nologo \"%exe\" /language:%lang \"%options\""
+edit = true
+os = win32
+needslanguagecfg = true
+
+[ttspreset07]
+tts = "swift"
+options = ""
+template = "\"%exe\" \"%options\" -o \"%wavfile\" \"%text\""
+edit = false
+os = all
+needslanguagecfg = false
+
+[ttspreset08]
+tts = "swift"
+options = ""
+template = "\"%exe\" \"%options\" -o \"%wavfile\" \"%text\""
+edit = true
+os = all
+needslanguagecfg = false
+
+
diff --git a/rbutil/rbutilqt/talkfile.cpp b/rbutil/rbutilqt/talkfile.cpp
index d3e3a24781..5b484079f9 100644
--- a/rbutil/rbutilqt/talkfile.cpp
+++ b/rbutil/rbutilqt/talkfile.cpp
@@ -190,6 +190,7 @@ bool TTSSapi::start()
QString execstring = m_TTSTemplate;
execstring.replace("%exe",m_TTSexec);
execstring.replace("%options",m_TTSOpts);
+ execstring.replace("%lang",m_TTSLanguage);
qDebug() << "init" << execstring;
voicescript = new QProcess(NULL);
voicescript->start(execstring);