summaryrefslogtreecommitdiff
path: root/tools/sapi_voice.vbs
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-09-04 22:03:05 +0000
committerJens Arnold <amiconn@rockbox.org>2007-09-04 22:03:05 +0000
commitdf9a166392f80dd15e8afc535323a29bfd53f52d (patch)
tree8d473d0af5553ffc5f7fcbda74eabd3ef3d8273d /tools/sapi_voice.vbs
parent75c39b004fe627024464fe6ec04bd477ab3d37f2 (diff)
downloadrockbox-df9a166392f80dd15e8afc535323a29bfd53f52d.tar.gz
rockbox-df9a166392f80dd15e8afc535323a29bfd53f52d.zip
Voice file building: * Make correct_string() work as intended by passing the missing 2 parameters. * SAPI: Add query for TTS engine vendor. * Add several string corrections (mostly but not exclusively for German). * Make the pool filenames include TTS options and encoder options in their MD5 hash value, allowing to properly build voice files where those settings differ per target using the same pool.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14608 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/sapi_voice.vbs')
-rwxr-xr-xtools/sapi_voice.vbs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/sapi_voice.vbs b/tools/sapi_voice.vbs
index 848db94df2..f92c3f92fa 100755
--- a/tools/sapi_voice.vbs
+++ b/tools/sapi_voice.vbs
@@ -139,6 +139,15 @@ Do
139 WScript.Quit 1 139 WScript.Quit 1
140 End If 140 End If
141 Select Case aLine(0) ' command 141 Select Case aLine(0) ' command
142 Case "QUERY"
143 Select Case aLine(1)
144 Case "VENDOR"
145 If bSAPI4 Then
146 WScript.StdOut.WriteLine oTTS.MfgName(nMode)
147 Else
148 WScript.StdOut.WriteLine oSpVoice.Voice.GetAttribute("Vendor")
149 End If
150 End Select
142 Case "SPEAK" 151 Case "SPEAK"
143 aData = Split(aLine(1), vbTab, 2) 152 aData = Split(aLine(1), vbTab, 2)
144 aData(1) = UTF8decode(aData(1)) 153 aData(1) = UTF8decode(aData(1))