[−][src]Function deepspeech_sys::DS_SpeechToTextWithMetadata
pub unsafe extern "C" fn DS_SpeechToTextWithMetadata(
aCtx: *mut ModelState,
aBuffer: *const c_short,
aBufferSize: c_uint,
aNumResults: c_uint
) -> *mut Metadata
@brief Use the DeepSpeech model to convert speech to text and output results including metadata.
@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. @param aNumResults The maximum number of CandidateTranscript structs to return. Returned value might be smaller than this.
@return Metadata struct containing multiple CandidateTranscript structs. Each transcript has per-token metadata including timing information. The user is responsible for freeing Metadata by calling {@link DS_FreeMetadata()}. Returns NULL on error.