summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/ttssapi.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp
index e2587b715f..00c63550d3 100644
--- a/rbutil/rbutilqt/base/ttssapi.cpp
+++ b/rbutil/rbutilqt/base/ttssapi.cpp
@@ -227,11 +227,8 @@ TTSStatus TTSSapi::voice(QString text,QString wavfile, QString *errStr)
*voicestream << query;
*voicestream << "SYNC\tbla\r\n";
voicestream->flush();
- char temp[20];
-
- //we use this, because waitForReadyRead doesnt work from a different thread
- while( voicescript->readLine(temp,20) == 0)
- QCoreApplication::processEvents();
+ // do NOT poll the output with readLine(), this causes sync issues!
+ voicescript->waitForReadyRead();
if(!QFileInfo(wavfile).isFile()) {
qDebug() << "[TTSSapi] output file does not exist:" << wavfile;