Commit e2f5a8c3 authored by Thomas Gubler's avatar Thomas Gubler

espeak: provide string length with 0 character, fixes problems with qgc...

espeak: provide string length with 0 character, fixes problems with qgc reading out strange values/chars at the end of the sentence
parent 562c3d2c
......@@ -212,7 +212,8 @@ bool GAudioOutput::say(QString text, int severity)
#endif // _MSC_VER
#if defined Q_OS_LINUX
unsigned int espeak_size = strlen(text.toStdString().c_str());
// Set size of string for espeak: +1 for the null-character
unsigned int espeak_size = strlen(text.toStdString().c_str()) + 1;
espeak_Synth(text.toStdString().c_str(), espeak_size, 0, POS_CHARACTER, 0, espeakCHARS_AUTO, NULL, NULL);
#endif // Q_OS_LINUX
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment