ailia_speech  1.3.0.0
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ailiaSpeech.AiliaSpeech Class Reference

Classes

struct  AILIASpeechApiCallback
 
class  AILIASpeechText
 

Public Member Functions

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)
 Creates a network instance. More...
 
static int ailiaSpeechOpenModelFile (IntPtr net, string encoder_path, string decoder_path, int model_type)
 Set models into a network instance. More...
 
static int ailiaSpeechOpenVadFile (IntPtr net, string vad_path, int vad_type)
 Set vad model for voice activity detection. More...
 
static int ailiaSpeechOpenDictionaryFile (IntPtr net, string dictionary_path, int dictionary_type)
 Set dictionary for error correction. More...
 
static int ailiaSpeechOpenPostProcessFile (IntPtr net, string encoder_path, string decoder_path, string source_path, string target_path, IntPtr prefix, int post_process_type)
 Set AI model for post process. More...
 
static int ailiaSpeechPushInputData (IntPtr net, float[] src, uint channels, uint samples, uint sampling_rate)
 Push PCM data to queue. More...
 
static int ailiaSpeechFinalizeInputData (IntPtr net)
 Finalize input PCM data to queue. More...
 
static int ailiaSpeechBuffered (IntPtr net, ref uint buffered)
 Is processing data exist. More...
 
static int ailiaSpeechComplete (IntPtr net, ref uint complete)
 Is processed all data. More...
 
static int ailiaSpeechSetPrompt (IntPtr net, IntPtr prompt)
 Set prompt. More...
 
static int ailiaSpeechSetConstraint (IntPtr net, IntPtr constraint, int type)
 Set constraint. More...
 
static int ailiaSpeechSetLanguage (IntPtr net, string language)
 Performs the inferences and provides the inference result. More...
 
static int ailiaSpeechSetIntermediateCallback (IntPtr net, ailiaIntermediateCallback callback, IntPtr handle)
 Set a callback to get intermediate results of recognition. More...
 
static int ailiaSpeechTranscribe (IntPtr net)
 Speech recognition. More...
 
static int ailiaSpeechPostProcess (IntPtr net)
 Execute post process. More...
 
static int ailiaSpeechGetTextCount (IntPtr net, ref uint count)
 Get text count. More...
 
static int ailiaSpeechGetText (IntPtr net, [In, Out] AILIASpeechText text, uint version, uint idx)
 Get text length. More...
 
static int ailiaSpeechSetText (IntPtr net, [In] AILIASpeechText text, uint version, uint idx)
 Set postprocess text. More...
 
static void ailiaSpeechDestroy (IntPtr net)
 It destroys the network instance. More...
 
static IntPtr ailiaSpeechGetErrorDetail (IntPtr net)
 Returns the details of errors. More...
 
static int ailiaSpeechSetSilentThreshold (IntPtr net, float silent_threshold, float speech_sec, float no_speech_sec)
 Set silent threshold. More...
 
static int ailiaSpeechResetTranscribeState (IntPtr net)
 It resets the network instance. More...
 

Static Public Member Functions

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 ()
 

Static Public Attributes

const String LIBRARY_NAME ="ailia_speech"
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_TINY = (0)
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_BASE = (1)
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_SMALL = (2)
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_MEDIUM = (3)
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE = (4)
 
const Int32 AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE_V3 = (5)
 
const Int32 AILIA_SPEECH_TASK_TRANSCRIBE = (0)
 
const Int32 AILIA_SPEECH_TASK_TRANSLATE = (1)
 
const Int32 AILIA_SPEECH_CONSTRAINT_CHARACTERS = (0)
 
const Int32 AILIA_SPEECH_CONSTRAINT_WORDS = (1)
 
const Int32 AILIA_SPEECH_FLAG_NONE = (0)
 
const Int32 AILIA_SPEECH_FLAG_LIVE = (1)
 
const Int32 AILIA_SPEECH_VAD_TYPE_SILERO = (0)
 
const Int32 AILIA_SPEECH_DICTIONARY_TYPE_REPLACE = (0)
 
const Int32 AILIA_SPEECH_POST_PROCESS_TYPE_T5 = (0)
 
const Int32 AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_EN_JA = (1)
 
const Int32 AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_JA_EN = (2)
 
