- AVSpeechSynthesizer() // Creates a speech synthesiser
- speaker.speakUtterance(speech) // Converts the text to speech
Creating a basic text to speech
speakUtterance: method of
AVSpeechSynthesizer to convert text to speech. You need to pass an
AVSpeechUtterance object to this method, which contains the text that you want to be spoken.
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0
This website is not affiliated with Stack Overflow