Terminates speech delivery on a specified channel either immediately or at the end of the current word or sentence.
- macOS 10.0+
The speech channel on which speech is to be stopped.
A constant indicating when speech processing should stop. Pass the constant
kto stop immediately, even in the middle of a word. Pass
End Of Word
kto stop speech at the end of the current word or sentence, respectively.
End Of Sentence
A result code. See Result Codes.
halts the production of speech on the channel specified by
a specified point in the text. This function returns immediately,
although speech output continues until the specified point has been
If you call the
before the Speech Synthesis Manager finishes processing input text,
then the function might return before some input text has yet to
be spoken. Thus, before disposing of the text buffer, your application
should wait until its text-done callback function has been called
(if one has been defined), or until it can determine (by, for example
obtaining a speech status information structure) that the Speech
Synthesis Manager is no longer processing input text.
If the end of the input text buffer is reached before the specified stopping point, the speech synthesizer stops at the end of the buffer without generating an error.