A long time ago, back in 2013 and just prior to Swift launching, I created a tutorial in Objective-C called AVSpeechSynthesizer Tutorial – Letting Your App Speak Like Siri. A lot of things have changed since then in that we now have Swift, SwiftUI, and personalised voice. People with iPhone 12 or later, and various Mac and iPad devices, can spend time recording phrases on the screen, and after the device has processed those phrases, you then have a personalised voice that can be used in various places on the phone.
This tutorial looks at how to use AVSpeechSynthesizer to select your voice and get yourself to speak anything you type in.
[Read more…]