summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/tts.cpp
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-01-11 23:59:12 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-01-11 23:59:12 +0000
commit9f686700d47e8fcfa0fec65bfbfcf5d5cde3f752 (patch)
tree02e30405bb8664f1fb912e8c0063ea096663fe25 /rbutil/rbutilqt/tts.cpp
parent5be332938d51b75dee8856ad87e2edbe9b8ce3b2 (diff)
downloadrockbox-9f686700d47e8fcfa0fec65bfbfcf5d5cde3f752.tar.gz
rockbox-9f686700d47e8fcfa0fec65bfbfcf5d5cde3f752.zip
rbutil: added creation of voice files with rbutil.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16059 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/tts.cpp')
-rw-r--r--rbutil/rbutilqt/tts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/tts.cpp b/rbutil/rbutilqt/tts.cpp
index aa5f661fcb..b7c89ecbe9 100644
--- a/rbutil/rbutilqt/tts.cpp
+++ b/rbutil/rbutilqt/tts.cpp
@@ -284,7 +284,7 @@ bool TTSSapi::voice(QString text,QString wavfile)
{
QString query = "SPEAK\t"+wavfile+"\t"+text+"\r\n";
qDebug() << "voicing" << query;
- voicescript->write(query.toLocal8Bit());
+ voicescript->write(query.toUtf8());
voicescript->write("SYNC\tbla\r\n");
voicescript->waitForReadyRead();
return true;
@@ -293,7 +293,7 @@ bool TTSSapi::voice(QString text,QString wavfile)
bool TTSSapi::stop()
{
QString query = "QUIT\r\n";
- voicescript->write(query.toLocal8Bit());
+ voicescript->write(query.toUtf8());
voicescript->waitForFinished();
delete voicescript;
return true;