diff options
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/talkgenerator.cpp | 2 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/ttssapi.cpp | 6 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/voicefile.cpp | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/base/talkgenerator.cpp b/rbutil/rbutilqt/base/talkgenerator.cpp index bc7e5f18b0..f1aa783281 100644 --- a/rbutil/rbutilqt/base/talkgenerator.cpp +++ b/rbutil/rbutilqt/base/talkgenerator.cpp @@ -129,6 +129,8 @@ TalkGenerator::Status TalkGenerator::voiceList(QList<TalkEntry>* list,int wavtri int maxThreadCount = QThreadPool::globalInstance()->maxThreadCount(); if ((m_tts->capabilities() & TTSBase::RunInParallel) == 0) QThreadPool::globalInstance()->setMaxThreadCount(1); + qDebug() << "[TalkGenerator] Maximum number of threads used:" + << QThreadPool::globalInstance()->maxThreadCount(); connect(&ttsFutureWatcher, SIGNAL(progressValueChanged(int)), this, SLOT(ttsProgress(int))); diff --git a/rbutil/rbutilqt/base/ttssapi.cpp b/rbutil/rbutilqt/base/ttssapi.cpp index 36ce16826f..b149e1d786 100644 --- a/rbutil/rbutilqt/base/ttssapi.cpp +++ b/rbutil/rbutilqt/base/ttssapi.cpp @@ -195,8 +195,10 @@ QStringList TTSSapi::getVoiceList(QString language) TTSStatus TTSSapi::voice(QString text,QString wavfile, QString *errStr) { (void) errStr; - QString query = "SPEAK\t"+wavfile+"\t"+text+"\r\n"; - qDebug() << "voicing" << query; + QString query = "SPEAK\t"+wavfile+"\t"+text; + qDebug() << "[TTSSapi] voicing" << query; + // append newline to query. Done now to keep debug output more readable. + query.append("\r\n"); *voicestream << query; *voicestream << "SYNC\tbla\r\n"; voicestream->flush(); diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp index 208cd1eeb8..a3950ca950 100644 --- a/rbutil/rbutilqt/base/voicefile.cpp +++ b/rbutil/rbutilqt/base/voicefile.cpp @@ -66,7 +66,7 @@ bool VoiceFileCreator::createVoiceFile() QUrl genlangUrl = SystemInfo::value(SystemInfo::GenlangUrl).toString() +"?lang=" + m_lang + "&t=" + target + "&rev=" + version + "&f=" + features; - qDebug() << "downloading " << genlangUrl; + qDebug() << "[VoiceFileCreator] downloading " << genlangUrl; //download the correct genlang output QTemporaryFile *downloadFile = new QTemporaryFile(this); @@ -88,7 +88,7 @@ bool VoiceFileCreator::createVoiceFile() void VoiceFileCreator::downloadDone(bool error) { - qDebug() << "Voice creator::downloadDone, error:" << error; + qDebug() << "[VoiceFileCreator] download done, error:" << error; // update progress bar emit logProgress(1,1); |