ailia_speech
1.3.2.0
|
#include "ailia.h"
#include "ailia_tokenizer.h"
Go to the source code of this file.
Classes | |
struct | _AILIASpeechApiCallback |
struct | _AILIASpeechText |
Functions | |
const typedef char *AILIA_SPEECH_USER_API * | AILIA_SPEECH_USER_API_AILIA_GET_ERROR_DETAIL (struct AILIANetwork *) |
int AILIA_API | ailiaSpeechCreate (struct AILIASpeech **net, int env_id, int num_thread, int memory_mode, int task, int flags, AILIASpeechApiCallback callback, int version) |
Creates a network instance. More... | |
int AILIA_API | ailiaSpeechOpenModelFileA (struct AILIASpeech *net, const char *encoder_path, const char *decoder_path, int model_type) |
Set models into a network instance. More... | |
int AILIA_API | ailiaSpeechOpenModelFileW (struct AILIASpeech *net, const wchar_t *encoder_path, const wchar_t *decoder_path, int model_type) |
Set models into a network instance. More... | |
int AILIA_API | ailiaSpeechOpenVadFileA (struct AILIASpeech *net, const char *vad_path, int vad_type) |
Set vad model for voice activity detection. More... | |
int AILIA_API | ailiaSpeechOpenVadFileW (struct AILIASpeech *net, const wchar_t *vad_path, int vad_type) |
Set vad model for voice activity detection. More... | |
int AILIA_API | ailiaSpeechOpenDictionaryFileA (struct AILIASpeech *net, const char *dictionary_path, int dictionary_type) |
Set dictionary for error correction. More... | |
int AILIA_API | ailiaSpeechOpenDictionaryFileW (struct AILIASpeech *net, const wchar_t *dictionary_path, int dictionary_type) |
Set dictionary for error correction. More... | |
int AILIA_API | ailiaSpeechOpenPostProcessFileA (struct AILIASpeech *net, const char *encoder_path, const char *decoder_path, const char *source_path, const char *target_path, const char *prefix, int post_process_type) |
Set AI model for post process (MBSC) More... | |
int AILIA_API | ailiaSpeechOpenPostProcessFileW (struct AILIASpeech *net, const wchar_t *encoder_path, const wchar_t *decoder_path, const wchar_t *source_path, const wchar_t *target_path, const char *prefix, int post_process_type) |
Set AI model for post process (UTF16) More... | |
int AILIA_API | ailiaSpeechPushInputData (struct AILIASpeech *net, const float *src, unsigned int channels, unsigned int samples, unsigned int sampling_rate) |
Push PCM data to queue. More... | |
int AILIA_API | ailiaSpeechFinalizeInputData (struct AILIASpeech *net) |
Finalize input PCM data to queue. More... | |
int AILIA_API | ailiaSpeechBuffered (struct AILIASpeech *net, unsigned int *buffered) |
Determines if there is enough data to perform speech recognition. More... | |
int AILIA_API | ailiaSpeechComplete (struct AILIASpeech *net, unsigned int *complete) |
Determines whether all data has been processed. More... | |
int AILIA_API | ailiaSpeechSetPrompt (struct AILIASpeech *net, const char *prompt) |
Set prompt. More... | |
int AILIA_API | ailiaSpeechSetConstraint (struct AILIASpeech *net, const char *constraint, int type) |
Set constraint. More... | |
int AILIA_API | ailiaSpeechSetLanguage (struct AILIASpeech *net, const char *language) |
Set language. More... | |
int AILIA_API | ailiaSpeechSetSilentThreshold (struct AILIASpeech *net, float silent_threshold, float speech_sec, float no_speech_sec) |
Set silent threshold. More... | |
int AILIA_API | ailiaSpeechSetIntermediateCallback (struct AILIASpeech *net, AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK callback, void *handle) |
Set a callback to get intermediate results of recognition. More... | |
int AILIA_API | ailiaSpeechTranscribe (struct AILIASpeech *net) |
Speech recognition. More... | |
int AILIA_API | ailiaSpeechPostProcess (struct AILIASpeech *net) |
Execute post process. More... | |
int AILIA_API | ailiaSpeechGetTextCount (struct AILIASpeech *net, unsigned int *count) |
Get recognized text count. More... | |
int AILIA_API | ailiaSpeechGetText (struct AILIASpeech *net, AILIASpeechText *text, unsigned int version, unsigned int idx) |
Get recognized text. More... | |
int AILIA_API | ailiaSpeechSetText (struct AILIASpeech *net, const AILIASpeechText *text, unsigned int version, unsigned int idx) |
Set postprocess text. More... | |
void AILIA_API | ailiaSpeechDestroy (struct AILIASpeech *net) |
It destroys the network instance. More... | |
int AILIA_API | ailiaSpeechResetTranscribeState (struct AILIASpeech *net) |
It resets the network instance. More... | |
const char *AILIA_API | ailiaSpeechGetErrorDetail (struct AILIASpeech *net) |
Returns the details of errors. More... | |
#define AILIA_API __stdcall |
#define AILIA_SPEECH_API_CALLBACK_VERSION (6) |
Struct version.
#define AILIA_SPEECH_CONSTRAINT_CHARACTERS (0) |
Constraint by characters.
#define AILIA_SPEECH_CONSTRAINT_WORDS (1) |
Constraint by words. Separate words with commas.
#define AILIA_SPEECH_DICTIONARY_TYPE_REPLACE (0) |
Dictionary for replace.
#define AILIA_SPEECH_FLAG_LIVE (1) |
Enable live transcribe mode.
#define AILIA_SPEECH_FLAG_NONE (0) |
Default flag.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_BASE (1) |
Whisper Base model.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE (4) |
Whisper Large model.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_LARGE_V3 (5) |
Whisper Large V3 model.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_MEDIUM (3) |
Whisper Medium model.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_SMALL (2) |
Whisper Small model.
#define AILIA_SPEECH_MODEL_TYPE_WHISPER_MULTILINGUAL_TINY (0) |
Whisper Tiny model.
#define AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_EN_JA (1) |
FuguMT EN JA.
FuguMT JA EN.
The maximum token length is 384. If exceeded, it will be stripped.
The maximum token length is 512. If exceeded, it will be stripped.
#define AILIA_SPEECH_POST_PROCESS_TYPE_FUGUMT_JA_EN (2) |
#define AILIA_SPEECH_POST_PROCESS_TYPE_T5 (0) |
T5.
#define AILIA_SPEECH_TASK_TRANSCRIBE (0) |
Transcribe mode.
#define AILIA_SPEECH_TASK_TRANSLATE (1) |
Translate mode.
#define AILIA_SPEECH_TEXT_VERSION (2) |
Struct version.
#define AILIA_SPEECH_USER_API |
#define AILIA_SPEECH_VAD_TYPE_SILERO (0) |
SileroVAD.
#define ailiaSpeechOpenDictionaryFile ailiaSpeechOpenDictionaryFileA |
#define ailiaSpeechOpenModelFile ailiaSpeechOpenModelFileA |
#define ailiaSpeechOpenPostProcessFile ailiaSpeechOpenPostProcessFileA |
#define ailiaSpeechOpenVadFile ailiaSpeechOpenVadFileA |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_AUDIO_GET_FRAME_LEN) (int *, int, int, int, int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_AUDIO_GET_MEL_SPECTROGRAM) (void *, const void *, int, int, int, int, int, int, int, int, float, int, float, float, int, int, int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN) (int *, int, int, int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_AUDIO_RESAMPLE) (void *, const void *, int, int, int, int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_COPY_BLOB_DATA) (struct AILIANetwork *dst_net, unsigned int dst_blob_idx, struct AILIANetwork *src_net, unsigned int src_blob_idx) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_CREATE) (struct AILIANetwork **, int, int) |
typedef void(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_DESTROY) (struct AILIANetwork *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_BLOB_DATA) (struct AILIANetwork *, void *, unsigned int, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_BLOB_SHAPE) (struct AILIANetwork *, AILIAShape *, unsigned int, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_ENVIRONMENT) (AILIAEnvironment **env, unsigned int env_idx, unsigned int version) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_OPEN_WEIGHT_FILE_A) (struct AILIANetwork *, const char *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_OPEN_WEIGHT_FILE_W) (struct AILIANetwork *, const wchar_t *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_OPEN_WEIGHT_MEM) (struct AILIANetwork *, const void *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_SET_INPUT_BLOB_DATA) (struct AILIANetwork *, const void *, unsigned int, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_SET_INPUT_BLOB_SHAPE) (struct AILIANetwork *, const AILIAShape *, unsigned int, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_SET_MEMORY_MODE) (struct AILIANetwork *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_CREATE) (struct AILIATokenizer **, int, int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_DECODE) (struct AILIATokenizer *, const int *, unsigned int) |
typedef void(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_DESTROY) (struct AILIATokenizer *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_ENCODE) (struct AILIATokenizer *, const char *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_GET_TEXT) (struct AILIATokenizer *, char *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_GET_TEXT_LENGTH) (struct AILIATokenizer *, unsigned int *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_GET_TOKEN_COUNT) (struct AILIATokenizer *, unsigned int *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_GET_TOKENS) (struct AILIATokenizer *, int *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_OPEN_MODEL_FILE_A) (struct AILIATokenizer *, const char *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_OPEN_MODEL_FILE_W) (struct AILIATokenizer *, const wchar_t *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_UTF32_TO_UTF8) (char *, unsigned int *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_TOKENIZER_UTF8_TO_UTF32) (unsigned int *, unsigned int *, const char *, unsigned int) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_UPDATE) (struct AILIANetwork *) |
typedef int(AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK) (void *handle, const char *text) |
Notify the status during the inference.
handle | handle specified in ailiaSpeechSetIntermediateCallback |
text | text in the middle of reasoning |
typedef struct _AILIASpeechApiCallback AILIASpeechApiCallback |
typedef struct _AILIASpeechText AILIASpeechText |
const typedef char* AILIA_SPEECH_USER_API* AILIA_SPEECH_USER_API_AILIA_GET_ERROR_DETAIL | ( | struct AILIANetwork * | ) |
int AILIA_API ailiaSpeechBuffered | ( | struct AILIASpeech * | net, |
unsigned int * | buffered | ||
) |
Determines if there is enough data to perform speech recognition.
net | A network instance pointer |
buffered | Is data exist (1 : Exist, 0 : Not Exist) |
int AILIA_API ailiaSpeechComplete | ( | struct AILIASpeech * | net, |
unsigned int * | complete | ||
) |
Determines whether all data has been processed.
net | A network instance pointer |
complete | Is processing complete (1 : Complete, 0 : Not Complete) |
int AILIA_API ailiaSpeechCreate | ( | struct AILIASpeech ** | net, |
int | env_id, | ||
int | num_thread, | ||
int | memory_mode, | ||
int | task, | ||
int | flags, | ||
AILIASpeechApiCallback | callback, | ||
int | version | ||
) |
Creates a network instance.
net | A pointer to the network instance pointer |
env_id | The ID of the inference backend used for computation (obtained by ailiaGetEnvironment() ). It is selected automatically if AILIA_ENVIRONMENT_ID_AUTO is specified. |
num_thread | The upper limit on the number of threads (It is set automatically if AILIA_MULTITHREAD_AUTO |
memory_mode | The memory mode (AILIA_MEMORY_MODE_*) |
task | AILIA_SPEECH_TASK_* |
flag | OR of AILIA_SPEECH_FLAG_* |
api_callback | The callback for ailia API |
version | AILIA_SPEECH_API_CALLBACK_VERSION |
Creates a network instance.
void AILIA_API ailiaSpeechDestroy | ( | struct AILIASpeech * | net | ) |
It destroys the network instance.
net | A network instance pointer |
int AILIA_API ailiaSpeechFinalizeInputData | ( | struct AILIASpeech * | net | ) |
Finalize input PCM data to queue.
net | A network instance pointer |
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.
const char* AILIA_API ailiaSpeechGetErrorDetail | ( | struct AILIASpeech * | net | ) |
Returns the details of errors.
net | The network instance pointer |
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.
int AILIA_API ailiaSpeechGetText | ( | struct AILIASpeech * | net, |
AILIASpeechText * | text, | ||
unsigned int | version, | ||
unsigned int | idx | ||
) |
Get recognized text.
net | A network instance pointer |
text | Text |
version | AILIA_SPEECH_TEXT_VERSION |
idx | Text index |
The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called.
int AILIA_API ailiaSpeechGetTextCount | ( | struct AILIASpeech * | net, |
unsigned int * | count | ||
) |
Get recognized text count.
net | A network instance pointer |
count | Text count |
int AILIA_API ailiaSpeechOpenDictionaryFileA | ( | struct AILIASpeech * | net, |
const char * | dictionary_path, | ||
int | dictionary_type | ||
) |
Set dictionary for error correction.
net | A network instance pointer |
dictionary_path | The path name to the dictionary file (MBSC) |
dictionary_type | AILIA_SPEECH_DICTIONARY_TYPE_* |
int AILIA_API ailiaSpeechOpenDictionaryFileW | ( | struct AILIASpeech * | net, |
const wchar_t * | dictionary_path, | ||
int | dictionary_type | ||
) |
Set dictionary for error correction.
net | A network instance pointer |
dictionary_path | The path name to the dictionary file (UTF16) |
dictionary_type | AILIA_SPEECH_DICTIONARY_TYPE_* |
int AILIA_API ailiaSpeechOpenModelFileA | ( | struct AILIASpeech * | net, |
const char * | encoder_path, | ||
const char * | decoder_path, | ||
int | model_type | ||
) |
Set models into a network instance.
net | A network instance pointer |
encoder_path | The path name to the onnx file (MBSC) |
decoder_path | The path name to the onnx file (MBSC) |
model_type | AILIA_SPEECH_MODEL_TYPE_* |
int AILIA_API ailiaSpeechOpenModelFileW | ( | struct AILIASpeech * | net, |
const wchar_t * | encoder_path, | ||
const wchar_t * | decoder_path, | ||
int | model_type | ||
) |
Set models into a network instance.
net | A network instance pointer |
encoder_path | The path name to the onnx file (UTF16) |
decoder_path | The path name to the onnx file (UTF16) |
model_type | AILIA_SPEECH_MODEL_TYPE_* |
task | AILIA_SPEECH_TASK_* |
flag | OR of AILIA_SPEECH_FLAG_* |
int AILIA_API ailiaSpeechOpenPostProcessFileA | ( | struct AILIASpeech * | net, |
const char * | encoder_path, | ||
const char * | decoder_path, | ||
const char * | source_path, | ||
const char * | target_path, | ||
const char * | prefix, | ||
int | post_process_type | ||
) |
Set AI model for post process (MBSC)
net | A network instance pointer |
encoder_path | The path name to the onnx file (MBSC) |
decoder_path | The path name to the onnx file (MBSC) |
source_path | The path name to the tokenizer model file (MBSC) |
target_path | The path name to the tokenizer model file (MBSC) |
prefix | The prefix of T5 (UTF8), NULL for FuguMT |
post_process_type | AILIA_SPEECH_POST_PROCESS_TYPE_* |
int AILIA_API ailiaSpeechOpenPostProcessFileW | ( | struct AILIASpeech * | net, |
const wchar_t * | encoder_path, | ||
const wchar_t * | decoder_path, | ||
const wchar_t * | source_path, | ||
const wchar_t * | target_path, | ||
const char * | prefix, | ||
int | post_process_type | ||
) |
Set AI model for post process (UTF16)
net | A network instance pointer |
encoder_path | The path name to the onnx file (UTF16) |
decoder_path | The path name to the onnx file (UTF16) |
source_path | The path name to the tokenizer model file (UTF16) |
target_path | The path name to the tokenizer model file (UTF16) |
prefix | The prefix of T5 (UTF8), NULL for FuguMT |
post_process_type | AILIA_SPEECH_POST_PROCESS_TYPE_* |
int AILIA_API ailiaSpeechOpenVadFileA | ( | struct AILIASpeech * | net, |
const char * | vad_path, | ||
int | vad_type | ||
) |
Set vad model for voice activity detection.
net | A network instance pointer |
vad_path | The path name to the onnx file (MBSC) |
vad_type | AILIA_SPEECH_VAD_TYPE_* |
int AILIA_API ailiaSpeechOpenVadFileW | ( | struct AILIASpeech * | net, |
const wchar_t * | vad_path, | ||
int | vad_type | ||
) |
Set vad model for voice activity detection.
net | A network instance pointer |
vad_path | The path name to the onnx file (UTF16) |
vad_type | AILIA_SPEECH_VAD_TYPE_* |
int AILIA_API ailiaSpeechPostProcess | ( | struct AILIASpeech * | net | ) |
Execute post process.
net | A network instance pointer |
Get the recognition result with ailiaSpeechGetText API.
int AILIA_API ailiaSpeechPushInputData | ( | struct AILIASpeech * | net, |
const float * | src, | ||
unsigned int | channels, | ||
unsigned int | samples, | ||
unsigned int | sampling_rate | ||
) |
Push PCM data to queue.
net | A network instance pointer |
src | The input pcm data (channel interleave, LRLR order for stereo, -1.0 to 1.0 pcm range) |
channels | The number of pcm channels |
samples | The number of pcm samples per channel |
sampling_rate | The sampling rate (Hz) |
int AILIA_API ailiaSpeechResetTranscribeState | ( | struct AILIASpeech * | net | ) |
It resets the network instance.
net | A network instance pointer |
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.
int AILIA_API ailiaSpeechSetConstraint | ( | struct AILIASpeech * | net, |
const char * | constraint, | ||
int | type | ||
) |
Set constraint.
net | A network instance pointer |
constraint | The text of constraint (UTF8) |
type | The type of constraint (AILIA_SPEECH_CONSTRAINT_*) |
int AILIA_API ailiaSpeechSetIntermediateCallback | ( | struct AILIASpeech * | net, |
AILIA_SPEECH_USER_API_INTERMEDIATE_CALLBACK | callback, | ||
void * | handle | ||
) |
Set a callback to get intermediate results of recognition.
net | A network instance pointer |
callback | callback |
handle | handle for callback |
The return value does not have to be released. The string is valid until the next ailiaSpeech API function is called.
int AILIA_API ailiaSpeechSetLanguage | ( | struct AILIASpeech * | net, |
const char * | language | ||
) |
Set language.
net | A network instance pointer |
language | Language code (en, ja, etc) |
If you set "auto" to language, language will automatically detected.
int AILIA_API ailiaSpeechSetPrompt | ( | struct AILIASpeech * | net, |
const char * | prompt | ||
) |
Set prompt.
net | A network instance pointer |
prompt | The text of prompt (UTF8) |
int AILIA_API ailiaSpeechSetSilentThreshold | ( | struct AILIASpeech * | net, |
float | silent_threshold, | ||
float | speech_sec, | ||
float | no_speech_sec | ||
) |
Set silent threshold.
net | A network instance pointer |
silent_threshold | volume threshold |
speech_sec | speech time |
no_speech_sec | no_speech time |
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.
int AILIA_API ailiaSpeechSetText | ( | struct AILIASpeech * | net, |
const AILIASpeechText * | text, | ||
unsigned int | version, | ||
unsigned int | idx | ||
) |
Set postprocess text.
net | A network instance pointer |
text | Text |
version | AILIA_SPEECH_TEXT_VERSION |
idx | Text index |
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.
int AILIA_API ailiaSpeechTranscribe | ( | struct AILIASpeech * | net | ) |
Speech recognition.
net | A network instance pointer |
Get the recognition result with ailiaSpeechGetText API.