openModel

fun openModel(encoderPath: String, decoderPath: String, modelType: Int): Int

Opens the speech recognition model files.

Return

0 if successful, otherwise an error code.

Parameters

encoderPath

Path to the encoder model file.

decoderPath

Path to the decoder model file.

modelType

Type of the model, one of the AILIA_SPEECH_MODEL_TYPE_* constants.