For Speech to text - I used "Speech Framework" and create demo using this link. But after getting a text, I want to speak text field text.
var synth = AVSpeechSynthesizer()
var myUtterance = AVSpeechUtterance(string: textfield.text)
myUtterance.rate = 0.3
synth.speak(myUtterance)
but above code not working. here, i attached demo project link : demo project link