diff --git a/src/plugins/tts/osx/qtexttospeech_osx.mm b/src/plugins/tts/osx/qtexttospeech_osx.mm index fe6a260a..32578bd7 100644 --- a/src/plugins/tts/osx/qtexttospeech_osx.mm +++ b/src/plugins/tts/osx/qtexttospeech_osx.mm @@ -189,7 +189,7 @@ - (void)speechSynthesizer:(NSSpeechSynthesizer *)sender didFinishSpeaking:(BOOL) QLocale localeForVoice(NSString *voice) { NSDictionary *attrs = [NSSpeechSynthesizer attributesForVoice:voice]; - return QString::fromNSString(attrs[NSVoiceLocaleIdentifier]); + return QLocale(QString::fromNSString(attrs[NSVoiceLocaleIdentifier])); } QVoice QTextToSpeechEngineOsx::voiceForNSVoice(NSString *voiceString) const diff --git a/src/plugins/tts/sapi/qtexttospeech_sapi.h b/src/plugins/tts/sapi/qtexttospeech_sapi.h index 790660bd..4e540721 100644 --- a/src/plugins/tts/sapi/qtexttospeech_sapi.h +++ b/src/plugins/tts/sapi/qtexttospeech_sapi.h @@ -37,6 +37,7 @@ #ifndef QTEXTTOSPEECHENGINE_SAPI_H #define QTEXTTOSPEECHENGINE_SAPI_H +#include #include #include