Browse Source

Messages are in English. If you have the iOS device set to another language, things get spoken all wrong.

QGC4.4
dogmaphobic 9 years ago
parent
commit
1134684b4e
  1. 2
      src/audio/QGCAudioWorker_iOS.mm

2
src/audio/QGCAudioWorker_iOS.mm

@ -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];
AVSpeechSynthesisVoice* currentVoice = [AVSpeechSynthesisVoice voiceWithLanguage:[AVSpeechSynthesisVoice currentLanguageCode]];
utterance.voice = currentVoice;
//utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"];
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"];
utterance.rate = 0.5;
[_synth speakUtterance:utterance];
}

Loading…
Cancel
Save