diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-09-08 20:46:20 +0200 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-09-08 20:46:20 +0200 |
| commit | 9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c (patch) | |
| tree | 5309bb6e03b203f42a1c880617ccc078db8a0aca | |
| parent | 328ff6d979c028ecba9c57d12c1e75637be20396 (diff) | |
| download | rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.zip rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.tar.gz rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.tar.bz2 rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.tar.xz | |
Change sapi_voice.vbs voice list separation character.
The currently used comma for separating voices for the /listvoices command is
used by Speech Platform based voices. Change the character to a semicolon
which isn't used by voices.
Change-Id: I1a7e6e4229f864f56635143e864dadf38cdd7e73
| -rw-r--r-- | rbutil/rbutilqt/base/ttssapi.cpp | 5 | ||||
| -rw-r--r-- | tools/sapi_voice.vbs | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp index f726dcf..666b101 100644 --- a/rbutil/rbutilqt/base/ttssapi.cpp +++ b/rbutil/rbutilqt/base/ttssapi.cpp @@ -198,7 +198,10 @@ QStringList TTSSapi::getVoiceList(QString language) voicescript->waitForReadyRead(); QString dataRaw = voicescript->readAllStandardError().data(); - result = dataRaw.split(",",QString::SkipEmptyParts); + if(dataRaw.startsWith("Error")) { + qDebug() << "[TTSSapi] Error:" << dataRaw; + } + result = dataRaw.split(";",QString::SkipEmptyParts); if(result.size() > 0) { result.sort(); diff --git a/tools/sapi_voice.vbs b/tools/sapi_voice.vbs index 6f20109..a8b98ac 100644 --- a/tools/sapi_voice.vbs +++ b/tools/sapi_voice.vbs @@ -139,7 +139,7 @@ Else ' SAPI5 For Each nLangID in LangIDs(sLanguage) sSelectString = "Language=" & Hex(nLangID) For Each oVoice in oSpVoice.GetVoices(sSelectString) - WScript.StdErr.Write oVoice.GetAttribute("Name") & "," + WScript.StdErr.Write oVoice.GetAttribute("Name") & ";" Next Next WScript.StdErr.WriteLine |