ailiaSpeechOpenPostProcessFileA method

int ailiaSpeechOpenPostProcessFileA(
  1. Pointer<AILIASpeech> net,
  2. Pointer<Char> encoder_path,
  3. Pointer<Char> decoder_path,
  4. Pointer<Char> source_path,
  5. Pointer<Char> target_path,
  6. Pointer<Char> prefix,
  7. int post_process_type
)

Set AI model for post process (MBSC)

Parameters:

  • net: A network instance pointer
  • encoder_path: The path name to the onnx file (MBSC)
  • decoder_path: The path name to the onnx file (MBSC)
  • source_path: The path name to the tokenizer model file (MBSC)
  • target_path: The path name to the tokenizer model file (MBSC)
  • prefix: The prefix of T5 (UTF8), NULL for FuguMT
  • post_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 ailiaSpeechOpenPostProcessFileA(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.Char> encoder_path,
  ffi.Pointer<ffi.Char> decoder_path,
  ffi.Pointer<ffi.Char> source_path,
  ffi.Pointer<ffi.Char> target_path,
  ffi.Pointer<ffi.Char> prefix,
  int post_process_type,
) {
  return _ailiaSpeechOpenPostProcessFileA(
    net,
    encoder_path,
    decoder_path,
    source_path,
    target_path,
    prefix,
    post_process_type,
  );
}