asrm_context_add_entries()

Add context entries.

Synopsis:

#include "asr/asrm.h"
 
int asrm_context_add_entries(asr_context_hdl_t *chdl, const char *slot_identifier_section, const char *slot_name, asr_slot_entry_t *slot_entry, int num_slot_entries)

Arguments:

chdl

A pointer to the handle of the context to add entries to.

slot_identifier_section

The configuration node for the section required (e.g., "phone").

slot_name

The name of the slot to add (e.g., "voice dialing").

slot_entry

An array of slot entries.

num_slot_entries

The size of the array of slot entries.

Library:

libasr

Description:

The asrm_context_add_entries() function adds entries to the specified context by first finding the configuration node identified by the slot_identifier_section, then invoking the current recognition module's context_add_entries() callback function on that configuration node. The exact implementation of the context_add_entries() callback function depends on the ASR vendor.

Returns:

0 Success.

<0 An error occurred.