summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-02-20 22:09:53 +0000
committerJens Arnold <amiconn@rockbox.org>2008-02-20 22:09:53 +0000
commit6af732d17aa1eb882e3c52242b2bf7f2fcccc752 (patch)
treed0dc0eadd38b374695236f158a8f88847b8732ca
parent66827f3a18c3dbc31fe587de094d197d79410749 (diff)
downloadrockbox-6af732d17aa1eb882e3c52242b2bf7f2fcccc752.zip
rockbox-6af732d17aa1eb882e3c52242b2bf7f2fcccc752.tar.gz
rockbox-6af732d17aa1eb882e3c52242b2bf7f2fcccc752.tar.bz2
rockbox-6af732d17aa1eb882e3c52242b2bf7f2fcccc752.tar.xz
2 small fixes: * List SAPI5 voices with their actual names, noth with their descriptio. * Actually use the passed speed for SAPI4.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16359 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/sapi_voice.vbs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/sapi_voice.vbs b/tools/sapi_voice.vbs
index 440444c..4199101 100755
--- a/tools/sapi_voice.vbs
+++ b/tools/sapi_voice.vbs
@@ -108,7 +108,7 @@ If bSAPI4 Then
oTTS.Select nMode
' Speed selection
- If sSpeed <> "" Then oSpVoice.Speed = sSpeed
+ If sSpeed <> "" Then oTTS.Speed = sSpeed
Else ' SAPI5
' Create SAPI5 object
Set oSpVoice = CreateObject("SAPI.SpVoice")
@@ -123,7 +123,7 @@ Else ' SAPI5
For Each nLangID in LangIDs(sLanguage)
sSelectString = "Language=" & Hex(nLangID)
For Each oVoice in oSpVoice.GetVoices(sSelectString)
- WScript.StdErr.Write oVoice.GetDescription & ","
+ WScript.StdErr.Write oVoice.GetAttribute("Name") & ","
Next
Next
WScript.StdErr.WriteLine