Transcribes audio from a live source, such as a microphone.
#include "ltasr.h"
L_LTASR_API L_INT L_ASREngine_RecognizeData(engine, data, result)
The speech recognition engine handle.
Pointer to a structure represents the audio data from the live source.
Pointer to a structure to be updated with the recognized words.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To transcribe a media file with audio stream into text, call L_ASREngine_RecognizeFile.
When the recognized words referenced by result
parameter are no longer needed, it must be freed by calling L_ASRResult_Free.
x64.