pub unsafe extern "C" fn DS_SpeechToText(
    aCtx: *mut ModelState,
    aBuffer: *const c_short,
    aBufferSize: c_uint,
    aSampleRate: c_uint
) -> *mut c_char
Expand description

@brief Use the DeepSpeech model to perform Speech-To-Text.

@param aCtx The ModelState pointer for the model to use. @param aBuffer A 16-bit, mono raw audio signal at the appropriate sample rate. @param aBufferSize The number of samples in the audio signal. @param aSampleRate The sample-rate of the audio signal.

@return The STT result. The user is responsible for freeing the string. Returns NULL on error.