i am new to swift and iOS application development. I am creating a text to speech application using the AVSpeechSynthesiser. I am wanting to set a string say in English but i am wanting it to translate that particular string to speech but in a different language such as Arabic. Am I able to do this using the AVSpeechSynthesizer, or would i need to use a translation API to do this.
ThankYou
I threw together an AVSpeechSynthesizer class to handle flipping from one language to another. Here's a AVSpeechSynthesizer tutorial on NSHipster that's a good starting point for learning about this. I haven't fiddled with translation, but you can figure that part out...I also created a basic translator class that'll translate "hello" to "مرحبا". You can see the project here:
TranslateDemo
To use the translator, you'd probably want to tie an action to a button like so:
The speech synthesizer looks like this: