Wednesday, 13 July 2016

How to convert text to speech in iOS using AVSpeechSynthesizer.

The AVSpeechSynthesizer class produces synthesized speech from text on an iOS device, and provides methods for controlling or monitoring the progress of ongoing speech.
To speak some amount of text, you must first create anAVSpeechUtterance instance containing the text. (Optionally, you may also use the utterance object to control parameters affecting its speech, such as voice, pitch, and rate.) Then, pass it to the speakUtterance:method on a speech synthesizer instance to speak that utterance.Apple Documentation.

No comments:

Post a Comment

Ads Inside Post

Blogger Widget