Begins speaking a string represented as a
- macOS 10.5+
The speech channel through which speech is to be spoken.
The string to be spoken, represented as a
An optional dictionary of key-value pairs used to customize speech behavior. See Synthesizer Option Keys for the available keys.
A result code. See Result Codes.
Speak function is the Core Foundation-based equivalent of the
Speak function converts the text string specified in
a into speech, using the voice and control settings in effect for the speech channel specified in
chan. (Before you use
Speak, therefore, be sure you’ve created a speech channel with the
New function.) The
Speak function generates speech asynchronously, which means that control is returned to your application before speech has finished, perhaps even before the speech is first audible.
Speak is called while the speech channel is currently speaking the contents of another text string, the speech stops immediately and the new text string is spoken as soon as possible.