class ViewController: UIViewController {
let speakTalk = AVSpeechSynthesizer()
let phrase1 = AVSpeechUtterance(string: "నాకు నీరు కావాలి")//*Telugu translation for i want water//*
@IBOutlet weak var iwantwater: UIButton!
@IBAction func iwantwaterbtn(_ sender: Any)
{
phrase1.voice = AVSpeechSynthesisVoice(language: "te_IN")
speakTalk.speak(phrase1)
}
}
泰卢固语是一种印度语言。此代码适用于印地语,但不适用于泰卢固语。