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
This commit is contained in:
Dominik Riebeling 2012-09-08 20:46:20 +02:00
parent 328ff6d979
commit 9e2eb6243f
2 changed files with 5 additions and 2 deletions

View file

@ -198,7 +198,10 @@ QStringList TTSSapi::getVoiceList(QString language)
voicescript->waitForReadyRead(); voicescript->waitForReadyRead();
QString dataRaw = voicescript->readAllStandardError().data(); 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) if(result.size() > 0)
{ {
result.sort(); result.sort();

View file

@ -139,7 +139,7 @@ Else ' SAPI5
For Each nLangID in LangIDs(sLanguage) For Each nLangID in LangIDs(sLanguage)
sSelectString = "Language=" & Hex(nLangID) sSelectString = "Language=" & Hex(nLangID)
For Each oVoice in oSpVoice.GetVoices(sSelectString) For Each oVoice in oSpVoice.GetVoices(sSelectString)
WScript.StdErr.Write oVoice.GetAttribute("Name") & "," WScript.StdErr.Write oVoice.GetAttribute("Name") & ";"
Next Next
Next Next
WScript.StdErr.WriteLine WScript.StdErr.WriteLine