asr_set_utterance()

Copy an utterance to the specified buffer.

Synopsis:

#include "asr/asr.h"
 
int asr_set_utterance(asr_audio_info_t *audio_info, uint32_t ms_offset)

Arguments:

audio_info

Indicates the structure in which to store the utterance.

ms_offset

The offset (in milliseconds) of the utterance.

Library:

libasr

Description:

The asr_set_utterance() function invokes the set_utterance() callback function defined in the recognizer interface, asr_recognizer_if. If no set_utterance() function is defined in the recognizer interface, the set_utterance() callback function defined in the audio interface, asra_module_interface, is invoked instead.

Returns:

0 Success.

EBUSY Capture has not completed.

EINVAL The audio properties don't match.

ERANGE Buffer overrun.