L_ASRRecognizer_AcceptWaveformData

Summary

Feeds waveform samples into the transcribing engine. The samples should be 16-bit, mono, and at 16Khz or 8Khz sample rate.

Syntax

#include "ltasr.h"

L_LTASR_API L_INT L_ASRRecognizer_AcceptWaveformData(recognizer, data, endPointDetected)

Parameters

L_ASRRecognizer recognizer

The speech recognizer handle.

const L_ASRWaveformData *data

Pointer to a structure represents the audio data from the live source.

L_BOOL *endPointDetected

When L_TRUE, it means silence or safe stopping point has been detected. This means subsequent audio samples feed will not cause the former text to be modified or updated.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

At endPointDetected = L_TRUE, you can safely call L_ASRRecognizer_GetResult() to acquire whatever text was transcribed up to this point. Calling L_ASRRecognizer_GetResult() will free up the memory as if restarting the process all over again. When endPointDetected = L_FALSE, you may call L_ASRRecognizer_GetPartialResult() to peek into the temporary results the engine has.

Required DLLs and Libraries

Platforms

x64.

See Also

Functions

Topics

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2025 Apryse Sofware Corp. All Rights Reserved.
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2025 Apryse Sofware Corp. All Rights Reserved.