In my app I'm using AVSpeechSynthesizer, the text speeches is russian, the problem is when I'm changing system language to English the text pronounce with english accent, sounds like transcription of russian language. How can I manage this problem?
here is some code
utterance.voice = AVSpeechSynthesisVoice(language: "ru-Ru")
synthesizer.pauseSpeaking(at: .word)
utterance = AVSpeechUtterance(string: "Какой-то текст который нужно произнести")
synthesizer.speak(utterance)
Maybe it will be helpful for somebody, I found solution, but it looks like workaround before speaking I change AppLanguage, here is the code
after synchronizing AVSpeechSynthesisVoice.currentLanguageCode() became "ru" ignoring system language
Here is full code example for Turkish
import UIKit
import AVFoundation
class ViewController: UIViewController {
}