summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/tts.cpp
diff options
context:
space:
mode:
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;