[][src]Function deepspeech_sys::DS_SpeechToTextWithMetadata

pub unsafe extern "C" fn DS_SpeechToTextWithMetadata(
    aCtx: *mut ModelState,
    aBuffer: *const c_short,
    aBufferSize: c_uint
) -> *mut Metadata

@brief Use the DeepSpeech model to perform Speech-To-Text and output metadata about the results.

@param aCtx The ModelState pointer for the model to use. @param aBuffer A 16-bit, mono raw audio signal at the appropriate sample rate (matching what the model was trained on). @param aBufferSize The number of samples in the audio signal.

@return Outputs a struct of individual letters along with their timing information. The user is responsible for freeing Metadata by calling {@link DS_FreeMetadata()}. Returns NULL on error.