Contents

speechSynthesizer(_:didCancel:)

Tells the delegate when the synthesizer cancels speaking an utterance.

Declaration

optional func speechSynthesizer(_ synthesizer: AVSpeechSynthesizer, didCancel utterance: AVSpeechUtterance)

Parameters

  • synthesizer:

    The speech synthesizer that cancels speaking the utterance.

  • utterance:

    The utterance that the speech synthesizer cancels speaking.

Discussion

The system only calls this method if a speech synthesizer is speaking an utterance and the system calls its stopSpeaking(at:) method. The system doesn’t call this method if the synthesizer is in a delay between utterances when speech stops, and it doesn’t call it for unspoken utterances.

See Also

Responding to speech synthesis events