ailiaVoiceOpenDictionaryFileA method
- Pointer<
AILIAVoice> net, - Pointer<
Char> dictionary_path, - int dictionary_type
~japanese @brief 辞書を指定します。(MBSC) @param net ネットワークオブジェクトポインタ @param dictionary_path 辞書フォルダのパス名(MBSC) @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 (MBSC) @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 ailiaVoiceOpenDictionaryFileA(
ffi.Pointer<AILIAVoice> net,
ffi.Pointer<ffi.Char> dictionary_path,
int dictionary_type,
) {
return _ailiaVoiceOpenDictionaryFileA(
net,
dictionary_path,
dictionary_type,
);
}