Instance Method

pauseSpeakingAtBoundary:

Pauses synthesis in progress at a given boundary.

Declaration

- (void)pauseSpeakingAtBoundary:(NSSpeechBoundary)boundary;

Parameters

boundary

Boundary at which to pause speech. The supported bound types are listed in NSSpeechBoundary.

Discussion

Pass the constant NSSpeechImmediateBoundary to pause immediately, even in the middle of a word. Pass NSSpeechWordBoundary or NSSpeechSentenceBoundary to pause speech at the end of the current word or sentence, respectively.

You can determine whether your application has paused a synthesizer's speech output by obtaining the NSSpeechStatusProperty property through the objectForProperty:error: method. While a synthesizer is paused, the speech status information indicates that NSSpeechStatusOutputBusy and NSSpeechStatusOutputPaused are both YES.

If the end of the string being spoken is reached before the specified pause point, speech output pauses at the end of the string.

See Also

Synthesizing Speech

speaking

Indicates whether the receiver is currently generating synthesized speech.

- startSpeakingString:

Begins speaking synthesized text through the system’s default sound output device.

- startSpeakingString:toURL:

Begins synthesizing text into a sound (AIFF) file.

- continueSpeaking

Resumes synthesis.

- stopSpeaking

Stops synthesis in progress.

- stopSpeakingAtBoundary:

Stops synthesis in progress at a given boundary.

NSSpeechBoundary

These constants are used to indicate where speech should be stopped and paused. See pauseSpeakingAtBoundary: and stopSpeakingAtBoundary:.