Important: The information in this document is obsolete and should not be used for new development.
SRIdle
You can use theSRIdle
function to grant processing time to the Speech Recognition Manager if your application does not callWaitNextEvent
frequently.
pascal OSErr SRIdle (void);DESCRIPTION
TheSRIdle
function 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 theSRIdle
function. You need to call it only if your application does a significant amount of processing without periodically callingWaitNextEvent
. If you do use theSRIdle
function, you should call it often enough that the Speech Recognition Manager can perform its work.Note, however, that if you call
SRIdle
and notWaitNextEvent
, you give time to the recognizer but not to the feedback window. You must callWaitNextEvent
periodically to have the feedback animations work correctly if your recognizer is using the standard feedback window.