Defines a pointer to an error callback function that handles syntax errors within commands embedded in a text buffer being processed by the Speech Synthesis Manager.
- macOS 10.0+
The speech channel that has finished processing input text.
The reference constant associated with the speech channel.
The error that occurred in processing an embedded command.
The number of bytes from the beginning of the text buffer being spoken to the error encountered.
The Speech Synthesis Manager calls a speech channel’s error callback function whenever it encounters a syntax error within a command embedded in a text buffer it is processing. This can be useful during application debugging, to detect problems with commands that you have embedded in text buffers that your application speaks. It can also be useful if your application allows users to embed commands within text buffers. Your application might display an alert indicating that the Speech Synthesis Manager encountered a problem in processing an embedded command.
Ordinarily, the error information that the Speech Synthesis
Manager provides the error callback function should be sufficient.
However, if your application needs information about errors that
occurred before the error callback function was enabled, the application (including
the error callback function) can call the
You can specify an error callback function by passing the