ailiaSpeechOpenDiarizationFileA method

int ailiaSpeechOpenDiarizationFileA(
  1. Pointer<AILIASpeech> net,
  2. Pointer<Char> segmentation_path,
  3. Pointer<Char> embedding_path,
  4. int type
)

Set AI model for speaker diarization (MBSC)

Parameters:

  • net: A network instance pointer
  • segmentation_path: The path name to the onnx file (MBSC)
  • embedding_path: The path name to the onnx file (MBSC)
  • type: AILIA_SPEECH_DIARIZATION_TYPE_PYANNOTE_AUDIO

Returns:

If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaSpeechOpenDiarizationFileA(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.Char> segmentation_path,
  ffi.Pointer<ffi.Char> embedding_path,
  int type,
) {
  return _ailiaSpeechOpenDiarizationFileA(
    net,
    segmentation_path,
    embedding_path,
    type,
  );
}