ailiaVoiceOpenGPTSoVITSV3ModelFileA method
~japanese @brief GPT-SoVITS V3向けのモデルを指定します。(MBSC) @param net ネットワークオブジェクトポインタ @param encoder_path onnxファイルのパス名 (t2s_encoder.onnx) (MBSC) @param decoder1_path onnxファイルのパス名 (t2s_fsdec.onnx) (MBSC) @param decoder2_path onnxファイルのパス名 (t2s_sdec.onnx) (MBSC) @param ssl_path onnxファイルのパス名 (cnhubert.onnx) (MBSC) @param vq_path onnxファイルのパス名 (vq_model.onnx) (MBSC) @param cfm_path onnxファイルのパス名 (vq_cfm.onnx) (MBSC) @param bigvgan_path onnxファイルのパス名 (bigvgan_model.onnx) (MBSC) @param chinese_bert onnxファイルのパス名 (chinese-roberta.onnx) (MBSC)(NULLの場合はBERTを使用しない) @param vocab vocab.txtのパス名 (MBSC)(NULLの場合はBERTを使用しない) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
~english @brief Set GPT-SoVITS V3 models into a network instance. @param net A network instance pointer @param encoder The path name to the onnx file (t2s_encoder.onnx) (MBSC) @param decoder1 The path name to the onnx file (t2s_fsdec.onnx) (MBSC) @param decoder2 The path name to the onnx file (t2s_sdec.onnx) (MBSC) @param ssl The path name to the onnx file (cnhubert.onnx) (MBSC) @param vq The path name to the onnx file (vq_model.onnx) (MBSC) @param cfm The path name to the onnx file (vq_cfm.onnx) (MBSC) @param bigvgan The path name to the onnx file (bigvgan_model.onnx) (MBSC) @param chinese_bert The path name to the onnx file (chinese-roberta.onnx) (MBSC) (NULL to disable BERT) @param vocab The path name to the vocab file (vocab.txt) (MBSC) (NULL to disable BERT) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.
Implementation
int ailiaVoiceOpenGPTSoVITSV3ModelFileA(
ffi.Pointer<AILIAVoice> net,
ffi.Pointer<ffi.Char> encoder,
ffi.Pointer<ffi.Char> decoder1,
ffi.Pointer<ffi.Char> decoder2,
ffi.Pointer<ffi.Char> ssl,
ffi.Pointer<ffi.Char> vq,
ffi.Pointer<ffi.Char> cfm,
ffi.Pointer<ffi.Char> bigvgan,
ffi.Pointer<ffi.Char> chinese_bert,
ffi.Pointer<ffi.Char> vocab,
) {
return _ailiaVoiceOpenGPTSoVITSV3ModelFileA(
net,
encoder,
decoder1,
decoder2,
ssl,
vq,
cfm,
bigvgan,
chinese_bert,
vocab,
);
}