ailiaSpeechFFI class
Dart FFI bindings for ailia Speech (generated from native/ailia_speech.h)
Constructors
- ailiaSpeechFFI(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
ailiaSpeechFFI.fromLookup(Pointer<
T> lookup(String symbolName)) -
The symbols are looked up with
lookup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
ailiaCopyBlobData(
Pointer< AILIANetwork> dst_net, int dst_blob_idx, Pointer<AILIANetwork> src_net, int src_blob_idx) → int - Perform copies between blobs that specified.
-
ailiaCreate(
Pointer< Pointer< net, int env_id, int num_thread) → intAILIANetwork> > - Creates a network instance.
-
ailiaDestroy(
Pointer< AILIANetwork> net) → void - It destroys the network instance.
-
ailiaDisableLayerFusion(
Pointer< AILIANetwork> net) → int - Disalbe layer fusion optimaization for inference
-
ailiaFinalize(
) → int - Release GPU and other resources that have been globally allocated with ailia.
-
ailiaFindBlobIndexByName(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> blob_idx, Pointer<Char> name) → int - Searches by name for the index of the internal data (blob) during inference and returns it.
-
ailiaFindBlobNameByIndex(
Pointer< AILIANetwork> net, Pointer<Char> buffer, int buffer_size, int blob_idx) → int - Searches by index for the name of the internal data (blob) during inference and returns it.
-
ailiaGetBlobCount(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> blob_count) → int - Gets the amount of internal data (blob) during inference.
-
ailiaGetBlobData(
Pointer< AILIANetwork> net, Pointer<Void> dest, int dest_size, int blob_idx) → int - Gets the internal data (blob) during inference.
-
ailiaGetBlobDataType(
Pointer< AILIANetwork> net, Pointer<Int> type, int blob_idx) → int - Get the type of Blob.
-
ailiaGetBlobDim(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> dim, int blob_idx) → int - Gets the dimension of the internal data (blob) during inference.
-
ailiaGetBlobIndexByInputIndex(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> blob_idx, int input_blob_idx) → int - Get the blob index of the input data.
-
ailiaGetBlobIndexByOutputIndex(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> blob_idx, int output_blob_idx) → int - Get the blob index of the input data blob.
-
ailiaGetBlobNameLengthByIndex(
Pointer< AILIANetwork> net, int blob_idx, Pointer<UnsignedInt> buffer_size) → int - Gets the size of the buffer needed for output of the name of the internal data (blob).
-
ailiaGetBlobShape(
Pointer< AILIANetwork> net, Pointer<AILIAShape> shape, int blob_idx, int version) → int - Gets the shape of the internal data (blob) during inference.
-
ailiaGetBlobShapeND(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> shape, int dim, int blob_idx) → int - Gets the amount of internal data (blob) during inference.
-
ailiaGetEnvironment(
Pointer< Pointer< env, int env_idx, int version) → intAILIAEnvironment> > - Gets the list of computational environments.
-
ailiaGetEnvironmentCount(
Pointer< UnsignedInt> env_count) → int - Gets the number of available computational environments (CPU, GPU).
-
ailiaGetErrorDetail(
Pointer< AILIANetwork> net) → Pointer<Char> - Returns the details of errors.
-
ailiaGetInputBlobCount(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> input_blob_count) → int - Get the number of input data blobs.
-
ailiaGetInputDim(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> dim) → int - Gets the dimension of the input data during inference.
-
ailiaGetInputShape(
Pointer< AILIANetwork> net, Pointer<AILIAShape> shape, int version) → int - Gets the shape of the input data during inference.
-
ailiaGetInputShapeND(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> shape, int dim) → int - Gets the shape of the input data during inference.
-
ailiaGetOutputBlobCount(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> output_blob_count) → int - Get the number of output data blobs.
-
ailiaGetOutputDim(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> dim) → int - Gets the dimension of the output data during inference.
-
ailiaGetOutputShape(
Pointer< AILIANetwork> net, Pointer<AILIAShape> shape, int version) → int - Gets the shape of the output data during inference.
-
ailiaGetOutputShapeND(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> shape, int dim) → int - Gets the shape of the output data during inference.
-
ailiaGetSelectedEnvironment(
Pointer< AILIANetwork> net, Pointer<Pointer< env, int version) → intAILIAEnvironment> > - Gets the selected computational environment.
-
ailiaGetStatusString(
int status_code) → Pointer< Char> - Returns the string describing given status code.
-
ailiaGetSummaryLength(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> buffer_size) → int - Gets the size of the buffer needed for the network summary.
-
ailiaGetVersion(
) → Pointer< Char> - Get the version of the library.
-
ailiaOpenStreamEx(
Pointer< AILIANetwork> net, Pointer<Void> fopen_args, _ailiaFileCallback callback, int version) → int - Initializes the network instance. (User-defined file access callback)
-
ailiaOpenStreamFileA(
Pointer< AILIANetwork> net, Pointer<Char> path) → int - Initializes the network instance. (Read from file)
-
ailiaOpenStreamFileW(
Pointer< AILIANetwork> net, Pointer<WChar> path) → int -
ailiaOpenStreamMem(
Pointer< AILIANetwork> net, Pointer<Void> buf, int buf_size) → int - Initializes the network instance. (Read from memory)
-
ailiaOpenWeightEx(
Pointer< AILIANetwork> net, Pointer<Void> fopen_args, _ailiaFileCallback callback, int version) → int - Reads weights into a network instance. (User-defined file access callback)
-
ailiaOpenWeightFileA(
Pointer< AILIANetwork> net, Pointer<Char> path) → int - Reads weights into a network instance. (Read from file)
-
ailiaOpenWeightFileW(
Pointer< AILIANetwork> net, Pointer<WChar> path) → int -
ailiaOpenWeightMem(
Pointer< AILIANetwork> net, Pointer<Void> buf, int buf_size) → int - Reads weights into a network instance. (Read from memory)
-
ailiaPredict(
Pointer< AILIANetwork> net, Pointer<Void> dest, int dest_size, Pointer<Void> src, int src_size) → int - Performs the inferences and provides the inference result.
-
ailiaSetInputBlobData(
Pointer< AILIANetwork> net, Pointer<Void> src, int src_size, int blob_idx) → int - Provides the specified blob with the input data.
-
ailiaSetInputBlobShape(
Pointer< AILIANetwork> net, Pointer<AILIAShape> shape, int blob_idx, int version) → int - Change the shape of the blob given by its index
-
ailiaSetInputBlobShapeND(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> shape, int dim, int blob_idx) → int - Change the shape of the blob given by its index
-
ailiaSetInputShape(
Pointer< AILIANetwork> net, Pointer<AILIAShape> shape, int version) → int - Changes the shape of the input data during inference.
-
ailiaSetInputShapeND(
Pointer< AILIANetwork> net, Pointer<UnsignedInt> shape, int dim) → int - Changes the shape of the input data during inference.
-
ailiaSetMemoryMode(
Pointer< AILIANetwork> net, int mode) → int - Set the memory usage policy for inference
-
ailiaSetProfileMode(
Pointer< AILIANetwork> net, int mode) → int - Set the profile mode.
-
ailiaSetTemporaryCachePathA(
Pointer< Char> cache_dir) → int - Specifies a temporary cache directory.
-
ailiaSetTemporaryCachePathW(
Pointer< WChar> cache_dir) → int -
ailiaSpeechBuffered(
Pointer< AILIASpeech> net, Pointer<UnsignedInt> buffered) → int - Determines if there is enough data to perform speech recognition.
-
ailiaSpeechComplete(
Pointer< AILIASpeech> net, Pointer<UnsignedInt> complete) → int - Determines whether all data has been processed.
-
ailiaSpeechCreate(
Pointer< Pointer< net, int env_id, int num_thread, int memory_mode, int task, int flags, AILIASpeechApiCallback callback, int version) → intAILIASpeech> > - Creates a network instance.
-
ailiaSpeechDestroy(
Pointer< AILIASpeech> net) → void - It destroys the network instance.
-
ailiaSpeechFinalizeInputData(
Pointer< AILIASpeech> net) → int - Finalize input PCM data to queue
-
ailiaSpeechGetErrorDetail(
Pointer< AILIASpeech> net) → Pointer<Char> - Returns the details of errors.
-
ailiaSpeechGetText(
Pointer< AILIASpeech> net, Pointer<AILIASpeechText> text, int version, int idx) → int - Get recognized text
-
ailiaSpeechGetTextCount(
Pointer< AILIASpeech> net, Pointer<UnsignedInt> count) → int - Get recognized text count
-
ailiaSpeechOpenDiarizationFileA(
Pointer< AILIASpeech> net, Pointer<Char> segmentation_path, Pointer<Char> embedding_path, int type) → int - Set AI model for speaker diarization (MBSC)
-
ailiaSpeechOpenDiarizationFileW(
Pointer< AILIASpeech> net, Pointer<WChar> segmentation_path, Pointer<WChar> embedding_path, int type) → int - Set AI model for speaker diarization (UTF16)
-
ailiaSpeechOpenDictionaryFileA(
Pointer< AILIASpeech> net, Pointer<Char> dictionary_path, int dictionary_type) → int - Set dictionary for error correction.
-
ailiaSpeechOpenDictionaryFileW(
Pointer< AILIASpeech> net, Pointer<WChar> dictionary_path, int dictionary_type) → int - Set dictionary for error correction.
-
ailiaSpeechOpenModelFileA(
Pointer< AILIASpeech> net, Pointer<Char> encoder_path, Pointer<Char> decoder_path, int model_type) → int - Set models into a network instance.
-
ailiaSpeechOpenModelFileW(
Pointer< AILIASpeech> net, Pointer<WChar> encoder_path, Pointer<WChar> decoder_path, int model_type) → int - Set models into a network instance.
-
ailiaSpeechOpenPostProcessFileA(
Pointer< AILIASpeech> net, Pointer<Char> encoder_path, Pointer<Char> decoder_path, Pointer<Char> source_path, Pointer<Char> target_path, Pointer<Char> prefix, int post_process_type) → int - Set AI model for post process (MBSC)
-
ailiaSpeechOpenPostProcessFileW(
Pointer< AILIASpeech> net, Pointer<WChar> encoder_path, Pointer<WChar> decoder_path, Pointer<WChar> source_path, Pointer<WChar> target_path, Pointer<Char> prefix, int post_process_type) → int - Set AI model for post process (UTF16)
-
ailiaSpeechOpenVadFileA(
Pointer< AILIASpeech> net, Pointer<Char> vad_path, int vad_type) → int - Set vad model for voice activity detection.
-
ailiaSpeechOpenVadFileW(
Pointer< AILIASpeech> net, Pointer<WChar> vad_path, int vad_type) → int - Set vad model for voice activity detection.
-
ailiaSpeechPostProcess(
Pointer< AILIASpeech> net) → int - Execute post process
-
ailiaSpeechPushInputData(
Pointer< AILIASpeech> net, Pointer<Float> src, int channels, int samples, int sampling_rate) → int - Push PCM data to queue
-
ailiaSpeechResetTranscribeState(
Pointer< AILIASpeech> net) → int - It resets the network instance.
-
ailiaSpeechSetConstraint(
Pointer< AILIASpeech> net, Pointer<Char> constraint, int type) → int - Set constraint.
-
ailiaSpeechSetIntermediateCallback(
Pointer< AILIASpeech> net, AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK callback, Pointer<Void> handle) → int - Set a callback to get intermediate results of recognition.
-
ailiaSpeechSetLanguage(
Pointer< AILIASpeech> net, Pointer<Char> language) → int - Set language.
-
ailiaSpeechSetPrompt(
Pointer< AILIASpeech> net, Pointer<Char> prompt) → int - Set prompt.
-
ailiaSpeechSetSilentThreshold(
Pointer< AILIASpeech> net, double silent_threshold, double speech_sec, double no_speech_sec) → int - Set silent threshold.
-
ailiaSpeechSetText(
Pointer< AILIASpeech> net, Pointer<AILIASpeechText> text, int version, int idx) → int - Set postprocess text
-
ailiaSpeechTranscribe(
Pointer< AILIASpeech> net) → int - Perform speech recognition
-
ailiaSummary(
Pointer< AILIANetwork> net, Pointer<Char> buffer, int buffer_size) → int - Shows the name and shape of each blob.
-
ailiaTokenizerAddSpecialTokens(
Pointer< AILIATokenizer> net, Pointer<Pointer< tokens, int count) → intChar> > - Add SpecialToken
-
ailiaTokenizerCreate(
Pointer< Pointer< net, int type, int flags) → intAILIATokenizer> > - Creates a tokenizer instance.
-
ailiaTokenizerDecode(
Pointer< AILIATokenizer> net, Pointer<Int> tokens, int token_count) → int - Perform decode
-
ailiaTokenizerDecodeWithSpecialTokens(
Pointer< AILIATokenizer> net, Pointer<Int> tokens, int token_count) → int - Perform decode with special tokens
-
ailiaTokenizerDestroy(
Pointer< AILIATokenizer> net) → void - It destroys the tokenizer instance.
-
ailiaTokenizerEncode(
Pointer< AILIATokenizer> net, Pointer<Char> utf8) → int - Perform encode
-
ailiaTokenizerEncodeWithSpecialTokens(
Pointer< AILIATokenizer> net, Pointer<Char> utf8) → int - Perform encode with special tokens
-
ailiaTokenizerGetCharEnds(
Pointer< AILIATokenizer> net, Pointer<Int> char_ends, int count) → int - Gets the Char end positions.
-
ailiaTokenizerGetCharStarts(
Pointer< AILIATokenizer> net, Pointer<Int> char_starts, int count) → int - Gets the Char start positions.
-
ailiaTokenizerGetText(
Pointer< AILIATokenizer> net, Pointer<Char> text, int len) → int - Gets the decoded text.
-
ailiaTokenizerGetTextLength(
Pointer< AILIATokenizer> net, Pointer<UnsignedInt> len) → int - Gets the size of text. (Include null)
-
ailiaTokenizerGetTokenCount(
Pointer< AILIATokenizer> net, Pointer<UnsignedInt> count) → int - Gets the number of tokens.
-
ailiaTokenizerGetTokens(
Pointer< AILIATokenizer> net, Pointer<Int> tokens, int count) → int - Gets the tokens.
-
ailiaTokenizerGetVocab(
Pointer< AILIATokenizer> net, int token, Pointer<Pointer< vocab) → intChar> > - Perform encode
-
ailiaTokenizerGetVocabSize(
Pointer< AILIATokenizer> net, Pointer<UnsignedInt> size) → int - Gets the size of vocab. (Include null)
-
ailiaTokenizerGetWordIDs(
Pointer< AILIATokenizer> net, Pointer<Int> word_ids, int count) → int - Gets the word ID.
-
ailiaTokenizerOpenAddedTokensFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open added tokens file.
-
ailiaTokenizerOpenAddedTokensFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerOpenDictionaryFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open dictionary file.
-
ailiaTokenizerOpenDictionaryFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerOpenMergeFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open merges file.
-
ailiaTokenizerOpenMergeFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerOpenModelFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open model file.
-
ailiaTokenizerOpenModelFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerOpenTokenizerConfigFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open tokenizer config file.
-
ailiaTokenizerOpenTokenizerConfigFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerOpenVocabFileA(
Pointer< AILIATokenizer> net, Pointer<Char> path) → int - Open vocab file.
-
ailiaTokenizerOpenVocabFileW(
Pointer< AILIATokenizer> net, Pointer<WChar> path) → int -
ailiaTokenizerUtf32ToUtf8(
Pointer< Char> utf8, Pointer<UnsignedInt> processed_byte, int utf32) → int - Convert UTF32 character to UTF8 character.
-
ailiaTokenizerUtf8ToUtf32(
Pointer< UnsignedInt> utf32, Pointer<UnsignedInt> processed_byte, Pointer<Char> utf8, int utf8_len) → int - Convert UTF8 character to UTF32 character.
-
ailiaUpdate(
Pointer< AILIANetwork> net) → int - Makes inferences with the input data specified in advance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited