|
delegate int | ailiaCallbackAudioGetFrameLen (ref Int32 a, int b, int c, int d, int e) |
|
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) |
|
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 | ailiaCallbackTokenizerCreate (IntPtr a, int b, int c) |
|
delegate int | ailiaCallbackTokenizerOpenModelFileA (IntPtr a, IntPtr b) |
|
delegate int | ailiaCallbackTokenizerOpenModelFileW (IntPtr a, IntPtr b) |
|
delegate int | ailiaCallbackTokenizerEncode (IntPtr a, IntPtr b) |
|
delegate int | ailiaCallbackTokenizerGetTokenCount (IntPtr a, IntPtr b) |
|
delegate int | ailiaCallbackTokenizerGetTokens (IntPtr a, IntPtr b, uint c) |
|
delegate int | ailiaCallbackTokenizerDecode (IntPtr a, IntPtr b, uint c) |
|
delegate int | ailiaCallbackTokenizerGetTextLength (IntPtr a, IntPtr b) |
|
delegate int | ailiaCallbackTokenizerGetText (IntPtr a, IntPtr b, uint c) |
|
delegate void | ailiaCallbackTokenizerDestroy (IntPtr a) |
|
delegate int | ailiaCallbackTokenizerUtf8ToUtf32 (IntPtr a, IntPtr b, IntPtr c, uint d) |
|
delegate int | ailiaCallbackTokenizerUtf32ToUtf8 (IntPtr a, IntPtr b, uint c) |
|
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 IntPtr | ailiaCallbackGetErrorDetail (IntPtr a) |
|
delegate int | ailiaCallbackCopyBlobData (IntPtr a, uint b, IntPtr c, uint d) |
|
delegate int | ailiaCallbackGetEnvironment (IntPtr a, uint b, uint d) |
|
delegate int | ailiaIntermediateCallback (IntPtr handle, IntPtr text) |
|
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 | ailiaAudioGetMelSpectrogram (IntPtr dst, IntPtr src, int sample_n, int sample_rate, int fft_n, int hop_n, int win_n, int win_type, int max_frame_n, int center, float power, int fft_norm_type, float f_min, float f_max, int mel_n, int mel_norm_type, int mel_formula) |
|
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 | ailiaGetEnvironment (IntPtr net, UInt32 env_idx, UInt32 version) |
|
static int | ailiaTokenizerCreate (IntPtr net, int type, int flags) |
|
static int | ailiaTokenizerOpenModelFileA (IntPtr net, IntPtr utf8) |
|
static int | ailiaTokenizerOpenModelFileW (IntPtr net, IntPtr utf16) |
|
static int | ailiaTokenizerEncode (IntPtr net, IntPtr utf8) |
|
static int | ailiaTokenizerGetTokenCount (IntPtr net, IntPtr count) |
|
static int | ailiaTokenizerGetTextLength (IntPtr net, IntPtr len) |
|
static int | ailiaTokenizerUtf8ToUtf32 (IntPtr a, IntPtr b, IntPtr c, uint d) |
|
static int | ailiaTokenizerUtf32ToUtf8 (IntPtr a, IntPtr b, uint c) |
|
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 | ailiaSpeechCreate (ref IntPtr net, int env_id, int num_thread, int memory_mode, int task, int flag, AILIASpeechApiCallback callback, int version) |
| ネットワークオブジェクトを作成します。 [詳解]
|
|
static int | ailiaSpeechOpenModelFile (IntPtr net, string encoder_path, string decoder_path, int model_type) |
| モデルを指定します。 [詳解]
|
|
static int | ailiaSpeechOpenVadFile (IntPtr net, string vad_path, int vad_type) |
| 無音検知に適用するVADモデルを指定します。 [詳解]
|
|
static int | ailiaSpeechOpenDictionaryFile (IntPtr net, string dictionary_path, int dictionary_type) |
| 誤り訂正辞書を指定します。 [詳解]
|
|
static int | ailiaSpeechOpenPostProcessFile (IntPtr net, string encoder_path, string decoder_path, string source_path, string target_path, IntPtr prefix, int post_process_type) |
| 後処理知に適用するAIモデルを指定します。 [詳解]
|
|
static int | ailiaSpeechPushInputData (IntPtr net, float[] src, uint channels, uint samples, uint sampling_rate) |
| 音声をキューに投入します。 [詳解]
|
|
static int | ailiaSpeechFinalizeInputData (IntPtr net) |
| 音声のキューへの投入を終了します。 [詳解]
|
|
static int | ailiaSpeechBuffered (IntPtr net, ref uint buffered) |
| 音声認識を行うためのデータが存在するかどうかを判定します。 [詳解]
|
|
static int | ailiaSpeechComplete (IntPtr net, ref uint complete) |
| 全てのデータを処理したかどうかを判定します。 [詳解]
|
|
static int | ailiaSpeechSetPrompt (IntPtr net, IntPtr prompt) |
| プロンプトの設定を行います。 [詳解]
|
|
static int | ailiaSpeechSetConstraint (IntPtr net, IntPtr constraint, int type) |
| 制約の設定を行います。 [詳解]
|
|
static int | ailiaSpeechSetLanguage (IntPtr net, string language) |
| 言語設定を行います。 [詳解]
|
|
static int | ailiaSpeechSetIntermediateCallback (IntPtr net, ailiaIntermediateCallback callback, IntPtr handle) |
| 認識の途中結果を取得するコールバックを設定します。 [詳解]
|
|
static int | ailiaSpeechTranscribe (IntPtr net) |
| 音声認識を行います。 [詳解]
|
|
static int | ailiaSpeechPostProcess (IntPtr net) |
| 後処理を行います。 [詳解]
|
|
static int | ailiaSpeechGetTextCount (IntPtr net, ref uint count) |
| 認識したテキストの数を取得します。 [詳解]
|
|
static int | ailiaSpeechGetText (IntPtr net, [In, Out] AILIASpeechText text, uint version, uint idx) |
| 認識したテキストを取得します。 [詳解]
|
|
static int | ailiaSpeechSetText (IntPtr net, [In] AILIASpeechText text, uint version, uint idx) |
| ポストプロセス対象のテキストを設定します。 [詳解]
|
|
static void | ailiaSpeechDestroy (IntPtr net) |
| ネットワークオブジェクトを破棄します。 [詳解]
|
|
static IntPtr | ailiaSpeechGetErrorDetail (IntPtr net) |
| エラーの詳細を返します [詳解]
|
|
static int | ailiaSpeechSetSilentThreshold (IntPtr net, float silent_threshold, float speech_sec, float no_speech_sec) |
| 無音判定の閾値を設定します。 [詳解]
|
|
static int | ailiaSpeechResetTranscribeState (IntPtr net) |
| ネットワークオブジェクトの内部状態を初期化します。 [詳解]
|
|
|
static int | ailiaCallbackAudioGetFrameLenBridge (ref Int32 a, int b, int c, int d, int e) |
|
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 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 | ailiaCallbackTokenizerCreateBridge (IntPtr a, int b, int c) |
|
static int | ailiaCallbackTokenizerOpenModelFileABridge (IntPtr a, IntPtr b) |
|
static int | ailiaCallbackTokenizerOpenModelFileWBridge (IntPtr a, IntPtr b) |
|
static int | ailiaCallbackTokenizerEncodeBridge (IntPtr a, IntPtr b) |
|
static int | ailiaCallbackTokenizerGetTokenCountBridge (IntPtr a, IntPtr b) |
|
static int | ailiaCallbackTokenizerGetTokensBridge (IntPtr a, IntPtr b, uint c) |
|
static int | ailiaCallbackTokenizerDecodeBridge (IntPtr a, IntPtr b, uint c) |
|
static int | ailiaCallbackTokenizerGetTextLengthBridge (IntPtr a, IntPtr b) |
|
static int | ailiaCallbackTokenizerGetTextBridge (IntPtr a, IntPtr b, uint c) |
|
static void | ailiaCallbackTokenizerDestroyBridge (IntPtr a) |
|
static int | ailiaCallbackTokenizerUtf8ToUtf32Bridge (IntPtr a, IntPtr b, IntPtr c, uint d) |
|
static int | ailiaCallbackTokenizerUtf32ToUtf8Bridge (IntPtr a, IntPtr b, uint c) |
|
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 IntPtr | ailiaCallbackGetErrorDetailBridge (IntPtr a) |
|
static int | ailiaCallbackCopyBlobDataBridge (IntPtr a, uint b, IntPtr c, uint d) |
|
static int | ailiaCallbackGetEnvironmentBridge (IntPtr a, uint b, uint c) |
|
static AiliaSpeech.AILIASpeechApiCallback | GetCallback () |
|
◆ ailiaAudioGetMelSpectrogram()
static int ailiaSpeech.AiliaSpeech.ailiaAudioGetMelSpectrogram |
( |
IntPtr |
dst, |
|
|
IntPtr |
src, |
|
|
int |
sample_n, |
|
|
int |
sample_rate, |
|
|
int |
fft_n, |
|
|
int |
hop_n, |
|
|
int |
win_n, |
|
|
int |
win_type, |
|
|
int |
max_frame_n, |
|
|
int |
center, |
|
|
float |
power, |
|
|
int |
fft_norm_type, |
|
|
float |
f_min, |
|
|
float |
f_max, |
|
|
int |
mel_n, |
|
|
int |
mel_norm_type, |
|
|
int |
mel_formula |
|
) |
| |
◆ ailiaAudioGetResampleLen()
static int ailiaSpeech.AiliaSpeech.ailiaAudioGetResampleLen |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d |
|
) |
| |
◆ ailiaAudioResample()
static int ailiaSpeech.AiliaSpeech.ailiaAudioResample |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
int |
e, |
|
|
int |
f |
|
) |
| |
◆ ailiaCallbackAudioGetFrameLen()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetFrameLen |
( |
ref Int32 |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
int |
e |
|
) |
| |
◆ ailiaCallbackAudioGetFrameLenBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetFrameLenBridge |
( |
ref Int32 |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
int |
e |
|
) |
| |
|
inlinestatic |
339 return AiliaAudio.ailiaAudioGetFrameLen(ref a, b, c, d, e);
◆ ailiaCallbackAudioGetMelSpectrogram()
delegate int ailiaSpeech.AiliaSpeech.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 |
|
) |
| |
◆ ailiaCallbackAudioGetMelSpectrogramBridge()
static int ailiaSpeech.AiliaSpeech.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 |
|
) |
| |
|
inlinestatic |
344 return ailiaAudioGetMelSpectrogram(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q);
◆ ailiaCallbackAudioGetResampleLen()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetResampleLen |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d |
|
) |
| |
◆ ailiaCallbackAudioGetResampleLenBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetResampleLenBridge |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c, |
|
|
int |
d |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackAudioResample()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioResample |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
int |
e, |
|
|
int |
f |
|
) |
| |
◆ ailiaCallbackAudioResampleBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackAudioResampleBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
int |
c, |
|
|
int |
d, |
|
|
int |
e, |
|
|
int |
f |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackCopyBlobData()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackCopyBlobData |
( |
IntPtr |
a, |
|
|
uint |
b, |
|
|
IntPtr |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackCopyBlobDataBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackCopyBlobDataBridge |
( |
IntPtr |
a, |
|
|
uint |
b, |
|
|
IntPtr |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
490 return Ailia.ailiaCopyBlobData(a, b, c, d);
◆ ailiaCallbackCreate()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackCreate |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c |
|
) |
| |
◆ ailiaCallbackCreateBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackCreateBridge |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackDestroy()
delegate void ailiaSpeech.AiliaSpeech.ailiaCallbackDestroy |
( |
IntPtr |
a | ) |
|
◆ ailiaCallbackDestroyBridge()
static void ailiaSpeech.AiliaSpeech.ailiaCallbackDestroyBridge |
( |
IntPtr |
a | ) |
|
|
inlinestatic |
445 Ailia.ailiaDestroy(a);
◆ ailiaCallbackGetBlobData()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobData |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackGetBlobDataBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobDataBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
465 return Ailia.ailiaGetBlobData(a, b, c, d);
◆ ailiaCallbackGetBlobIndexByInputIndex()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByInputIndex |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackGetBlobIndexByInputIndexBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByInputIndexBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackGetBlobIndexByOutputIndex()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByOutputIndex |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackGetBlobIndexByOutputIndexBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByOutputIndexBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackGetBlobShape()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobShape |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackGetBlobShapeBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobShapeBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackGetEnvironment()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackGetEnvironment |
( |
IntPtr |
a, |
|
|
uint |
b, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackGetEnvironmentBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackGetEnvironmentBridge |
( |
IntPtr |
a, |
|
|
uint |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackGetErrorDetail()
delegate IntPtr ailiaSpeech.AiliaSpeech.ailiaCallbackGetErrorDetail |
( |
IntPtr |
a | ) |
|
◆ ailiaCallbackGetErrorDetailBridge()
static IntPtr ailiaSpeech.AiliaSpeech.ailiaCallbackGetErrorDetailBridge |
( |
IntPtr |
a | ) |
|
|
inlinestatic |
485 return Ailia.ailiaGetErrorDetail(a);
◆ ailiaCallbackOpenWeightFileA()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileA |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackOpenWeightFileABridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileABridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackOpenWeightFileW()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileW |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackOpenWeightFileWBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileWBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackOpenWeightMem()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightMem |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
UInt32 |
c |
|
) |
| |
◆ ailiaCallbackOpenWeightMemBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightMemBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackSetInputBlobData()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobData |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackSetInputBlobDataBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobDataBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
470 return Ailia.ailiaSetInputBlobData(a, b, c, d);
◆ ailiaCallbackSetInputBlobShape()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobShape |
( |
IntPtr |
a, |
|
|
Ailia.AILIAShape |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackSetInputBlobShapeBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobShapeBridge |
( |
IntPtr |
a, |
|
|
Ailia.AILIAShape |
b, |
|
|
uint |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
475 return Ailia.ailiaSetInputBlobShape(a, b, c, d);
◆ ailiaCallbackSetMemoryMode()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackSetMemoryMode |
( |
IntPtr |
a, |
|
|
UInt32 |
b |
|
) |
| |
◆ ailiaCallbackSetMemoryModeBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackSetMemoryModeBridge |
( |
IntPtr |
a, |
|
|
uint |
b |
|
) |
| |
|
inlinestatic |
440 return Ailia.ailiaSetMemoryMode(a, b);
◆ ailiaCallbackTokenizerCreate()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerCreate |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c |
|
) |
| |
◆ ailiaCallbackTokenizerCreateBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerCreateBridge |
( |
IntPtr |
a, |
|
|
int |
b, |
|
|
int |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerDecode()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDecode |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackTokenizerDecodeBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDecodeBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
389 return AiliaTokenizer.ailiaTokenizerDecode(a, b, c);
◆ ailiaCallbackTokenizerDestroy()
delegate void ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDestroy |
( |
IntPtr |
a | ) |
|
◆ ailiaCallbackTokenizerDestroyBridge()
static void ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDestroyBridge |
( |
IntPtr |
a | ) |
|
|
inlinestatic |
404 AiliaTokenizer.ailiaTokenizerDestroy(a);
◆ ailiaCallbackTokenizerEncode()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerEncode |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackTokenizerEncodeBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerEncodeBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerGetText()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetText |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackTokenizerGetTextBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
399 return AiliaTokenizer.ailiaTokenizerGetText(a, b, c);
◆ ailiaCallbackTokenizerGetTextLength()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextLength |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackTokenizerGetTextLengthBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextLengthBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerGetTokenCount()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokenCount |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackTokenizerGetTokenCountBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokenCountBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerGetTokens()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokens |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackTokenizerGetTokensBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokensBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
384 return AiliaTokenizer.ailiaTokenizerGetTokens(a, b, c);
◆ ailiaCallbackTokenizerOpenModelFileA()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileA |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackTokenizerOpenModelFileABridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileABridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerOpenModelFileW()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileW |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
◆ ailiaCallbackTokenizerOpenModelFileWBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileWBridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerUtf32ToUtf8()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf32ToUtf8 |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaCallbackTokenizerUtf32ToUtf8Bridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf32ToUtf8Bridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackTokenizerUtf8ToUtf32()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf8ToUtf32 |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
IntPtr |
c, |
|
|
uint |
d |
|
) |
| |
◆ ailiaCallbackTokenizerUtf8ToUtf32Bridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf8ToUtf32Bridge |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
IntPtr |
c, |
|
|
uint |
d |
|
) |
| |
|
inlinestatic |
◆ ailiaCallbackUpdate()
delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackUpdate |
( |
IntPtr |
a | ) |
|
◆ ailiaCallbackUpdateBridge()
static int ailiaSpeech.AiliaSpeech.ailiaCallbackUpdateBridge |
( |
IntPtr |
a | ) |
|
|
inlinestatic |
450 return Ailia.ailiaUpdate(a);
◆ ailiaCreate()
static int ailiaSpeech.AiliaSpeech.ailiaCreate |
( |
IntPtr |
net, |
|
|
int |
env_id, |
|
|
int |
num_thread |
|
) |
| |
◆ ailiaGetBlobIndexByInputIndex()
static int ailiaSpeech.AiliaSpeech.ailiaGetBlobIndexByInputIndex |
( |
IntPtr |
net, |
|
|
IntPtr |
blob_idx, |
|
|
UInt32 |
input_blob_idx |
|
) |
| |
◆ ailiaGetBlobIndexByOutputIndex()
static int ailiaSpeech.AiliaSpeech.ailiaGetBlobIndexByOutputIndex |
( |
IntPtr |
net, |
|
|
IntPtr |
blob_idx, |
|
|
UInt32 |
output_blob_idx |
|
) |
| |
◆ ailiaGetBlobShape()
static int ailiaSpeech.AiliaSpeech.ailiaGetBlobShape |
( |
IntPtr |
net, |
|
|
IntPtr |
shape, |
|
|
UInt32 |
blob_idx, |
|
|
UInt32 |
version |
|
) |
| |
◆ ailiaGetEnvironment()
static int ailiaSpeech.AiliaSpeech.ailiaGetEnvironment |
( |
IntPtr |
net, |
|
|
UInt32 |
env_idx, |
|
|
UInt32 |
version |
|
) |
| |
◆ ailiaIntermediateCallback()
delegate int ailiaSpeech.AiliaSpeech.ailiaIntermediateCallback |
( |
IntPtr |
handle, |
|
|
IntPtr |
text |
|
) |
| |
◆ ailiaOpenWeightFileA()
static int ailiaSpeech.AiliaSpeech.ailiaOpenWeightFileA |
( |
IntPtr |
net, |
|
|
IntPtr |
path |
|
) |
| |
◆ ailiaOpenWeightFileW()
static int ailiaSpeech.AiliaSpeech.ailiaOpenWeightFileW |
( |
IntPtr |
net, |
|
|
IntPtr |
path |
|
) |
| |
◆ ailiaOpenWeightMem()
static int ailiaSpeech.AiliaSpeech.ailiaOpenWeightMem |
( |
IntPtr |
net, |
|
|
IntPtr |
buf, |
|
|
uint |
buf_size |
|
) |
| |
◆ ailiaSpeechBuffered()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechBuffered |
( |
IntPtr |
net, |
|
|
ref uint |
buffered |
|
) |
| |
音声認識を行うためのデータが存在するかどうかを判定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
buffered | 存在フラグ |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechComplete()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechComplete |
( |
IntPtr |
net, |
|
|
ref uint |
complete |
|
) |
| |
全てのデータを処理したかどうかを判定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
complete | 完了フラグ |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechCreate()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechCreate |
( |
ref IntPtr |
net, |
|
|
int |
env_id, |
|
|
int |
num_thread, |
|
|
int |
memory_mode, |
|
|
int |
task, |
|
|
int |
flag, |
|
|
AILIASpeechApiCallback |
callback, |
|
|
int |
version |
|
) |
| |
ネットワークオブジェクトを作成します。
- 引数
-
net | ネットワークオブジェクトポインタへのポインタ |
env_id | 計算に利用する推論実行環境のID( ailiaGetEnvironment() で取得) AILIA_ENVIRONMENT_ID_AUTO にした場合は自動で選択する |
num_thread | スレッド数の上限( AILIA_MULTITHREAD_AUTO にした場合は自動で設定) |
memory_mode | メモリモード(AILIA_MEMORY_MODE_*) |
task | AILIA_SPEECH_TASK_* |
flag | AILIA_SPEECH_FLAG_*の論理和 |
api_callback | ailiaのAPIへのコールバック |
version | AILIA_SPEECH_API_CALLBACK_VERSION |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
ネットワークオブジェクトを作成します。
◆ ailiaSpeechDestroy()
static void ailiaSpeech.AiliaSpeech.ailiaSpeechDestroy |
( |
IntPtr |
net | ) |
|
◆ ailiaSpeechFinalizeInputData()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechFinalizeInputData |
( |
IntPtr |
net | ) |
|
音声のキューへの投入を終了します。
- 引数
-
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
音声ファイルの末尾であることを通知することで、30秒分のデータが存在しなくてもailiaSpeechBufferedが1を返すようになります。 ailiaSpeechFinalizeInputDataを実行後、ailiaSpeechPushInputDataの実行前に、ailiaSpeechResetTranscribeStateを呼び出す必要があります。
◆ ailiaSpeechGetErrorDetail()
static IntPtr ailiaSpeech.AiliaSpeech.ailiaSpeechGetErrorDetail |
( |
IntPtr |
net | ) |
|
エラーの詳細を返します
- 引数
-
- 戻り値
- エラー詳細
返値は解放する必要はありません。 文字列の有効期間は次にailiaSpeechのAPIを呼ぶまでです。 モデルが暗号化されている場合は空文字を返します。 取得したポイントから以下のように文字列に変換して下さい。
Marshal.PtrToStringAnsi(Ailia.ailiaGetErrorDetail(net))
◆ ailiaSpeechGetText()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechGetText |
( |
IntPtr |
net, |
|
|
[In, Out] AILIASpeechText |
text, |
|
|
uint |
version, |
|
|
uint |
idx |
|
) |
| |
認識したテキストを取得します。
- 引数
-
net | ネットワークオブジェクトポインタ |
text | テキスト |
version | AILIA_SPEECH_TEXT_VERSION |
idx | テキストのインデックス |
- 戻り値
- 返値は解放する必要はありません。 文字列の有効期間は次にailiaSpeechのAPIを呼ぶまでです。 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechGetTextCount()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechGetTextCount |
( |
IntPtr |
net, |
|
|
ref uint |
count |
|
) |
| |
認識したテキストの数を取得します。
- 引数
-
net | ネットワークオブジェクトポインタ |
count | テキストの数 |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechOpenDictionaryFile()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenDictionaryFile |
( |
IntPtr |
net, |
|
|
string |
dictionary_path, |
|
|
int |
dictionary_type |
|
) |
| |
誤り訂正辞書を指定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
dictionary_path | 辞書ファイルのパス名 |
dictionary_type | AILIA_SPEECH_DICTIONARY_TYPE_* |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechOpenModelFile()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenModelFile |
( |
IntPtr |
net, |
|
|
string |
encoder_path, |
|
|
string |
decoder_path, |
|
|
int |
model_type |
|
) |
| |
モデルを指定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
encoder_path | onnxファイルのパス名 |
decoder_path | onnxファイルのパス名 |
model_type | AILIA_SPEECH_MODEL_TYPE_* |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechOpenPostProcessFile()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenPostProcessFile |
( |
IntPtr |
net, |
|
|
string |
encoder_path, |
|
|
string |
decoder_path, |
|
|
string |
source_path, |
|
|
string |
target_path, |
|
|
IntPtr |
prefix, |
|
|
int |
post_process_type |
|
) |
| |
後処理知に適用するAIモデルを指定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
encoder_path | onnxファイルのパス名 |
decoder_path | onnxファイルのパス名 |
source_path | Tokenizerのmodelファイルのパス名 |
target_path | Tokenizerのmodelファイルのパス名 |
prefix | T5のprefix (UTF8)、FuguMTの場合はNULL |
post_process_type | AILIA_SPEECH_POST_PROCESS_TYPE_* |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @detail prefixにはUTF8の文字列を与える必要があります。下記のようにUTF8の文字列を取得可能です。 byte[] text = System.Text.Encoding.UTF8.GetBytes(utf8+"\u0000"); GCHandle handle = GCHandle.Alloc(text, GCHandleType.Pinned); IntPtr prefix = handle.AddrOfPinnedObject(); ailiaSpeechOpenPostProcessFile(...,prefix,...); handle.Free();
◆ ailiaSpeechOpenVadFile()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenVadFile |
( |
IntPtr |
net, |
|
|
string |
vad_path, |
|
|
int |
vad_type |
|
) |
| |
無音検知に適用するVADモデルを指定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
vad_path | onnxファイルのパス名 |
vad_type | AILIA_SPEECH_VAD_TYPE_* |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechPostProcess()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechPostProcess |
( |
IntPtr |
net | ) |
|
後処理を行います。
- 引数
-
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
認識した結果はailiaSpeechGetText APIで取得します。
◆ ailiaSpeechPushInputData()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechPushInputData |
( |
IntPtr |
net, |
|
|
float[] |
src, |
|
|
uint |
channels, |
|
|
uint |
samples, |
|
|
uint |
sampling_rate |
|
) |
| |
音声をキューに投入します。
- 引数
-
net | ネットワークオブジェクトポインタ |
src | PCMデータ(チャンネルインタリーブ、LRLR、-1.0 to 1.0) |
channels | チャンネル数 |
samples | チャンネルあたりのサンプル数 |
sampling_rate | サンプリングレート(Hz) |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechResetTranscribeState()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechResetTranscribeState |
( |
IntPtr |
net | ) |
|
ネットワークオブジェクトの内部状態を初期化します。
- 引数
-
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
このAPIを呼び出すことで、前回のデコード結果などの内部状態を初期化します。 このAPIを呼び出した後、モデルを再び開く必要はありません。 ailiaSpeechOpenModelFile、ailiaSpeechSetIntermediateCallback、ailiaSpeechSetLanguage、ailiaSpeechSetSilentThreshold、ailiaSpeechSetPromptのステートは保持されます。
◆ ailiaSpeechSetConstraint()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetConstraint |
( |
IntPtr |
net, |
|
|
IntPtr |
constraint, |
|
|
int |
type |
|
) |
| |
制約の設定を行います。
- 引数
-
net | ネットワークオブジェクトポインタ |
constraint | 制約となるテキスト(UTF8) |
type | 制約モード (AILIA_SPEECH_CONSTRAINT_*) |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す
◆ ailiaSpeechSetIntermediateCallback()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetIntermediateCallback |
( |
IntPtr |
net, |
|
|
ailiaIntermediateCallback |
callback, |
|
|
IntPtr |
handle |
|
) |
| |
認識の途中結果を取得するコールバックを設定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
callback | コールバック |
handle | コールバックに提供されるハンドル |
- 戻り値
- 返値は解放する必要はありません。 文字列の有効期間は次にailiaSpeechのAPIを呼ぶまでです。 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaSpeechSetLanguage()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetLanguage |
( |
IntPtr |
net, |
|
|
string |
language |
|
) |
| |
言語設定を行います。
- 引数
-
net | ネットワークオブジェクトポインタ |
language | 言語コード(en, jaなど) |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す languageにautoを指定すると自動選択になる。
◆ ailiaSpeechSetPrompt()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetPrompt |
( |
IntPtr |
net, |
|
|
IntPtr |
prompt |
|
) |
| |
プロンプトの設定を行います。
- 引数
-
net | ネットワークオブジェクトポインタ |
prompt | promptとなるテキスト(UTF8) |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す
◆ ailiaSpeechSetSilentThreshold()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetSilentThreshold |
( |
IntPtr |
net, |
|
|
float |
silent_threshold, |
|
|
float |
speech_sec, |
|
|
float |
no_speech_sec |
|
) |
| |
無音判定の閾値を設定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
silent_threshold | 有音判定のしきい値 |
speech_sec | 有音区間の時間 |
no_speech_sec | 無音区間の時間 |
- 戻り値
- 有音区間が一定以上存在する場合に無音区間が一定時間以上続いた場合に30secを待たずに滞留しているバッファを処理します。 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す languageにautoを指定すると自動選択になる。
◆ ailiaSpeechSetText()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetText |
( |
IntPtr |
net, |
|
|
[In] AILIASpeechText |
text, |
|
|
uint |
version, |
|
|
uint |
idx |
|
) |
| |
ポストプロセス対象のテキストを設定します。
- 引数
-
net | ネットワークオブジェクトポインタ |
text | テキスト |
version | AILIA_SPEECH_TEXT_VERSION |
idx | テキストのインデックス |
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
音声認識を使用せず、ポストプロセスのみを使用する場合に使用します。 文字列は内部バッファにコピーされるため、呼び出し後に解放することができます。 idxがailiaSpeechGetTextCountよりも大きい場合、自動的に内部バッファが拡張されます。
◆ ailiaSpeechTranscribe()
static int ailiaSpeech.AiliaSpeech.ailiaSpeechTranscribe |
( |
IntPtr |
net | ) |
|
音声認識を行います。
- 引数
-
- 戻り値
- 成功した場合は AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。
◆ ailiaTokenizerCreate()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerCreate |
( |
IntPtr |
net, |
|
|
int |
type, |
|
|
int |
flags |
|
) |
| |
◆ ailiaTokenizerEncode()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerEncode |
( |
IntPtr |
net, |
|
|
IntPtr |
utf8 |
|
) |
| |
◆ ailiaTokenizerGetTextLength()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerGetTextLength |
( |
IntPtr |
net, |
|
|
IntPtr |
len |
|
) |
| |
◆ ailiaTokenizerGetTokenCount()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerGetTokenCount |
( |
IntPtr |
net, |
|
|
IntPtr |
count |
|
) |
| |
◆ ailiaTokenizerOpenModelFileA()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerOpenModelFileA |
( |
IntPtr |
net, |
|
|
IntPtr |
utf8 |
|
) |
| |
◆ ailiaTokenizerOpenModelFileW()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerOpenModelFileW |
( |
IntPtr |
net, |
|
|
IntPtr |
utf16 |
|
) |
| |
◆ ailiaTokenizerUtf32ToUtf8()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerUtf32ToUtf8 |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
uint |
c |
|
) |
| |
◆ ailiaTokenizerUtf8ToUtf32()
static int ailiaSpeech.AiliaSpeech.ailiaTokenizerUtf8ToUtf32 |
( |
IntPtr |
a, |
|
|
IntPtr |
b, |
|
|
IntPtr |
c, |
|
|
uint |
d |
|
) |
| |
◆ GetCallback()
548 AiliaSpeech.AILIASpeechApiCallback callback=
new AiliaSpeech.AILIASpeechApiCallback();
◆ AILIA_SPEECH_API_CALLBACK_VERSION
const int ailiaSpeech.AiliaSpeech.AILIA_SPEECH_API_CALLBACK_VERSION = (6) |
|
static |
◆ AILIA_SPEECH_CONSTRAINT_CHARACTERS
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_CONSTRAINT_CHARACTERS = (0) |
|
static |
◆ AILIA_SPEECH_CONSTRAINT_WORDS
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_CONSTRAINT_WORDS = (1) |
|
static |
◆ AILIA_SPEECH_DICTIONARY_TYPE_REPLACE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_DICTIONARY_TYPE_REPLACE = (0) |
|
static |
◆ AILIA_SPEECH_FLAG_LIVE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_FLAG_LIVE = (1) |
|
static |
◆ AILIA_SPEECH_FLAG_NONE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_FLAG_NONE = (0) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_BASE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_BASE = (1) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE = (4) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE_V3
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE_V3 = (5) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_MEDIUM
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_MEDIUM = (3) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_SMALL
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_SMALL = (2) |
|
static |
◆ AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_TINY
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_TINY = (0) |
|
static |
◆ AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_EN_JA
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_EN_JA = (1) |
|
static |
◆ AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_JA_EN
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_JA_EN = (2) |
|
static |
◆ AILIA_SPEECH_POST_PROCESS_TYPE_T5
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_POST_PROCESS_TYPE_T5 = (0) |
|
static |
◆ AILIA_SPEECH_TASK_TRANSCRIBE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_TASK_TRANSCRIBE = (0) |
|
static |
◆ AILIA_SPEECH_TASK_TRANSLATE
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_TASK_TRANSLATE = (1) |
|
static |
◆ AILIA_SPEECH_TEXT_VERSION
const int ailiaSpeech.AiliaSpeech.AILIA_SPEECH_TEXT_VERSION = (2) |
|
static |
◆ AILIA_SPEECH_VAD_TYPE_SILERO
const Int32 ailiaSpeech.AiliaSpeech.AILIA_SPEECH_VAD_TYPE_SILERO = (0) |
|
static |
◆ LIBRARY_NAME
const String ailiaSpeech.AiliaSpeech.LIBRARY_NAME ="ailia_speech" |
|
static |
このクラス詳解は次のファイルから抽出されました:
static int ailiaCallbackGetBlobDataBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:464
static int ailiaCallbackTokenizerOpenModelFileWBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:368
static int ailiaTokenizerCreate(IntPtr net, int type, int flags)
static int ailiaCallbackSetMemoryModeBridge(IntPtr a, uint b)
Definition: AiliaSpeech.cs:439
static int ailiaCallbackCreateBridge(IntPtr a, int b, int c)
Definition: AiliaSpeech.cs:419
static int ailiaCallbackAudioGetResampleLenBridge(IntPtr a, int b, int c, int d)
Definition: AiliaSpeech.cs:353
static int ailiaCallbackTokenizerGetTokenCountBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:378
static int ailiaCallbackTokenizerUtf32ToUtf8Bridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:413
static void ailiaCallbackTokenizerDestroyBridge(IntPtr a)
Definition: AiliaSpeech.cs:403
static int ailiaGetBlobIndexByOutputIndex(IntPtr net, IntPtr blob_idx, UInt32 output_blob_idx)
static int ailiaCallbackOpenWeightFileWBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:429
static int ailiaCallbackTokenizerCreateBridge(IntPtr a, int b, int c)
Definition: AiliaSpeech.cs:358
static int ailiaAudioGetResampleLen(IntPtr a, int b, int c, int d)
static int ailiaAudioResample(IntPtr a, IntPtr b, int c, int d, int e, int f)
static int ailiaCallbackTokenizerGetTokensBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:383
static int ailiaCallbackSetInputBlobShapeBridge(IntPtr a, Ailia.AILIAShape b, uint c, uint d)
Definition: AiliaSpeech.cs:474
static int ailiaAudioGetMelSpectrogram(IntPtr dst, IntPtr src, int sample_n, int sample_rate, int fft_n, int hop_n, int win_n, int win_type, int max_frame_n, int center, float power, int fft_norm_type, float f_min, float f_max, int mel_n, int mel_norm_type, int mel_formula)
static int ailiaCallbackAudioResampleBridge(IntPtr a, IntPtr b, int c, int d, int e, int f)
Definition: AiliaSpeech.cs:348
static int ailiaCreate(IntPtr net, int env_id, int num_thread)
static int ailiaCallbackTokenizerDecodeBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:388
static int ailiaCallbackCopyBlobDataBridge(IntPtr a, uint b, IntPtr c, uint d)
Definition: AiliaSpeech.cs:489
static int ailiaCallbackGetBlobShapeBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:479
static int ailiaCallbackUpdateBridge(IntPtr a)
Definition: AiliaSpeech.cs:449
static int ailiaGetBlobShape(IntPtr net, IntPtr shape, UInt32 blob_idx, UInt32 version)
static int ailiaTokenizerUtf8ToUtf32(IntPtr a, IntPtr b, IntPtr c, uint d)
static int ailiaTokenizerGetTextLength(IntPtr net, IntPtr len)
static int ailiaTokenizerUtf32ToUtf8(IntPtr a, IntPtr b, uint c)
static int ailiaCallbackGetBlobIndexByOutputIndexBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:459
static int ailiaOpenWeightFileA(IntPtr net, IntPtr path)
static int ailiaCallbackOpenWeightFileABridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:424
static IntPtr ailiaCallbackGetErrorDetailBridge(IntPtr a)
Definition: AiliaSpeech.cs:484
static int ailiaGetBlobIndexByInputIndex(IntPtr net, IntPtr blob_idx, UInt32 input_blob_idx)
static int ailiaCallbackGetEnvironmentBridge(IntPtr a, uint b, uint c)
Definition: AiliaSpeech.cs:494
static int ailiaTokenizerOpenModelFileW(IntPtr net, IntPtr utf16)
static int ailiaCallbackTokenizerEncodeBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:373
static int ailiaTokenizerGetTokenCount(IntPtr net, IntPtr count)
static int ailiaTokenizerOpenModelFileA(IntPtr net, IntPtr utf8)
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)
Definition: AiliaSpeech.cs:343
static int ailiaTokenizerEncode(IntPtr net, IntPtr utf8)
static int ailiaCallbackSetInputBlobDataBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:469
static int ailiaCallbackOpenWeightMemBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:434
static int ailiaCallbackTokenizerGetTextBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:398
static int ailiaOpenWeightMem(IntPtr net, IntPtr buf, uint buf_size)
static int ailiaCallbackGetBlobIndexByInputIndexBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:454
static int ailiaOpenWeightFileW(IntPtr net, IntPtr path)
static int ailiaCallbackTokenizerGetTextLengthBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:393
static int ailiaCallbackTokenizerOpenModelFileABridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:363
static int ailiaCallbackTokenizerUtf8ToUtf32Bridge(IntPtr a, IntPtr b, IntPtr c, uint d)
Definition: AiliaSpeech.cs:408
static void ailiaCallbackDestroyBridge(IntPtr a)
Definition: AiliaSpeech.cs:444
static int ailiaGetEnvironment(IntPtr net, UInt32 env_idx, UInt32 version)
static int ailiaCallbackAudioGetFrameLenBridge(ref Int32 a, int b, int c, int d, int e)
Definition: AiliaSpeech.cs:338