Contents

stopSpeaking(at:)

Stops speech at the boundary you specify.

Declaration

func stopSpeaking(at boundary: AVSpeechBoundary) -> Bool

Parameters

  • boundary:

    An enumeration that describes whether to stop speech immediately or only after the synthesizer finishes speaking the current word.

Return Value

true if speech stops; otherwise, false.

Discussion

Unlike pausing a speech synthesizer, which can resume after a pause, stopping the synthesizer immediately cancels speech and removes all unspoken utterances from the synthesizer’s queue.

See Also

Controlling speech