const int AILIA_SPEECH_API_CALLBACK_VERSION = (6)
 
const int AILIA_SPEECH_TEXT_VERSION = (2)
 

Member Function Documentation

◆ 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
338  {
339  return AiliaAudio.ailiaAudioGetFrameLen(ref a, b, c, d, e);
340  }

◆ 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
343  {
344  return ailiaAudioGetMelSpectrogram(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q);
345  }

◆ 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
353  {
354  return ailiaAudioGetResampleLen(a, b, c, d);
355  }

◆ 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
348  {
349  return ailiaAudioResample(a, b, c, d, e, f);
350  }

◆ 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
489  {
490  return Ailia.ailiaCopyBlobData(a, b, c, d);
491  }

◆ 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
419  {
420  return ailiaCreate(a, b, c);
421  }

◆ ailiaCallbackDestroy()

delegate void ailiaSpeech.AiliaSpeech.ailiaCallbackDestroy ( IntPtr  a)

◆ ailiaCallbackDestroyBridge()

static void ailiaSpeech.AiliaSpeech.ailiaCallbackDestroyBridge ( IntPtr  a)
inlinestatic
444  {
445  Ailia.ailiaDestroy(a);
446  }

◆ 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
464  {
465  return Ailia.ailiaGetBlobData(a, b, c, d);
466  }

◆ 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
454  {
455  return ailiaGetBlobIndexByInputIndex(a, b, c);
456  }

◆ 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
459  {
460  return ailiaGetBlobIndexByOutputIndex(a, b, c);
461  }

◆ 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
479  {
480  return ailiaGetBlobShape(a, b, c, d);
481  }

◆ 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
494  {
495  return ailiaGetEnvironment(a, b, c);
496  }

◆ ailiaCallbackGetErrorDetail()

delegate IntPtr ailiaSpeech.AiliaSpeech.ailiaCallbackGetErrorDetail ( IntPtr  a)

◆ ailiaCallbackGetErrorDetailBridge()

static IntPtr ailiaSpeech.AiliaSpeech.ailiaCallbackGetErrorDetailBridge ( IntPtr  a)
inlinestatic
484  {
485  return Ailia.ailiaGetErrorDetail(a);
486  }

◆ ailiaCallbackOpenWeightFileA()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileA ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackOpenWeightFileABridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileABridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
424  {
425  return ailiaOpenWeightFileA(a, b);
426  }

◆ ailiaCallbackOpenWeightFileW()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileW ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackOpenWeightFileWBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileWBridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
429  {
430  return ailiaOpenWeightFileW(a, b);
431  }

◆ 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
434  {
435  return ailiaOpenWeightMem(a, b, c);
436  }

◆ 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
469  {
470  return Ailia.ailiaSetInputBlobData(a, b, c, d);
471  }

◆ 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
474  {
475  return Ailia.ailiaSetInputBlobShape(a, b, c, d);
476  }

◆ ailiaCallbackSetMemoryMode()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackSetMemoryMode ( IntPtr  a,
UInt32  b 
)

◆ ailiaCallbackSetMemoryModeBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackSetMemoryModeBridge ( IntPtr  a,
uint  b 
)
inlinestatic
439  {
440  return Ailia.ailiaSetMemoryMode(a, b);
441  }

◆ 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
358  {
359  return ailiaTokenizerCreate(a, b, c);
360  }

◆ 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
388  {
389  return AiliaTokenizer.ailiaTokenizerDecode(a, b, c);
390  }

◆ ailiaCallbackTokenizerDestroy()

delegate void ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDestroy ( IntPtr  a)

◆ ailiaCallbackTokenizerDestroyBridge()

static void ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDestroyBridge ( IntPtr  a)
inlinestatic
403  {
404  AiliaTokenizer.ailiaTokenizerDestroy(a);
405  }

◆ ailiaCallbackTokenizerEncode()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerEncode ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackTokenizerEncodeBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerEncodeBridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
373  {
374  return ailiaTokenizerEncode(a, b);
375  }

◆ 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
398  {
399  return AiliaTokenizer.ailiaTokenizerGetText(a, b, c);
400  }

