forked from len0rd/rockbox
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:
parent
328ff6d979
commit
9e2eb6243f
2 changed files with 5 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue