diff --git a/src/GAudioOutput.cc b/src/GAudioOutput.cc index 2f597bdf5bb980452e5d910db6f7988ecd3aa454..ca8bb28a7a5ff1b5cfd8d4420e588bdeebf33597 100644 --- a/src/GAudioOutput.cc +++ b/src/GAudioOutput.cc @@ -97,8 +97,7 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent), #if defined Q_OS_LINUX && defined QGC_SPEECH_ENABLED espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 500, NULL, 0); // initialize for playback with 500ms buffer and no options (see speak_lib.h) - espeak_VOICE espeak_voice; - memset(&espeak_voice, 0, sizeof(espeak_VOICE)); // Zero out the voice first + espeak_VOICE espeak_voice = {}; espeak_voice.languages = "en-uk"; // Default to British English espeak_voice.name = "klatt"; // espeak voice name espeak_voice.gender = 2; // Female