◆ ailiaCallbackTokenizerGetTextLength()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextLength ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackTokenizerGetTextLengthBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextLengthBridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
393  {
394  return ailiaTokenizerGetTextLength(a, b);
395  }

◆ ailiaCallbackTokenizerGetTokenCount()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokenCount ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackTokenizerGetTokenCountBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokenCountBridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
378  {
379  return ailiaTokenizerGetTokenCount(a, b);
380  }

◆ 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
383  {
384  return AiliaTokenizer.ailiaTokenizerGetTokens(a, b, c);
385  }

◆ ailiaCallbackTokenizerOpenModelFileA()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileA ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackTokenizerOpenModelFileABridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileABridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
363  {
364  return ailiaTokenizerOpenModelFileA(a, b);
365  }

◆ ailiaCallbackTokenizerOpenModelFileW()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileW ( IntPtr  a,
IntPtr  b 
)

◆ ailiaCallbackTokenizerOpenModelFileWBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileWBridge ( IntPtr  a,
IntPtr  b 
)
inlinestatic
368  {
369  return ailiaTokenizerOpenModelFileW(a, b);
370  }

◆ 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
413  {
414  return ailiaTokenizerUtf32ToUtf8(a, b, c);
415 
416  }

◆ 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
408  {
409  return ailiaTokenizerUtf8ToUtf32(a, b, c, d);
410  }

◆ ailiaCallbackUpdate()

delegate int ailiaSpeech.AiliaSpeech.ailiaCallbackUpdate ( IntPtr  a)

◆ ailiaCallbackUpdateBridge()

static int ailiaSpeech.AiliaSpeech.ailiaCallbackUpdateBridge ( IntPtr  a)
inlinestatic
449  {
450  return Ailia.ailiaUpdate(a);
451  }

◆ 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 
)

Is processing data exist.

Parameters
netA network instance pointer
bufferedIs data exist
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechComplete()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechComplete ( IntPtr  net,
ref uint  complete 
)

Is processed all data.

Parameters
netA network instance pointer
completeIs complete
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ 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 
)

Creates a network instance.

Parameters
netA pointer to the network instance pointer
env_idThe ID of the inference backend used for computation (obtained by ailiaGetEnvironment() ). It is selected automatically if AILIA_ENVIRONMENT_ID_AUTO is specified.
num_threadThe upper limit on the number of threads (It is set automatically if AILIA_MULTITHREAD_AUTO
memory_modeThe memory mode (AILIA_MEMORY_MODE_*)
taskAILIA_SPEECH_TASK_*
flagOR of AILIA_SPEECH_FLAG_*
api_callbackThe callback for ailia API
versionAILIA_SPEECH_API_CALLBACK_VERSION is specified.)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Creates a network instance.

◆ ailiaSpeechDestroy()

static void ailiaSpeech.AiliaSpeech.ailiaSpeechDestroy ( IntPtr  net)

It destroys the network instance.

Parameters
netA network instance pointer

◆ ailiaSpeechFinalizeInputData()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechFinalizeInputData ( IntPtr  net)

Finalize input PCM data to queue.

Parameters
netA network instance pointer
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

By signaling the end of the audio file, ailiaSpeechBuffered will return 1 even if 30 seconds worth of data does not exist. You must call ailiaSpeechResetTranscribeState after executing ailiaSpeechFinalizeInputData and before executing ailiaSpeechPushInputData.

◆ ailiaSpeechGetErrorDetail()

static IntPtr ailiaSpeech.AiliaSpeech.ailiaSpeechGetErrorDetail ( IntPtr  net)

Returns the details of errors.

Parameters
netThe network instance pointer
Returns
Error details

The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called. If model is encrypted, this function returns empty string. Convert from the point obtained to a string as follows

Marshal.PtrToStringAnsi(Ailia.ailiaGetErrorDetail(net))

◆ ailiaSpeechGetText()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechGetText ( IntPtr  net,
[In, Out] AILIASpeechText  text,
uint  version,
uint  idx 
)

Get text length.

Parameters
netA network instance pointer
textText
versionAILIA_SPEECH_TEXT_VERSION
idxText index
Returns
The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called. If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechGetTextCount()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechGetTextCount ( IntPtr  net,
ref uint  count 
)

Get text count.

