AVSpeechUtterance
An object that encapsulates the text for speech synthesis and parameters that affect the speech.
Declaration
class AVSpeechUtteranceOverview
An AVSpeechUtterance is the basic unit of speech synthesis.
To synthesize speech, create an AVSpeechUtterance instance with text you want a speech synthesizer to speak. Optionally, change the voice, pitchMultiplier, volume, rate, preUtteranceDelay, or postUtteranceDelay parameters for the utterance. Pass the utterance to an instance of AVSpeechSynthesizer to begin speech, or enqueue the utterance to speak later if the synthesizer is already speaking.
Split a body of text into multiple utterances if you want to apply different speech parameters. For example, you can emphasize a sentence by increasing the pitch and decreasing the rate of that utterance relative to others, or you can introduce pauses between sentences by putting each into an utterance with a leading or trailing delay.
Set and use the AVSpeechSynthesizerDelegate to receive notifications when the synthesizer starts or finishes speaking an utterance. Create an utterance for each meaningful unit in a body of text if you want to receive notifications as its speech progresses.
Topics
Creating an utterance
Configuring an utterance
Configuring utterance timing
rateAVSpeechUtteranceMinimumSpeechRateAVSpeechUtteranceMaximumSpeechRateAVSpeechUtteranceDefaultSpeechRatepreUtteranceDelaypostUtteranceDelay