Defines a pointer to a word callback function
that is called by the Speech Synthesis Manager before it pronounces
The speech channel that has finished processing
The reference constant associated with the
The number of bytes between the beginning
of the text buffer and the beginning of the word about to be pronounced.
The length in bytes of the word about to be
The Speech Synthesis Manager calls a speech channel’s word
callback function just before it pronounces a word. You might use
such a callback function, for example, to draw the word about to
be spoken in a window. In this case, the callback function would
set a global flag variable to indicate that the word being spoken
is changing and another two global variables to wordPos and wordLen.
A function called by your application’s main event loop could
detect that the word being spoken is changing and draw the word
in a window.
You can specify a word callback function by passing the soWordCallBack selector
to the SetSpeechInfo function.