From 15aa61ac497ea4907387ce2a4fc3bd273cebb3e8 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Tue, 6 Mar 2018 11:40:33 +0300 Subject: [PATCH] [cherry] [FABRIC-12659] [ios] Crash fix. --- iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.mm b/iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.mm index 542dd9bd1b..02743ca5fc 100644 --- a/iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.mm +++ b/iphone/Maps/Core/TextToSpeech/MWMTextToSpeech.mm @@ -191,7 +191,7 @@ using Observers = NSHashTable; for (NSString * loc in candidateLocales) { if ([loc isEqualToString:@"en-US"]) - voice = [AVSpeechSynthesisVoice voiceWithLanguage:AVSpeechSynthesisVoiceIdentifierAlex]; + voice = [AVSpeechSynthesisVoice voiceWithIdentifier:AVSpeechSynthesisVoiceIdentifierAlex]; if (voice) break; for (AVSpeechSynthesisVoice * ttsVoice in availTTSVoices)