Copy an utterance to the specified buffer.
#include "asr/asr.h"
int asr_set_utterance(asr_audio_info_t *audio_info, uint32_t ms_offset)
Indicates the structure in which to store the utterance.
The offset (in milliseconds) of the utterance.
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.
0 Success.
EBUSY Capture has not completed.
EINVAL The audio properties don't match.
ERANGE Buffer overrun.