[−][src]Function deepspeech_sys::DS_SpeechToTextWithMetadata
pub unsafe extern "C" fn DS_SpeechToTextWithMetadata(
aCtx: *mut ModelState,
aBuffer: *const c_short,
aBufferSize: c_uint,
aSampleRate: 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. @param aBufferSize The number of samples in the audio signal. @param aSampleRate The sample-rate of 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.