Commit 1134684b authored by dogmaphobic's avatar dogmaphobic

Messages are in English. If you have the iOS device set to another language,...

Messages are in English. If you have the iOS device set to another language, things get spoken all wrong.
parent 1ce17f01
...@@ -54,7 +54,7 @@ void SpeakIOS::speak(QString msg) ...@@ -54,7 +54,7 @@ void SpeakIOS::speak(QString msg)
AVSpeechUtterance *utterance = [[[AVSpeechUtterance alloc] initWithString: msg_ns] autorelease]; AVSpeechUtterance *utterance = [[[AVSpeechUtterance alloc] initWithString: msg_ns] autorelease];
AVSpeechSynthesisVoice* currentVoice = [AVSpeechSynthesisVoice voiceWithLanguage:[AVSpeechSynthesisVoice currentLanguageCode]]; AVSpeechSynthesisVoice* currentVoice = [AVSpeechSynthesisVoice voiceWithLanguage:[AVSpeechSynthesisVoice currentLanguageCode]];
utterance.voice = currentVoice; utterance.voice = currentVoice;
//utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"];
utterance.rate = 0.5; utterance.rate = 0.5;
[_synth speakUtterance:utterance]; [_synth speakUtterance:utterance];
} }
......
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