Parameters
netA network instance pointer
countText count
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechOpenDictionaryFile()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenDictionaryFile ( IntPtr  net,
string  dictionary_path,
int  dictionary_type 
)

Set dictionary for error correction.

Parameters
netA network instance pointer
dictionary_pathThe path name to the dictionary file
dictionary_typeAILIA_SPEECH_DICTIONARY_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechOpenModelFile()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechOpenModelFile ( IntPtr  net,
string  encoder_path,
string  decoder_path,
int  model_type 
)

Set models into a network instance.

Parameters
netA network instance pointer
encoder_pathThe path name to the onnx file
decoder_pathThe path name to the onnx file
model_typeAILIA_SPEECH_MODEL_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ 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 
)

Set AI model for post process.

Parameters
netA network instance pointer
encoder_pathThe path name to the onnx file
decoder_pathThe path name to the onnx file
source_pathThe path name to the tokenizer model file
target_pathThe path name to the tokenizer model file
prefixThe prefix of T5 (UTF8), NULL for FuguMT
post_process_typeAILIA_SPEECH_POST_PROCESS_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise. @detail You need to provide a UTF8 string as the prefix. You can obtain a UTF8 string as follows. 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 
)

Set vad model for voice activity detection.

Parameters
netA network instance pointer
vad_pathThe path name to the onnx file
vad_typeAILIA_SPEECH_VAD_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechPostProcess()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechPostProcess ( IntPtr  net)

Execute post process.

Parameters
netA network instance pointer
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Get the recognition result with ailiaSpeechGetText API.

◆ ailiaSpeechPushInputData()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechPushInputData ( IntPtr  net,
float[]  src,
uint  channels,
uint  samples,
uint  sampling_rate 
)

Push PCM data to queue.

Parameters
netA network instance pointer
srcThe input pcm data (channel interleave, LRLR, -1.0 to 1.0 range)
channelsThe number of pcm channels
samplesThe number of pcm samples per channel
sampling_rateThe sampling rate (Hz)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechResetTranscribeState()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechResetTranscribeState ( IntPtr  net)

It resets the network instance.

Parameters
netA network instance pointer
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

By calling this API, the internal state such as the previous decoding result is initialized. There is no need to reopen the model after calling this API. The states of ailiaSpeechOpenModelFile, ailiaSpeechSetIntermediateCallback, ailiaSpeechSetLanguage, ailiaSpeechSetSilentThreshold, ailiaSpeechSetPrompt are preserved.

◆ ailiaSpeechSetConstraint()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetConstraint ( IntPtr  net,
IntPtr  constraint,
int  type 
)

Set constraint.

Parameters
netA network instance pointer
constraintThe text of constraint (UTF8)
typeThe type of constraint (AILIA_SPEECH_CONSTRAINT_*)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechSetIntermediateCallback()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetIntermediateCallback ( IntPtr  net,
ailiaIntermediateCallback  callback,
IntPtr  handle 
)

Set a callback to get intermediate results of recognition.

Parameters
netA network instance pointer
callbackcallback
handlehandle for callback
Returns
The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called. If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechSetLanguage()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetLanguage ( IntPtr  net,
string  language 
)

Performs the inferences and provides the inference result.

Parameters
netA network instance pointer
languageLanguage code (en, ja, etc)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise. If you set auto to language, language will automatically detected.

◆ ailiaSpeechSetPrompt()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetPrompt ( IntPtr  net,
IntPtr  prompt 
)

Set prompt.

Parameters
netA network instance pointer
promptThe text of prompt (UTF8)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaSpeechSetSilentThreshold()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetSilentThreshold ( IntPtr  net,
float  silent_threshold,
float  speech_sec,
float  no_speech_sec 
)

Set silent threshold.

Parameters
netA network instance pointer
silent_thresholdvolume threshold
speech_secspeech time
no_speech_secno_speech time
Returns
If there are more than a certain number of sounded sections, and if the silent section lasts for a certain amount of time or more, the remaining buffer is processed without waiting for 30 seconds. If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise. If you set auto to language, language will automatically detected.

◆ ailiaSpeechSetText()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechSetText ( IntPtr  net,
[In] AILIASpeechText  text,
uint  version,
uint  idx 
)

Set postprocess text.

