Important: The information in this document is obsolete and should not be used for new development.
SRIdle
You can use theSRIdlefunction to grant processing time to the Speech Recognition Manager if your application does not callWaitNextEventfrequently.
pascal OSErr SRIdle (void);DESCRIPTION
TheSRIdlefunction grants processing time to the Speech Recognition Manager, thereby allowing it to process incoming sound and send recognition results.SPECIAL CONSIDERATIONS
Most applications do not need to call theSRIdlefunction. You need to call it only if your application does a significant amount of processing without periodically callingWaitNextEvent. If you do use theSRIdlefunction, you should call it often enough that the Speech Recognition Manager can perform its work.Note, however, that if you call
SRIdleand notWaitNextEvent, you give time to the recognizer but not to the feedback window. You must callWaitNextEventperiodically to have the feedback animations work correctly if your recognizer is using the standard feedback window.