[−][src]Function deepspeech_sys::DS_CreateModel
pub unsafe extern "C" fn DS_CreateModel(
aModelPath: *const c_char,
aNCep: c_uint,
aNContext: c_uint,
aAlphabetConfigPath: *const c_char,
aBeamWidth: c_uint,
retval: *mut *mut ModelState
) -> c_int
@brief An object providing an interface to a trained DeepSpeech model.
@param aModelPath The path to the frozen model graph. @param aNCep The number of cepstrum the model was trained with. @param aNContext The context window the model was trained with. @param aAlphabetConfigPath The path to the configuration file specifying the alphabet used by the network. See alphabet.h. @param aBeamWidth The beam width used by the decoder. A larger beam width generates better results at the cost of decoding time. @param[out] retval a ModelState pointer
@return Zero on success, non-zero on failure.