Defines a pointer to a synchronization callback function that is called when the Speech Synthesis Manager encounters a synchronization command embedded in a text buffer.
- macOS 10.0+
The speech channel that has finished processing input text.
The reference constant associated with the speech channel.
The synchronization message passed in the embedded command. Usually, you use this message to distinguish between several different types of synchronization commands, but you can use it any way you wish.
The Speech Synthesis Manager calls a speech channel’s synchronization
callback function whenever it encounters a synchronization command
embedded in a text buffer. You might use the synchronization callback
function to provide a callback not ordinarily provided. For example,
you might inset synchronization commands at the end of every sentence
in a text buffer, or you might enter synchronization commands after
every numeric value in the text. However, to synchronize your application
with phonemes or words, it makes more sense to use the built-in
phoneme and word callback functions, defined in
You can specify a synchronization callback function by passing
so selector to
and embedding a synchronization command within a text buffer passed