Speech Synthesis: Text To Speech in SwiftUI
Speech synthesis is the process of producing human speech artificially. A system used for this purpose is called a speech synthesizer, and can be implemented in software or hardware products.
Apple provides speech synthesis library inside AVFoundation framework.
Speech synthesis requires use of two classes, AVSpeechUtterance and AVSpeechSynthesizer.