Instance Method

stopSpeakingAtBoundary:

Stops all speech at the specified boundary constraint.

Declaration

- (BOOL)stopSpeakingAtBoundary:(AVSpeechBoundary)boundary;

Parameters

boundary

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

Return Value

YES if speech has stopped, or NO 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

- continueSpeaking

Continues speech from the point at which it left off.

- pauseSpeakingAtBoundary:

Pauses speech at the specified boundary constraint.

paused

A Boolean value that indicates whether speech has been paused.

speaking

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