forked from len0rd/rockbox
Improve some trace messages.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28171 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4aa42f3d43
commit
51321cc6f8
3 changed files with 8 additions and 4 deletions
|
|
@ -129,6 +129,8 @@ TalkGenerator::Status TalkGenerator::voiceList(QList<TalkEntry>* list,int wavtri
|
||||||
int maxThreadCount = QThreadPool::globalInstance()->maxThreadCount();
|
int maxThreadCount = QThreadPool::globalInstance()->maxThreadCount();
|
||||||
if ((m_tts->capabilities() & TTSBase::RunInParallel) == 0)
|
if ((m_tts->capabilities() & TTSBase::RunInParallel) == 0)
|
||||||
QThreadPool::globalInstance()->setMaxThreadCount(1);
|
QThreadPool::globalInstance()->setMaxThreadCount(1);
|
||||||
|
qDebug() << "[TalkGenerator] Maximum number of threads used:"
|
||||||
|
<< QThreadPool::globalInstance()->maxThreadCount();
|
||||||
|
|
||||||
connect(&ttsFutureWatcher, SIGNAL(progressValueChanged(int)),
|
connect(&ttsFutureWatcher, SIGNAL(progressValueChanged(int)),
|
||||||
this, SLOT(ttsProgress(int)));
|
this, SLOT(ttsProgress(int)));
|
||||||
|
|
|
||||||
|
|
@ -195,8 +195,10 @@ QStringList TTSSapi::getVoiceList(QString language)
|
||||||
TTSStatus TTSSapi::voice(QString text,QString wavfile, QString *errStr)
|
TTSStatus TTSSapi::voice(QString text,QString wavfile, QString *errStr)
|
||||||
{
|
{
|
||||||
(void) errStr;
|
(void) errStr;
|
||||||
QString query = "SPEAK\t"+wavfile+"\t"+text+"\r\n";
|
QString query = "SPEAK\t"+wavfile+"\t"+text;
|
||||||
qDebug() << "voicing" << query;
|
qDebug() << "[TTSSapi] voicing" << query;
|
||||||
|
// append newline to query. Done now to keep debug output more readable.
|
||||||
|
query.append("\r\n");
|
||||||
*voicestream << query;
|
*voicestream << query;
|
||||||
*voicestream << "SYNC\tbla\r\n";
|
*voicestream << "SYNC\tbla\r\n";
|
||||||
voicestream->flush();
|
voicestream->flush();
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ bool VoiceFileCreator::createVoiceFile()
|
||||||
QUrl genlangUrl = SystemInfo::value(SystemInfo::GenlangUrl).toString()
|
QUrl genlangUrl = SystemInfo::value(SystemInfo::GenlangUrl).toString()
|
||||||
+"?lang=" + m_lang + "&t=" + target + "&rev=" + version + "&f=" + features;
|
+"?lang=" + m_lang + "&t=" + target + "&rev=" + version + "&f=" + features;
|
||||||
|
|
||||||
qDebug() << "downloading " << genlangUrl;
|
qDebug() << "[VoiceFileCreator] downloading " << genlangUrl;
|
||||||
|
|
||||||
//download the correct genlang output
|
//download the correct genlang output
|
||||||
QTemporaryFile *downloadFile = new QTemporaryFile(this);
|
QTemporaryFile *downloadFile = new QTemporaryFile(this);
|
||||||
|
|
@ -88,7 +88,7 @@ bool VoiceFileCreator::createVoiceFile()
|
||||||
|
|
||||||
void VoiceFileCreator::downloadDone(bool error)
|
void VoiceFileCreator::downloadDone(bool error)
|
||||||
{
|
{
|
||||||
qDebug() << "Voice creator::downloadDone, error:" << error;
|
qDebug() << "[VoiceFileCreator] download done, error:" << error;
|
||||||
|
|
||||||
// update progress bar
|
// update progress bar
|
||||||
emit logProgress(1,1);
|
emit logProgress(1,1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue