Previous Book Contents Book Index Next

Inside Macintosh: Sound /
Chapter 4 - Speech Manager / Speech Manager Reference


Legacy Documentclose button

Important: Inside Macintosh: Sound is deprecated as of Mac OS X v10.5. For new audio development in Mac OS X, use Core Audio. See the Audio page in the ADC Reference Library.

Application-Defined Routines

The Speech Manager allows you to define callback procedures that execute

WARNING
When the Speech Manager executes a callback procedure, the Speech Manager sets the A5 register to the value specified by the most recent call to the SetSpeechInfo function with the soCurrentA5 selector. However, if the most recent value specified with the soCurrentA5 selector is NIL or if your application has not yet specified a value, then the Speech Manager leaves the A5 register unchanged. In this case, the callback procedure cannot access application global variables because it executes at interrupt time. For code showing how to use the soCurrentA5 selector to ensure that the A5 register is set to your application's A5, see Listing 4-6 on page 4-21.

Subtopics
Text-Done Callback Procedure
Speech-Done Callback Procedure
Synchronization Callback Procedure
Error Callback Procedure
Phoneme Callback Procedure
Word Callback Procedure

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996