Enqueues an utterance to be spoken.
- iOS 7.0+
- macOS 10.14+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
AVSpeechobject containing text to be spoken.
AVSpeech object not only contains the text to be spoken, but also parameters controlling speech synthesis such as voice, pitch, and delays between utterances.
Calling this method adds the utterance to a queue; utterances are spoken in the order in which they are added to the queue. If the synthesizer is not currently speaking, the utterance is spoken immediately. Attempting to enqueue
AVSpeech instance multiple times throws an exception.