Parameters
netA network instance pointer
textText
versionAILIA_SPEECH_TEXT_VERSION
idxText index
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Used when using only post-processing without using speech recognition. Since the string is copied to the internal buffer, it can be released after the call. If idx is larger than ailiaSpeechGetTextCount, the internal buffer will be automatically expanded.

◆ ailiaSpeechTranscribe()

static int ailiaSpeech.AiliaSpeech.ailiaSpeechTranscribe ( IntPtr  net)

Speech recognition.

Parameters
netA network instance pointer
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ 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()

static AiliaSpeech.AILIASpeechApiCallback ailiaSpeech.AiliaSpeech.GetCallback ( )
inlinestatic
547  {
548  AiliaSpeech.AILIASpeechApiCallback callback=new AiliaSpeech.AILIASpeechApiCallback();
549 
550  // C# pass through API Mapping
551  callback.ailiaAudioGetFrameLen=ailiaCallbackAudioGetFrameLenBridge;
552  callback.ailiaAudioGetMelSpectrogram=ailiaCallbackAudioGetMelSpectrogramBridge;
553  callback.ailiaAudioResample=ailiaCallbackAudioResampleBridge;
554  callback.ailiaAudioGetResampleLen=ailiaCallbackAudioGetResampleLenBridge;
555 
556  callback.ailiaTokenizerCreate = ailiaCallbackTokenizerCreateBridge;
557  callback.ailiaTokenizerOpenModelFileA = ailiaCallbackTokenizerOpenModelFileABridge;
558  callback.ailiaTokenizerOpenModelFileW = ailiaCallbackTokenizerOpenModelFileWBridge;
559  callback.ailiaTokenizerEncode = ailiaCallbackTokenizerEncodeBridge;
560  callback.ailiaTokenizerGetTokenCount = ailiaCallbackTokenizerGetTokenCountBridge;
561  callback.ailiaTokenizerGetTokens = ailiaCallbackTokenizerGetTokensBridge;
562  callback.ailiaTokenizerDecode = ailiaCallbackTokenizerDecodeBridge;
563  callback.ailiaTokenizerGetTextLength = ailiaCallbackTokenizerGetTextLengthBridge;
564  callback.ailiaTokenizerGetText = ailiaCallbackTokenizerGetTextBridge;
565  callback.ailiaTokenizerDestroy = ailiaCallbackTokenizerDestroyBridge;
566  callback.ailiaTokenizerUtf8ToUtf32 = ailiaCallbackTokenizerUtf8ToUtf32Bridge;
567  callback.ailiaTokenizerUtf32ToUtf8 = ailiaCallbackTokenizerUtf32ToUtf8Bridge;
568 
569  callback.ailiaCreate=ailiaCallbackCreateBridge;
570  callback.ailiaOpenWeightFileA=ailiaCallbackOpenWeightFileABridge;
571  callback.ailiaOpenWeightFileW=ailiaCallbackOpenWeightFileWBridge;
572  callback.ailiaOpenWeightMem=ailiaCallbackOpenWeightMemBridge;
573  callback.ailiaSetMemoryMode=ailiaCallbackSetMemoryModeBridge;
574  callback.ailiaDestroy=ailiaCallbackDestroyBridge;
575  callback.ailiaUpdate=ailiaCallbackUpdateBridge;
576  callback.ailiaGetBlobIndexByInputIndex=ailiaCallbackGetBlobIndexByInputIndexBridge;
577  callback.ailiaGetBlobIndexByOutputIndex=ailiaCallbackGetBlobIndexByOutputIndexBridge;
578  callback.ailiaGetBlobData=ailiaCallbackGetBlobDataBridge;
579  callback.ailiaSetInputBlobData=ailiaCallbackSetInputBlobDataBridge;
580  callback.ailiaSetInputBlobShape=ailiaCallbackSetInputBlobShapeBridge;
581  callback.ailiaGetBlobShape=ailiaCallbackGetBlobShapeBridge;
582  callback.ailiaGetErrorDetail=ailiaCallbackGetErrorDetailBridge;
583  callback.ailiaCopyBlobData=ailiaCallbackCopyBlobDataBridge;
584  callback.ailiaGetEnvironment=ailiaCallbackGetEnvironmentBridge;
585 
586  return callback;
587  }

Member Data Documentation

◆ 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

