ailiaSpeechOpenDiarizationFileW method

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

Set AI model for speaker diarization (UTF16)

Parameters:

  • net: A network instance pointer
  • segmentation_path: The path name to the onnx file (UTF16)
  • embedding_path: The path name to the onnx file (UTF16)
  • 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 ailiaSpeechOpenDiarizationFileW(
  ffi.Pointer<AILIASpeech> net,
  ffi.Pointer<ffi.WChar> segmentation_path,
  ffi.Pointer<ffi.WChar> embedding_path,
  int type,
) {
  return _ailiaSpeechOpenDiarizationFileW(
    net,
    segmentation_path,
    embedding_path,
    type,
  );
}