Avaya Logo

Previous Topic

Next Topic

Book Contents

Book Index

recog_cntl

The recog_cntl instruction disables or enables a recognizer.

Synopsis

recog_cntl(type.recognizer, type.command)

Description

The recog_cntl instruction allows an application to control recognizer behavior. The argument type.recognizer indicates the recognizer to operate on. The argument type.command indicates the operation to perform on the recognizer. The following are valid commands:

0

Disables the recognizer. When a recognizer is disabled, it is not queued for starting when recog_start is called, that is, the call to recog_start is ignored (fails) until the recognizer is enabled.

1

Enables the recognizer. By default, all recognizers are enabled so execution of recog_cntl is not necessarily required. When a recognizer is enabled, it is queued for starting when recog_start is called.

Return values

The disposition of the call to recog_cntl is indicated through register r.0 as follows:

0

Indicates success.

-1

Only in the case where command is zero, indicates that the maximum number of recognizers have been disabled.

-2

Indicates that the command is not implemented.

See also

© 2006 Avaya Inc. All Rights Reserved.