Instance Method

speechSynthesizer:didCancelSpeechUtterance:

Tells the delegate when the synthesizer has canceled speaking an utterance.

Declaration

- (void)speechSynthesizer:(AVSpeechSynthesizer *)synthesizer didCancelSpeechUtterance:(AVSpeechUtterance *)utterance;

Parameters

synthesizer

The synthesizer speaking the utterance that this message applies to.

utterance

The utterance during which speech was canceled.

Discussion

This message is sent only if speech is stopped (using the stopSpeakingAtBoundary: method) while an utterance is being spoken. It is not sent if the synthesizer is currently in a delay between utterances when speech stops. This message is sent only for the utterance currently being spoken, not for utterances yet to be handled.

See Also

Responding to Speech Synthesis Events

- speechSynthesizer:didContinueSpeechUtterance:

Tells the delegate when the synthesizer has resumed speaking an utterance after being paused.

- speechSynthesizer:didFinishSpeechUtterance:

Tells the delegate when the synthesizer has finished speaking an utterance.

- speechSynthesizer:didPauseSpeechUtterance:

Tells the delegate when the synthesizer has paused while speaking an utterance.

- speechSynthesizer:didStartSpeechUtterance:

Tells the delegate when the synthesizer has begun speaking an utterance.

- speechSynthesizer:willSpeakRangeOfSpeechString:utterance:

Tells the delegate when the synthesizer is about to speak a portion of an utterance’s text.