Methods you can implement to respond to events that occur during speech synthesis.
- iOS 7.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
All methods in this protocol are optional. An
AVSpeech object sends messages to its delegate for three categories of events:
When speech pauses or resumes
When the synthesizer starts or finishes speaking a block of text (as encapsulated by an
As the synthesizer produces each individual unit of speech
For the third case, you can implement the
speech method to provide a user interface in which each word is visibly highlighted as it is spoken.