asr_connect()

Connect the recognition module to io-asr.

Synopsis:

#include "asr/mod_types.h"
 
asr_recognizer_hdl_t* asr_connect(const asr_recognizer_if_t *rif, unsigned len)

Arguments:

rif

The initialized recognizer interface. The name, version, and callbacks in the interface must be set.

len

The size of the recognizer interface.

Library:

libasr

Description:

The asr_connect() function adds the specified recognizer to io-asr's list of registered modules, and then attaches the specified interface to the new handle.

Returns:

The recognizer handle on success; NULL on error.