|
ailia_voice
1.4.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) |
| 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 | 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 | 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 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_MODEL_TYPE_TACOTRON2 = (0) |
| const Int32 | AILIA_VOICE_MODEL_TYPE_GPT_SOVITS = (1) |
| 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_TEXT_POST_PROCESS_APPEND_PUNCTUATION = (2) |
| const int | AILIA_VOICE_API_CALLBACK_VERSION = (2) |
| static int ailiaVoice.AiliaVoice.ailiaAudioGetResampleLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
| static int ailiaVoice.AiliaVoice.ailiaAudioResample | ( | IntPtr | a, |
| IntPtr | b, | ||
| int | c, | ||
| int | d, | ||
| int | e, | ||
| int | f | ||
| ) |
| delegate int ailiaVoice.AiliaVoice.ailiaCallbackAudioGetResampleLen | ( | IntPtr | a, |
| int | b, | ||
| int | c, | ||
| int | d | ||
| ) |
|
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.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.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.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 |