ailiaVoiceOpenDictionaryFileW method

int ailiaVoiceOpenDictionaryFileW(
  1. Pointer<AILIAVoice> net,
  2. Pointer<WChar> dictionary_path,
  3. int dictionary_type
)

~japanese @brief 辞書を指定します。(UTF16) @param net ネットワークオブジェクトポインタ @param dictionary_path 辞書フォルダのパス名(UTF16) @param dictionary_type AILIA_VOICE_DICTIONARY_TYPE_* @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details 中国語を使用する場合、GPT-SoVITS V1では \ref AILIA_VOICE_DICTIONARY_TYPE_G2P_CN のみ必要です。 GPT-SoVITS V2およびV3では \ref AILIA_VOICE_DICTIONARY_TYPE_G2P_CN と \ref AILIA_VOICE_DICTIONARY_TYPE_G2PW の両方が必要です。 G2PWを使用する場合、先にG2P_CNを読み込んでください。

~english @brief Set dictionary into a network instance. @param net A network instance pointer @param dictionary_path The path name to the dictionary folder (UTF16) @param dictionary_type AILIA_VOICE_DICTIONARY_TYPE_* @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details For Chinese, GPT-SoVITS V1 requires only \ref AILIA_VOICE_DICTIONARY_TYPE_G2P_CN . GPT-SoVITS V2 and V3 require both \ref AILIA_VOICE_DICTIONARY_TYPE_G2P_CN and \ref AILIA_VOICE_DICTIONARY_TYPE_G2PW . When using G2PW, load G2P_CN first.

Implementation

int ailiaVoiceOpenDictionaryFileW(
  ffi.Pointer<AILIAVoice> net,
  ffi.Pointer<ffi.WChar> dictionary_path,
  int dictionary_type,
) {
  return _ailiaVoiceOpenDictionaryFileW(
    net,
    dictionary_path,
    dictionary_type,
  );
}