ailiaSpeechOpenPostProcessFileW method
Set AI model for post process (UTF16)
Parameters:
net: A network instance pointerencoder_path: The path name to the onnx file (UTF16)decoder_path: The path name to the onnx file (UTF16)source_path: The path name to the tokenizer model file (UTF16)target_path: The path name to the tokenizer model file (UTF16)prefix: The prefix of T5 (UTF8), NULL for FuguMTpost_process_type: AILIA_SPEECH_POST_PROCESS_TYPE_*
Returns:
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Implementation
int ailiaSpeechOpenPostProcessFileW(
ffi.Pointer<AILIASpeech> net,
ffi.Pointer<ffi.WChar> encoder_path,
ffi.Pointer<ffi.WChar> decoder_path,
ffi.Pointer<ffi.WChar> source_path,
ffi.Pointer<ffi.WChar> target_path,
ffi.Pointer<ffi.Char> prefix,
int post_process_type,
) {
return _ailiaSpeechOpenPostProcessFileW(
net,
encoder_path,
decoder_path,
source_path,
target_path,
prefix,
post_process_type,
);
}