summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/base/ttssapi.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-09-08 20:46:20 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-09-08 20:46:20 +0200
commit9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c (patch)
tree5309bb6e03b203f42a1c880617ccc078db8a0aca /rbutil/rbutilqt/base/ttssapi.cpp
parent328ff6d979c028ecba9c57d12c1e75637be20396 (diff)
downloadrockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.tar.gz
rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.tar.bz2
rockbox-9e2eb6243f4aa1fccdb8cdd2abfe7942be91c25c.zip
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
Diffstat (limited to 'rbutil/rbutilqt/base/ttssapi.cpp')
-rw-r--r--rbutil/rbutilqt/base/ttssapi.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp
index f726dcf8da..666b101266 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();