The documentation for this class was generated from the following file:
ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobDataBridge
static int ailiaCallbackGetBlobDataBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:464
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileWBridge
static int ailiaCallbackTokenizerOpenModelFileWBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:368
ailiaSpeech.AiliaSpeech.ailiaTokenizerCreate
static int ailiaTokenizerCreate(IntPtr net, int type, int flags)
ailiaSpeech.AiliaSpeech.ailiaCallbackSetMemoryModeBridge
static int ailiaCallbackSetMemoryModeBridge(IntPtr a, uint b)
Definition: AiliaSpeech.cs:439
ailiaSpeech.AiliaSpeech.ailiaCallbackCreateBridge
static int ailiaCallbackCreateBridge(IntPtr a, int b, int c)
Definition: AiliaSpeech.cs:419
ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetResampleLenBridge
static int ailiaCallbackAudioGetResampleLenBridge(IntPtr a, int b, int c, int d)
Definition: AiliaSpeech.cs:353
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokenCountBridge
static int ailiaCallbackTokenizerGetTokenCountBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:378
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf32ToUtf8Bridge
static int ailiaCallbackTokenizerUtf32ToUtf8Bridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:413
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDestroyBridge
static void ailiaCallbackTokenizerDestroyBridge(IntPtr a)
Definition: AiliaSpeech.cs:403
ailiaSpeech.AiliaSpeech.ailiaGetBlobIndexByOutputIndex
static int ailiaGetBlobIndexByOutputIndex(IntPtr net, IntPtr blob_idx, UInt32 output_blob_idx)
ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileWBridge
static int ailiaCallbackOpenWeightFileWBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:429
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerCreateBridge
static int ailiaCallbackTokenizerCreateBridge(IntPtr a, int b, int c)
Definition: AiliaSpeech.cs:358
ailiaSpeech.AiliaSpeech.ailiaAudioGetResampleLen
static int ailiaAudioGetResampleLen(IntPtr a, int b, int c, int d)
ailiaSpeech.AiliaSpeech.ailiaAudioResample
static int ailiaAudioResample(IntPtr a, IntPtr b, int c, int d, int e, int f)
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTokensBridge
static int ailiaCallbackTokenizerGetTokensBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:383
ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobShapeBridge
static int ailiaCallbackSetInputBlobShapeBridge(IntPtr a, Ailia.AILIAShape b, uint c, uint d)
Definition: AiliaSpeech.cs:474
ailiaSpeech.AiliaSpeech.ailiaAudioGetMelSpectrogram
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)
ailiaSpeech.AiliaSpeech.ailiaCallbackAudioResampleBridge
static int ailiaCallbackAudioResampleBridge(IntPtr a, IntPtr b, int c, int d, int e, int f)
Definition: AiliaSpeech.cs:348
ailiaSpeech.AiliaSpeech.ailiaCreate
static int ailiaCreate(IntPtr net, int env_id, int num_thread)
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerDecodeBridge
static int ailiaCallbackTokenizerDecodeBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:388
ailiaSpeech.AiliaSpeech.ailiaCallbackCopyBlobDataBridge
static int ailiaCallbackCopyBlobDataBridge(IntPtr a, uint b, IntPtr c, uint d)
Definition: AiliaSpeech.cs:489
ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobShapeBridge
static int ailiaCallbackGetBlobShapeBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:479
ailiaSpeech.AiliaSpeech.ailiaCallbackUpdateBridge
static int ailiaCallbackUpdateBridge(IntPtr a)
Definition: AiliaSpeech.cs:449
ailiaSpeech.AiliaSpeech.ailiaGetBlobShape
static int ailiaGetBlobShape(IntPtr net, IntPtr shape, UInt32 blob_idx, UInt32 version)
ailiaSpeech.AiliaSpeech.ailiaTokenizerUtf8ToUtf32
static int ailiaTokenizerUtf8ToUtf32(IntPtr a, IntPtr b, IntPtr c, uint d)
ailiaSpeech.AiliaSpeech.ailiaTokenizerGetTextLength
static int ailiaTokenizerGetTextLength(IntPtr net, IntPtr len)
ailiaSpeech.AiliaSpeech.ailiaTokenizerUtf32ToUtf8
static int ailiaTokenizerUtf32ToUtf8(IntPtr a, IntPtr b, uint c)
ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByOutputIndexBridge
static int ailiaCallbackGetBlobIndexByOutputIndexBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:459
ailiaSpeech.AiliaSpeech.ailiaOpenWeightFileA
static int ailiaOpenWeightFileA(IntPtr net, IntPtr path)
ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightFileABridge
static int ailiaCallbackOpenWeightFileABridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:424
ailiaSpeech.AiliaSpeech.ailiaCallbackGetErrorDetailBridge
static IntPtr ailiaCallbackGetErrorDetailBridge(IntPtr a)
Definition: AiliaSpeech.cs:484
ailiaSpeech.AiliaSpeech.ailiaGetBlobIndexByInputIndex
static int ailiaGetBlobIndexByInputIndex(IntPtr net, IntPtr blob_idx, UInt32 input_blob_idx)
ailiaSpeech.AiliaSpeech.ailiaCallbackGetEnvironmentBridge
static int ailiaCallbackGetEnvironmentBridge(IntPtr a, uint b, uint c)
Definition: AiliaSpeech.cs:494
ailiaSpeech.AiliaSpeech.ailiaTokenizerOpenModelFileW
static int ailiaTokenizerOpenModelFileW(IntPtr net, IntPtr utf16)
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerEncodeBridge
static int ailiaCallbackTokenizerEncodeBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:373
ailiaSpeech.AiliaSpeech.ailiaTokenizerGetTokenCount
static int ailiaTokenizerGetTokenCount(IntPtr net, IntPtr count)
ailiaSpeech.AiliaSpeech.ailiaTokenizerOpenModelFileA
static int ailiaTokenizerOpenModelFileA(IntPtr net, IntPtr utf8)
ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetMelSpectrogramBridge
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
ailiaSpeech.AiliaSpeech.ailiaTokenizerEncode
static int ailiaTokenizerEncode(IntPtr net, IntPtr utf8)
ailiaSpeech.AiliaSpeech.ailiaCallbackSetInputBlobDataBridge
static int ailiaCallbackSetInputBlobDataBridge(IntPtr a, IntPtr b, uint c, uint d)
Definition: AiliaSpeech.cs:469
ailiaSpeech.AiliaSpeech.ailiaCallbackOpenWeightMemBridge
static int ailiaCallbackOpenWeightMemBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:434
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextBridge
static int ailiaCallbackTokenizerGetTextBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:398
ailiaSpeech.AiliaSpeech.ailiaOpenWeightMem
static int ailiaOpenWeightMem(IntPtr net, IntPtr buf, uint buf_size)
ailiaSpeech.AiliaSpeech.ailiaCallbackGetBlobIndexByInputIndexBridge
static int ailiaCallbackGetBlobIndexByInputIndexBridge(IntPtr a, IntPtr b, uint c)
Definition: AiliaSpeech.cs:454
ailiaSpeech.AiliaSpeech.ailiaOpenWeightFileW
static int ailiaOpenWeightFileW(IntPtr net, IntPtr path)
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerGetTextLengthBridge
static int ailiaCallbackTokenizerGetTextLengthBridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:393
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerOpenModelFileABridge
static int ailiaCallbackTokenizerOpenModelFileABridge(IntPtr a, IntPtr b)
Definition: AiliaSpeech.cs:363
ailiaSpeech.AiliaSpeech.ailiaCallbackTokenizerUtf8ToUtf32Bridge
static int ailiaCallbackTokenizerUtf8ToUtf32Bridge(IntPtr a, IntPtr b, IntPtr c, uint d)
Definition: AiliaSpeech.cs:408
ailiaSpeech.AiliaSpeech.ailiaCallbackDestroyBridge
static void ailiaCallbackDestroyBridge(IntPtr a)
Definition: AiliaSpeech.cs:444
ailiaSpeech.AiliaSpeech.ailiaGetEnvironment
static int ailiaGetEnvironment(IntPtr net, UInt32 env_idx, UInt32 version)
ailiaSpeech.AiliaSpeech.ailiaCallbackAudioGetFrameLenBridge
static int ailiaCallbackAudioGetFrameLenBridge(ref Int32 a, int b, int c, int d, int e)
Definition: AiliaSpeech.cs:338