ailiaVoiceOpenGPTSoVITSV2ModelFileW method

int ailiaVoiceOpenGPTSoVITSV2ModelFileW(
  1. Pointer<AILIAVoice> net,
  2. Pointer<WChar> encoder,
  3. Pointer<WChar> decoder1,
  4. Pointer<WChar> decoder2,
  5. Pointer<WChar> wave,
  6. Pointer<WChar> ssl,
  7. Pointer<WChar> chinese_bert,
  8. Pointer<WChar> vocab,
)

~japanese @brief GPT-SoVITS V2向けのモデルを指定します。(UTF16) @param net ネットワークオブジェクトポインタ @param encoder onnxファイルのパス名 (t2s_encoder.onnx) (UTF16) @param decoder1 onnxファイルのパス名 (t2s_fsdec.onnx) (UTF16) @param decoder2 onnxファイルのパス名 (t2s_sdec.onnx) (UTF16) @param wave onnxファイルのパス名 (vits.onnx) (UTF16) @param ssl onnxファイルのパス名 (cnhubert.onnx) (UTF16) @param chinese_bert onnxファイルのパス名 (chinese-roberta.onnx) (UTF16)(NULLの場合はBERTを使用しない) @param vocab vocab.txtのパス名 (UTF16)(NULLの場合はBERTを使用しない) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。

~english @brief Set GPT-SoVITS V2 models into a network instance. @param net A network instance pointer @param encoder The path name to the onnx file (t2s_encoder.onnx) (UTF16) @param decoder1 The path name to the onnx file (t2s_fsdec.onnx) (UTF16) @param decoder2 The path name to the onnx file (t2s_sdec.onnx) (UTF16) @param wave The path name to the onnx file (vits.onnx) (UTF16) @param ssl The path name to the onnx file (cnhubert.onnx) (UTF16) @param chinese_bert The path name to the onnx file (chinese-roberta.onnx) (UTF16) (NULL to disable BERT) @param vocab The path name to the vocab file (vocab.txt) (UTF16) (NULL to disable BERT) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaVoiceOpenGPTSoVITSV2ModelFileW(
  ffi.Pointer<AILIAVoice> net,
  ffi.Pointer<ffi.WChar> encoder,
  ffi.Pointer<ffi.WChar> decoder1,
  ffi.Pointer<ffi.WChar> decoder2,
  ffi.Pointer<ffi.WChar> wave,
  ffi.Pointer<ffi.WChar> ssl,
  ffi.Pointer<ffi.WChar> chinese_bert,
  ffi.Pointer<ffi.WChar> vocab,
) {
  return _ailiaVoiceOpenGPTSoVITSV2ModelFileW(
    net,
    encoder,
    decoder1,
    decoder2,
    wave,
    ssl,
    chinese_bert,
    vocab,
  );
}