|
ailia_voice
1.5.0.0
|
クラス | |
| struct | AILIAVoiceApiCallback |
公開メンバ関数 | |
| delegate int | ailiaCallbackAudioResample (IntPtr a, IntPtr b, int c, int d, int e, int f) |
| delegate int | ailiaCallbackAudioGetResampleLen (IntPtr a, int b, int c, int d) |
| delegate int | ailiaCallbackCreate (IntPtr a, int b, int c) |
| delegate int | ailiaCallbackOpenWeightFileA (IntPtr a, IntPtr b) |
| delegate int | ailiaCallbackOpenWeightFileW (IntPtr a, IntPtr b) |
| delegate int | ailiaCallbackOpenWeightMem (IntPtr a, IntPtr b, UInt32 c) |
| delegate int | ailiaCallbackSetMemoryMode (IntPtr a, UInt32 b) |
| delegate void | ailiaCallbackDestroy (IntPtr a) |
| delegate int | ailiaCallbackUpdate (IntPtr a) |
| delegate int | ailiaCallbackGetBlobIndexByInputIndex (IntPtr a, IntPtr b, uint c) |
| delegate int | ailiaCallbackGetBlobIndexByOutputIndex (IntPtr a, IntPtr b, uint c) |
| delegate int | ailiaCallbackGetBlobData (IntPtr a, IntPtr b, uint c, uint d) |
| delegate int | ailiaCallbackSetInputBlobData (IntPtr a, IntPtr b, uint c, uint d) |
| delegate int | ailiaCallbackSetInputBlobShape (IntPtr a, Ailia.AILIAShape b, uint c, uint d) |
| delegate int | ailiaCallbackGetBlobShape (IntPtr a, IntPtr b, uint c, uint d) |
| delegate int | ailiaCallbackGetInputBlobCount (IntPtr a, IntPtr b) |
| delegate int | ailiaCallbackGetOutputBlobCount (IntPtr a, IntPtr b) |
| delegate IntPtr | ailiaCallbackGetErrorDetail (IntPtr a) |
| delegate int | ailiaCallbackCopyBlobData (IntPtr a, uint b, IntPtr c, uint d) |
| delegate int | ailiaCallbackAudioGetFrameLen (IntPtr a, int b, int c, int d, int e) |
| delegate int | ailiaCallbackAudioGetSpectrogram (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, float j, int k) |
| delegate int | ailiaCallbackAudioGetMelSpectrogram (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, int j, float k, int l, float m, float n, int o, int p, int q) |
| static int | ailiaCreate (IntPtr net, int env_id, int num_thread) |
| static int | ailiaOpenWeightFileW (IntPtr net, IntPtr path) |
| static int | ailiaOpenWeightFileA (IntPtr net, IntPtr path) |
| static int | ailiaOpenWeightMem (IntPtr net, IntPtr buf, uint buf_size) |
| static int | ailiaGetBlobIndexByInputIndex (IntPtr net, IntPtr blob_idx, UInt32 input_blob_idx) |
| static int | ailiaGetBlobIndexByOutputIndex (IntPtr net, IntPtr blob_idx, UInt32 output_blob_idx) |
| static int | ailiaGetBlobShape (IntPtr net, IntPtr shape, UInt32 blob_idx, UInt32 version) |
| static int | ailiaGetInputBlobCount (IntPtr net, IntPtr shape) |
| static int | ailiaGetOutputBlobCount (IntPtr net, IntPtr shape) |
| static int | ailiaAudioResample (IntPtr a, IntPtr b, int c, int d, int e, int f) |
| static int | ailiaAudioGetResampleLen (IntPtr a, int b, int c, int d) |
| static int | ailiaAudioGetFrameLen (IntPtr a, int b, int c, int d, int e) |
| static int | ailiaAudioGetSpectrogram (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, float j, int k) |
| static int | ailiaAudioGetMelSpectrogram (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, int j, float k, int l, float m, float n, int o, int p, int q) |
| static int | ailiaVoiceCreate (ref IntPtr net, int env_id, int num_thread, int memory_mode, int flags, AILIAVoiceApiCallback callback, int version) |
| ボイスオブジェクトを作成します。 [詳解] | |
| static int | ailiaVoiceSetUserDictionaryFile (IntPtr net, string dictionary_path, int dictionary_type) |
| ユーザ辞書を指定します。(MBSC) [詳解] | |
| static int | ailiaVoiceOpenDictionaryFile (IntPtr net, string dictionary_path, int dictionary_type) |
| 辞書を指定します。 [詳解] | |
| static int | ailiaVoiceOpenModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string wave, string ssl, int model_type, int cleaner_type) |
| モデルを指定します。 [詳解] | |
| static int | ailiaVoiceOpenTacotron2ModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string wave, int cleaner_type) |
| GPT-SoVITS V3向けのモデルを指定します。 [詳解] | |
| static int | ailiaVoiceOpenGPTSoVITSV1ModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string wave, string ssl) |
| static int | ailiaVoiceOpenGPTSoVITSV2ModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string wave, string ssl, string chinese_bert, string vocab) |
| static int | ailiaVoiceOpenGPTSoVITSV3ModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string ssl, string vq, string cfm, string bigvgan, string chinese_bert, string vocab) |
| static int | ailiaVoiceOpenGPTSoVITSV2ProModelFile (IntPtr net, string encoder, string decoder1, string decoder2, string ssl, string vits, string sv, string chinese_bert, string vocab) |
| GPT-SoVITS V2-Pro向けのモデルを指定します。 [詳解] | |
| static int | ailiaVoiceSetSampleSteps (IntPtr net, int steps) |
| GPT-SoVITS v3のCFMサンプリングステップ数を設定します。 [詳解] | |
| static int | ailiaVoiceSetSpeed (IntPtr net, float speed) |
| 音声合成の速度を設定します。 [詳解] | |
| static int | ailiaVoiceSetModelType (IntPtr net, int model_type) |
| G2Pで使用するモデルタイプを設定します。 [詳解] | |
| static int | ailiaVoiceGraphemeToPhoneme (IntPtr net, IntPtr utf8, int g2p_type) |
| G2Pを行います。 [詳解] | |
| static int | ailiaVoiceExtractFullContext (IntPtr net, IntPtr utf8) |
| ExtractFullContextを行います。 [詳解] | |
| static int | ailiaVoiceGetFeatureLength (IntPtr net, ref uint len) |
| フィーチャーの長さを取得します。(NULL文字含む) [詳解] | |
| static int | ailiaVoiceGetFeatures (IntPtr net, IntPtr features, uint len) |
| フィーチャーを取得します。 [詳解] | |
| static int | ailiaVoiceSetReference (IntPtr net, IntPtr buf, uint buf_size, uint channels, uint sampling_rate, IntPtr features) |
| 0ショット音声合成のリファレンスとなる波形とテキストを設定します。 [詳解] | |
| static int | ailiaVoiceInference (IntPtr net, IntPtr utf8) |
| 推論を行います。 [詳解] | |
| static int | ailiaVoiceGetWaveInfo (IntPtr net, ref uint samples, ref uint channels, ref uint sampling_rate) |
| 波形の情報を取得します。 [詳解] | |
| static int | ailiaVoiceGetWave (IntPtr net, IntPtr buf, uint buf_size) |
| 波形を取得します。 [詳解] | |
| static void | ailiaVoiceDestroy (IntPtr net) |
| ボイスオブジェクトを破棄します。 [詳解] | |
| static IntPtr | ailiaVoiceGetErrorDetail (IntPtr net) |
| エラーの詳細を返します [詳解] | |
静的公開メンバ関数 | |
| static int | ailiaCallbackAudioResampleBridge (IntPtr a, IntPtr b, int c, int d, int e, int f) |
| static int | ailiaCallbackAudioGetResampleLenBridge (IntPtr a, int b, int c, int d) |
| static int | ailiaCallbackCreateBridge (IntPtr a, int b, int c) |
| static int | ailiaCallbackOpenWeightFileABridge (IntPtr a, IntPtr b) |
| static int | ailiaCallbackOpenWeightFileWBridge (IntPtr a, IntPtr b) |
| static int | ailiaCallbackOpenWeightMemBridge (IntPtr a, IntPtr b, uint c) |
| static int | ailiaCallbackSetMemoryModeBridge (IntPtr a, uint b) |
| static void | ailiaCallbackDestroyBridge (IntPtr a) |
| static int | ailiaCallbackUpdateBridge (IntPtr a) |
| static int | ailiaCallbackGetBlobIndexByInputIndexBridge (IntPtr a, IntPtr b, uint c) |
| static int | ailiaCallbackGetBlobIndexByOutputIndexBridge (IntPtr a, IntPtr b, uint c) |
| static int | ailiaCallbackGetBlobDataBridge (IntPtr a, IntPtr b, uint c, uint d) |
| static int | ailiaCallbackSetInputBlobDataBridge (IntPtr a, IntPtr b, uint c, uint d) |
| static int | ailiaCallbackSetInputBlobShapeBridge (IntPtr a, Ailia.AILIAShape b, uint c, uint d) |
| static int | ailiaCallbackGetBlobShapeBridge (IntPtr a, IntPtr b, uint c, uint d) |
| static int | ailiaCallbackGetInputBlobCountBridge (IntPtr a, IntPtr b) |
| static int | ailiaCallbackGetOutputBlobCountBridge (IntPtr a, IntPtr b) |
| static IntPtr | ailiaCallbackGetErrorDetailBridge (IntPtr a) |
| static int | ailiaCallbackCopyBlobDataBridge (IntPtr a, uint b, IntPtr c, uint d) |
| static int | ailiaCallbackAudioGetFrameLenBridge (IntPtr a, int b, int c, int d, int e) |
| static int | ailiaCallbackAudioGetSpectrogramBridge (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, float j, int k) |
| static int | ailiaCallbackAudioGetMelSpectrogramBridge (IntPtr a, IntPtr b, int c, int d, int e, int f, int g, int h, int i, int j, float k, int l, float m, float n, int o, int p, int q) |
| static AiliaVoice.AILIAVoiceApiCallback | GetCallback () |
静的公開変数類 | |
| const String | LIBRARY_NAME ="ailia_voice" |
| const Int32 | AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK = (0) |
| const Int32 | AILIA_VOICE_DICTIONARY_TYPE_G2P_EN = (1) |
| const Int32 | AILIA_VOICE_DICTIONARY_TYPE_G2P_CN = (2) |
| const Int32 | AILIA_VOICE_DICTIONARY_TYPE_G2PW = (3) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_TACOTRON2 = (0) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_GPT_SOVITS = (1) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2 = (2) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3 = (3) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO = (4) |
| const Int32 | AILIA_VOICE_CLEANER_TYPE_BASIC = (0) |
| const Int32 | AILIA_VOICE_CLEANER_TYPE_ENGLISH = (1) |
| const Int32 | AILIA_VOICE_FLAG_NONE = (0) |
| const Int32 | AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN = (1) |
| const Int32 | AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA = (2) |
| const Int32 | AILIA_VOICE_G2P_TYPE_GPT_SOVITS_ZH = (3) |
| const Int32 | AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION = (2) |
| const int | AILIA_VOICE_API_CALLBACK_VERSION = (3) |
| static int ailiaVoice.AiliaVoice.ailiaAudioGetFrameLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d, | ||
| int | e | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaAudioGetMelSpectrogram | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f, | ||
| int | g, | ||
| int | h, | ||
| int | i, | ||
| int | j, | ||
| float | k, | ||
| int | l, | ||
| float | m, | ||
| float | n, | ||
| int | o, | ||
| int | p, | ||
| int | q | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaAudioGetResampleLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaAudioGetSpectrogram | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f, | ||
| int | g, | ||
| int | h, | ||
| int | i, | ||
| float | j, | ||
| int | k | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaAudioResample | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f | ||
| ) |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioGetFrameLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d, | ||
| int | e | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioGetMelSpectrogram | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f, | ||
| int | g, | ||
| int | h, | ||
| int | i, | ||
| int | j, | ||
| float | k, | ||
| int | l, | ||
| float | m, | ||
| float | n, | ||
| int | o, | ||
| int | p, | ||
| int | q | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioGetResampleLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioGetSpectrogram | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f, | ||
| int | g, | ||
| int | h, | ||
| int | i, | ||
| float | j, | ||
| int | k | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioResample | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackCopyBlobData | ( | IntPtr | a, |
| uint | b, | ||
| IntPtr | c, | ||
| uint | d | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackCreate | ( | IntPtr | a, |
| int | b, | ||
| int | c | ||
| ) |
|
inlinestatic |
| delegate void ailiaVoice.AiliaVoice.ailiaCallbackDestroy | ( | IntPtr | a | ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetBlobData | ( | IntPtr | a, |
| IntPtr | b, | ||
| uint | c, | ||
| uint | d | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetBlobIndexByInputIndex | ( | IntPtr | a, |
| IntPtr | b, | ||
| uint | c | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetBlobIndexByOutputIndex | ( | IntPtr | a, |
| IntPtr | b, | ||
| uint | c | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetBlobShape | ( | IntPtr | a, |
| IntPtr | b, | ||
| uint | c, | ||
| uint | d | ||
| ) |
|
inlinestatic |
| delegate IntPtr ailiaVoice.AiliaVoice.ailiaCallbackGetErrorDetail | ( | IntPtr | a | ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetInputBlobCount | ( | IntPtr | a, |
| IntPtr | b | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackGetOutputBlobCount | ( | IntPtr | a, |
| IntPtr | b | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackOpenWeightFileA | ( | IntPtr | a, |
| IntPtr | b | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackOpenWeightFileW | ( | IntPtr | a, |
| IntPtr | b | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackOpenWeightMem | ( | IntPtr | a, |
| IntPtr | b, | ||
| UInt32 | c | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackSetInputBlobData | ( | IntPtr | a, |
| IntPtr | b, | ||
| uint | c, | ||
| uint | d | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackSetInputBlobShape | ( | IntPtr | a, |
| Ailia.AILIAShape | b, | ||
| uint | c, | ||
| uint | d | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackSetMemoryMode | ( | IntPtr | a, |
| UInt32 | b | ||
| ) |
|
inlinestatic |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackUpdate | ( | IntPtr | a | ) |
|
inlinestatic |
| static int ailiaVoice.AiliaVoice.ailiaCreate | ( | IntPtr | net, |
| int | env_id, | ||
| int | num_thread | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaGetBlobIndexByInputIndex | ( | IntPtr | net, |
| IntPtr | blob_idx, | ||
| UInt32 | input_blob_idx | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaGetBlobIndexByOutputIndex | ( | IntPtr | net, |
| IntPtr | blob_idx, | ||
| UInt32 | output_blob_idx | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaGetBlobShape | ( | IntPtr | net, |
| IntPtr | shape, | ||
| UInt32 | blob_idx, | ||
| UInt32 | version | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaGetInputBlobCount | ( | IntPtr | net, |
| IntPtr | shape | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaGetOutputBlobCount | ( | IntPtr | net, |
| IntPtr | shape | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaOpenWeightFileA | ( | IntPtr | net, |
| IntPtr | path | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaOpenWeightFileW | ( | IntPtr | net, |
| IntPtr | path | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaOpenWeightMem | ( | IntPtr | net, |
| IntPtr | buf, | ||
| uint | buf_size | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceCreate | ( | ref IntPtr | net, |
| int | env_id, | ||
| int | num_thread, | ||
| int | memory_mode, | ||
| int | flags, | ||
| AILIAVoiceApiCallback | callback, | ||
| int | version | ||
| ) |
ボイスオブジェクトを作成します。
| net | ボイスオブジェクトポインタへのポインタ |
| env_id | 計算に利用する推論実行環境のID( ailiaGetEnvironment() で取得) AILIA_ENVIRONMENT_ID_AUTO にした場合は自動で選択する |
| num_thread | スレッド数の上限( AILIA_MULTITHREAD_AUTO にした場合は自動で設定) |
| memory_mode | メモリモード(AILIA_MEMORY_MODE_*) |
| flag | AILIA_VOICE_FLAG_*の論理和 |
| api_callback | ailiaのAPIへのコールバック |
| version | AILIA_VOICE_API_CALLBACK_VERSION |
ボイスオブジェクトを作成します。
| static void ailiaVoice.AiliaVoice.ailiaVoiceDestroy | ( | IntPtr | net | ) |
ボイスオブジェクトを破棄します。
| net | ボイスオブジェクトポインタ |
| static int ailiaVoice.AiliaVoice.ailiaVoiceExtractFullContext | ( | IntPtr | net, |
| IntPtr | utf8 | ||
| ) |
ExtractFullContextを行います。
| net | ボイスオブジェクトポインタ |
| text | テキスト(UTF8) |
認識した結果はailiaVoiceGetFeaturesAPIで取得します。
| static IntPtr ailiaVoice.AiliaVoice.ailiaVoiceGetErrorDetail | ( | IntPtr | net | ) |
エラーの詳細を返します
| net | ネットワークオブジェクトポインタ |
返値は解放する必要はありません。 文字列の有効期間は次にailiaVoiceのAPIを呼ぶまでです。 取得したポイントから以下のように文字列に変換して下さい。
| static int ailiaVoice.AiliaVoice.ailiaVoiceGetFeatureLength | ( | IntPtr | net, |
| ref uint | len | ||
| ) |
フィーチャーの長さを取得します。(NULL文字含む)
| net | ボイスオブジェクトポインタ |
| len | フィーチャーの長さ |
| static int ailiaVoice.AiliaVoice.ailiaVoiceGetFeatures | ( | IntPtr | net, |
| IntPtr | features, | ||
| uint | len | ||
| ) |
フィーチャーを取得します。
| net | ボイスオブジェクトポインタ |
| features | フィーチャー(UTF8) |
| len | バッファサイズ |
ailiaVoiceGraphemeToPhoneme() もしくは ailiaVoiceExtractFullContext() を一度も実行していない場合は AILIA_STATUS_INVALID_STATE が返ります。
| static int ailiaVoice.AiliaVoice.ailiaVoiceGetWave | ( | IntPtr | net, |
| IntPtr | buf, | ||
| uint | buf_size | ||
| ) |
波形を取得します。
| net | ボイスオブジェクトポインタ |
| buf | PCM波形 |
| buf_size | バッファサイズ(byte単位) |
ailiaVoiceInference() を一度も実行していない場合は AILIA_STATUS_INVALID_STATE が返ります。
| static int ailiaVoice.AiliaVoice.ailiaVoiceGetWaveInfo | ( | IntPtr | net, |
| ref uint | samples, | ||
| ref uint | channels, | ||
| ref uint | sampling_rate | ||
| ) |
波形の情報を取得します。
| net | ボイスオブジェクトポインタ |
| samples | サンプル数(チャンネル単位) |
| channels | チャンネル数 |
| sampling_rate | サンプリングレート |
| static int ailiaVoice.AiliaVoice.ailiaVoiceGraphemeToPhoneme | ( | IntPtr | net, |
| IntPtr | utf8, | ||
| int | g2p_type | ||
| ) |
G2Pを行います。
| net | ボイスオブジェクトポインタ |
| text | テキスト(UTF8) |
| g2p_type | AILIA_VOICE_G2P_TYPE_* |
認識した結果はailiaVoiceGetFeatures APIで取得します。
| static int ailiaVoice.AiliaVoice.ailiaVoiceInference | ( | IntPtr | net, |
| IntPtr | utf8 | ||
| ) |
推論を行います。
| net | ボイスオブジェクトポインタ |
| text | テキスト(UTF8) |
音声合成した結果はailiaVoiceGetWave APIで取得します。
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenDictionaryFile | ( | IntPtr | net, |
| string | dictionary_path, | ||
| int | dictionary_type | ||
| ) |
辞書を指定します。
| net | ネットワークオブジェクトポインタ |
| dictionary_path | 辞書フォルダのパス名 |
| dictionary_type | AILIA_VOICE_DICTIONARY_TYPE_* |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenGPTSoVITSV1ModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | wave, | ||
| string | ssl | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenGPTSoVITSV2ModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | wave, | ||
| string | ssl, | ||
| string | chinese_bert, | ||
| string | vocab | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenGPTSoVITSV2ProModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | ssl, | ||
| string | vits, | ||
| string | sv, | ||
| string | chinese_bert, | ||
| string | vocab | ||
| ) |
GPT-SoVITS V2-Pro向けのモデルを指定します。
| net | ネットワークオブジェクトポインタ |
| encoder | onnxファイルのパス名 (t2s_encoder.onnx) |
| decoder1 | onnxファイルのパス名 (t2s_fsdec.onnx) |
| decoder2 | onnxファイルのパス名 (t2s_sdec.onnx) |
| ssl | onnxファイルのパス名 (cnhubert.onnx) |
| vits | onnxファイルのパス名 (vits.onnx) |
| sv | onnxファイルのパス名 (sv.onnx) |
| chinese_bert | chinese-roberta.onnxとvocab.txtを含むフォルダのパス名 (NULLの場合はBERTを使用しない) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenGPTSoVITSV3ModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | ssl, | ||
| string | vq, | ||
| string | cfm, | ||
| string | bigvgan, | ||
| string | chinese_bert, | ||
| string | vocab | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | wave, | ||
| string | ssl, | ||
| int | model_type, | ||
| int | cleaner_type | ||
| ) |
モデルを指定します。
| net | ネットワークオブジェクトポインタ |
| encoder | onnxファイルのパス名 |
| decoder1 | onnxファイルのパス名 |
| decoder2 | onnxファイルのパス名 |
| wave | onnxファイルのパス名 |
| ssl | onnxファイルのパス名 |
| model_type | AILIA_VOICE_MODEL_TYPE_* |
| cleaner_type | AILIA_VOICE_CLEANER_TYPE_* |
| static int ailiaVoice.AiliaVoice.ailiaVoiceOpenTacotron2ModelFile | ( | IntPtr | net, |
| string | encoder, | ||
| string | decoder1, | ||
| string | decoder2, | ||
| string | wave, | ||
| int | cleaner_type | ||
| ) |
GPT-SoVITS V3向けのモデルを指定します。
| net | ネットワークオブジェクトポインタ |
| encoder | onnxファイルのパス名 (t2s_encoder.onnx) |
| decoder1 | onnxファイルのパス名 (t2s_fsdec.onnx) |
| decoder2 | onnxファイルのパス名 (t2s_sdec.onnx) |
| ssl | onnxファイルのパス名 (cnhubert.onnx) |
| vq | onnxファイルのパス名 (vq_model.onnx) |
| cfm | onnxファイルのパス名 (vq_cfm.onnx) |
| bigvgan | onnxファイルのパス名 (bigvgan_model.onnx) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceSetModelType | ( | IntPtr | net, |
| int | model_type | ||
| ) |
G2Pで使用するモデルタイプを設定します。
| net | ボイスオブジェクトポインタ |
| model_type | AILIA_VOICE_MODEL_TYPE_* |
G2Pを単独で使用する際に、モデルファイルを与えずにモデルタイプを設定します。 ailiaVoiceOpenModelFileAやailiaVoiceOpenGPTSoVITSV3ModelFileAを呼び出した場合は自動的に設定されます。
| static int ailiaVoice.AiliaVoice.ailiaVoiceSetReference | ( | IntPtr | net, |
| IntPtr | buf, | ||
| uint | buf_size, | ||
| uint | channels, | ||
| uint | sampling_rate, | ||
| IntPtr | features | ||
| ) |
0ショット音声合成のリファレンスとなる波形とテキストを設定します。
| net | ボイスオブジェクトポインタ |
| buf | PCM波形 (0 - 1で正規化) |
| buf_size | バッファサイズ(byte単位) |
| channels | チャンネル数 |
| sampling_rate | サンプリングレート |
| features | フィーチャー(UTF8) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceSetSampleSteps | ( | IntPtr | net, |
| int | steps | ||
| ) |
GPT-SoVITS v3のCFMサンプリングステップ数を設定します。
| net | ボイスオブジェクトポインタ |
| steps | CFMのEuler ODEステップ数(デフォルト4) |
| static int ailiaVoice.AiliaVoice.ailiaVoiceSetSpeed | ( | IntPtr | net, |
| float | speed | ||
| ) |
音声合成の速度を設定します。
| net | ボイスオブジェクトポインタ |
| speed | 速度(デフォルト1.0、0より大きい値) |
GPT-SoVITS V2およびV3で使用できます。V1では無効です。
| static int ailiaVoice.AiliaVoice.ailiaVoiceSetUserDictionaryFile | ( | IntPtr | net, |
| string | dictionary_path, | ||
| int | dictionary_type | ||
| ) |
ユーザ辞書を指定します。(MBSC)
| net | ネットワークオブジェクトポインタ |
| dictionary_path | ユーザ辞書ファイルのパス名(MBSC) |
| dictionary_type | AILIA_VOICE_DICTIONARY_TYPE_* |
ailiaVoiceOpenDictionaryFileAの前に呼び出す必要があります。
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |