Transcribes a media file with audio stream into text.
#include "ltasr.h"
L_LTASR_API L_INT L_ASREngine_RecognizeFile(engine, file, result)
The speech recognition engine handle.
A character string that contains the media file that has audio stream.
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 audio from a live source, call L_ASREngine_RecognizeData.
When the recognized words referenced by result
parameter are no longer needed, it must be freed by calling L_ASRResult_Free.
x64.