Instance Method

stopSpeaking(at:)

Stops all speech at the specified boundary constraint.

Declaration

func stopSpeaking(at boundary: AVSpeechBoundary) -> Bool

Parameters

boundary

A constant describing whether speech should stop immediately or only after finishing the word currently being spoken.

Return Value

true if speech has stopped, or false otherwise.

Discussion

Stopping the synthesizer cancels any further speech; in constrast with when the synthesizer is paused, speech cannot be resumed where it left off. Any utterances yet to be spoken are removed from the synthesizer’s queue.

See Also

Controlling Speech Synthesis

func continueSpeaking() -> Bool

Continues speech from the point at which it left off.

func pauseSpeaking(at: AVSpeechBoundary) -> Bool

Pauses speech at the specified boundary constraint.

var isPaused: Bool

A Boolean value that indicates whether speech has been paused.

var isSpeaking: Bool

A Boolean value that indicates whether the synthesizer is speaking.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software