ailiaVoiceSetModelType method

int ailiaVoiceSetModelType(
  1. Pointer<AILIAVoice> net,
  2. int model_type
)

~japanese @brief G2Pで使用するモデルタイプを設定します。 @param net ボイスオブジェクトポインタ @param model_type モデルタイプ(AILIA_VOICE_MODEL_TYPE_GPT_SOVITS, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details G2Pを単独で使用する際に、モデルファイルを与えずにモデルタイプを設定することに使用します。 ailiaVoiceOpenModelFileAまたはailiaVoiceOpenGPTSoVITSV3ModelFileAを呼び出した場合は自動的に設定されるため、本APIの呼び出しは不要です。

~english @brief Set the model type used for G2P processing. @param net A Voice instance pointer @param model_type Model type (AILIA_VOICE_MODEL_TYPE_GPT_SOVITS, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details Used to set the model type when using G2P standalone without opening model files. If ailiaVoiceOpenModelFileA or ailiaVoiceOpenGPTSoVITSV3ModelFileA is called, the model type is set automatically, so calling this API is not required.

Implementation

int ailiaVoiceSetModelType(
  ffi.Pointer<AILIAVoice> net,
  int model_type,
) {
  return _ailiaVoiceSetModelType(
    net,
    model_type,
  );
}