asrm_get_utterance()

Capture an utterance.

Synopsis:

#include "asr/asrm.h"
 
int asrm_get_utterance(asr_module_hdl_t *mod, asr_audio_info_t *audio_info)

Arguments:

mod

A pointer to the module handle (optional).

audio_info

The structure in which to store the utterance and set the properties.

Library:

libasr

Description:

The asrm_get_utterance() function stores an audio sample in the buffer referenced by the audio_info parameter by invoking the asra_get_utterance() function.

Returns:

0 Success.

-1 An error occurred.