mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue