Sent to the delegate when a speech synthesizer encounters an error in text being synthesized.
- macOS 10.5+
Speech synthesizer informing its delegate of an error.
Location in text where the receiver encountered the error.
Text the receiver was synthesizing when the error occurred.
The synthesizer sends an error delegate message whenever it encounters a syntax error within a command embedded in the string it is processing. This can be useful during application debugging, to detect problems with commands that you have embedded in strings that your application speaks. It can also be useful if your application allows users to embed commands within strings. Your application might display an alert indicating that the synthesizer encountered a problem in processing an embedded command.
If your application needs information about errors that occurred prior to calling your error delegate method, the application (including the error delegate method) can call the sender’s
object method with the