ailia_voice  1.5.0.0
Classes | Macros | Typedefs | Functions
ailia_voice.h File Reference
#include "ailia.h"
#include "ailia_audio.h"
Include dependency graph for ailia_voice.h:

Go to the source code of this file.

Classes

struct  _AILIAVoiceApiCallback
 

Macros

#define AILIA_API   __stdcall
 
#define AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK   (0)
 Format for OpenJTalk. More...
 
#define AILIA_VOICE_DICTIONARY_TYPE_G2P_EN   (1)
 Format for G2P_EN. More...
 
#define AILIA_VOICE_DICTIONARY_TYPE_G2P_CN   (2)
 Format for G2P_CN. More...
 
#define AILIA_VOICE_DICTIONARY_TYPE_G2PW   (3)
 Format for G2PW (Chinese polyphone disambiguation) More...
 
#define AILIA_VOICE_MODEL_TYPE_TACOTRON2   (0)
 Format for Tacotron2. More...
 
#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS   (1)
 Format for GPT-SoVITS. More...
 
#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2   (2)
 Format for GPT-SoVITS V2. More...
 
#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3   (3)
 Format for GPT-SoVITS v3. More...
 
#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO   (4)
 Format for GPT-SoVITS v2-pro. More...
 
#define AILIA_VOICE_CLEANER_TYPE_BASIC   (0)
 BasicCleaner. More...
 
#define AILIA_VOICE_CLEANER_TYPE_ENGLISH   (1)
 EnglishCleaner. More...
 
#define AILIA_VOICE_FLAG_NONE   (0)
 Default flag. More...
 
#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN   (1)
 GPT SOVITS English. More...
 
#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA   (2)
 GPT SOVITS Japanese. More...
 
#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_ZH   (3)
 GPT SOVITS Chinese. More...
 
#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION   (2)
 
#define AILIA_VOICE_USER_API
 
#define AILIA_VOICE_API_CALLBACK_VERSION   (3)
 Struct version. More...
 
#define ailiaVoiceSetUserDictionaryFile   ailiaVoiceSetUserDictionaryFileA
 
#define ailiaVoiceOpenDictionaryFile   ailiaVoiceOpenDictionaryFileA
 
#define ailiaVoiceOpenModelFile   ailiaVoiceOpenModelFileA
 
#define ailiaVoiceOpenTacotron2ModelFile   ailiaVoiceOpenTacotron2ModelFileA
 
#define ailiaVoiceOpenGPTSoVITSV1ModelFile   ailiaVoiceOpenGPTSoVITSV1ModelFileA
 
#define ailiaVoiceOpenGPTSoVITSV2ModelFile   ailiaVoiceOpenGPTSoVITSV2ModelFileA
 
#define ailiaVoiceOpenGPTSoVITSV3ModelFile   ailiaVoiceOpenGPTSoVITSV3ModelFileA
 
#define ailiaVoiceOpenGPTSoVITSV2ProModelFile   ailiaVoiceOpenGPTSoVITSV2ProModelFileA
 

Typedefs

typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE) (void *, const void *, int, int, int, int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN) (int *, int, int, int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_AUDIO_GET_FRAME_LEN) (int *, int, int, int, int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_AUDIO_GET_SPECTROGRAM) (void *, const void *, int, int, int, int, int, int, int, float, int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_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_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_CREATE) (struct AILIANetwork **, int, int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A) (struct AILIANetwork *, const char *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W) (struct AILIANetwork *, const wchar_t *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM) (struct AILIANetwork *, const void *, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE) (struct AILIANetwork *, unsigned int)
 
typedef void(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_DESTROY) (struct AILIANetwork *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_UPDATE) (struct AILIANetwork *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA) (struct AILIANetwork *, void *, unsigned int, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA) (struct AILIANetwork *, const void *, unsigned int, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE) (struct AILIANetwork *, const AILIAShape *, unsigned int, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE) (struct AILIANetwork *, AILIAShape *, unsigned int, unsigned int)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT) (struct AILIANetwork *, unsigned int *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT) (struct AILIANetwork *, unsigned int *)
 
typedef const char *(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL) (struct AILIANetwork *)
 
typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_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 struct _AILIAVoiceApiCallback AILIAVoiceApiCallback
 

Functions

int AILIA_API ailiaVoiceCreate (struct AILIAVoice **net, int env_id, int num_thread, int memory_mode, int flags, AILIAVoiceApiCallback callback, int version)
 Creates a Voice instance. More...
 
int AILIA_API ailiaVoiceSetUserDictionaryFileA (struct AILIAVoice *net, const char *dictionary_path, int dictionary_type)
 Set user dictionary into a network instance. More...
 
int AILIA_API ailiaVoiceSetUserDictionaryFileW (struct AILIAVoice *net, const wchar_t *dictionary_path, int dictionary_type)
 Set user dictionary into a network instance. More...
 
int AILIA_API ailiaVoiceOpenDictionaryFileA (struct AILIAVoice *net, const char *dictionary_path, int dictionary_type)
 Set dictionary into a network instance. More...
 
int AILIA_API ailiaVoiceOpenDictionaryFileW (struct AILIAVoice *net, const wchar_t *dictionary_path, int dictionary_type)
 Set dictionary into a network instance. More...
 
int AILIA_API ailiaVoiceOpenModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *wave, const char *ssl, int model_type, int cleaner_type)
 Set models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *wave, const wchar_t *ssl, int model_type, int cleaner_type)
 Set models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenTacotron2ModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *wave, int cleaner_type)
 Set Tacotron2 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenTacotron2ModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *wave, int cleaner_type)
 Set Tacotron2 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV1ModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *wave, const char *ssl)
 Set GPT-SoVITS V1 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV1ModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *wave, const wchar_t *ssl)
 Set GPT-SoVITS V1 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV2ModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *wave, const char *ssl, const char *chinese_bert, const char *vocab)
 Set GPT-SoVITS V2 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV2ModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *wave, const wchar_t *ssl, const wchar_t *chinese_bert, const wchar_t *vocab)
 Set GPT-SoVITS V2 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV3ModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *ssl, const char *vq, const char *cfm, const char *bigvgan, const char *chinese_bert, const char *vocab)
 Set GPT-SoVITS V3 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV3ModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *ssl, const wchar_t *vq, const wchar_t *cfm, const wchar_t *bigvgan, const wchar_t *chinese_bert, const wchar_t *vocab)
 Set GPT-SoVITS V3 models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV2ProModelFileA (struct AILIAVoice *net, const char *encoder, const char *decoder1, const char *decoder2, const char *ssl, const char *vits, const char *sv, const char *chinese_bert, const char *vocab)
 Set GPT-SoVITS V2-Pro models into a network instance. More...
 
int AILIA_API ailiaVoiceOpenGPTSoVITSV2ProModelFileW (struct AILIAVoice *net, const wchar_t *encoder, const wchar_t *decoder1, const wchar_t *decoder2, const wchar_t *ssl, const wchar_t *vits, const wchar_t *sv, const wchar_t *chinese_bert, const wchar_t *vocab)
 Set GPT-SoVITS V2-Pro models into a network instance. More...
 
int AILIA_API ailiaVoiceGraphemeToPhoneme (struct AILIAVoice *net, const char *utf8, int g2p_type)
 Perform g2p. More...
 
int AILIA_API ailiaVoiceExtractFullContext (struct AILIAVoice *net, const char *utf8)
 Perform ExtractFullContext. More...
 
int AILIA_API ailiaVoiceGetFeatureLength (struct AILIAVoice *net, unsigned int *len)
 Gets the size of features. (Include null) More...
 
int AILIA_API ailiaVoiceGetFeatures (struct AILIAVoice *net, char *features, unsigned int len)
 Gets the decoded features. More...
 
int AILIA_API ailiaVoiceSetReference (struct AILIAVoice *net, float *buf, unsigned int buf_size, unsigned int channels, unsigned int sampling_rate, const char *features)
 Set the waveform and text as references for zero-shot voice synthesis. More...
 
int AILIA_API ailiaVoiceSetSampleSteps (struct AILIAVoice *net, int steps)
 Set the number of CFM sampling steps for GPT-SoVITS v3. More...
 
int AILIA_API ailiaVoiceSetSpeed (struct AILIAVoice *net, float speed)
 Set the speech speed for synthesis. More...
 
int AILIA_API ailiaVoiceSetModelType (struct AILIAVoice *net, int model_type)
 Set the model type used for G2P processing. More...
 
int AILIA_API ailiaVoiceInference (struct AILIAVoice *net, const char *utf8)
 Perform inference. More...
 
int AILIA_API ailiaVoiceGetWaveInfo (struct AILIAVoice *net, unsigned int *samples, unsigned int *channels, unsigned int *sampling_rate)
 Gets the information of wave. More...
 
int AILIA_API ailiaVoiceGetWave (struct AILIAVoice *net, float *buf, unsigned int buf_size)
 Gets the decoded features. More...
 
void AILIA_API ailiaVoiceDestroy (struct AILIAVoice *net)
 It destroys the Voice instance. More...
 
const char *AILIA_API ailiaVoiceGetErrorDetail (struct AILIAVoice *net)
 Returns the details of errors. More...
 

Macro Definition Documentation

◆ AILIA_API

#define AILIA_API   __stdcall

◆ AILIA_VOICE_API_CALLBACK_VERSION

#define AILIA_VOICE_API_CALLBACK_VERSION   (3)

Struct version.

◆ AILIA_VOICE_CLEANER_TYPE_BASIC

#define AILIA_VOICE_CLEANER_TYPE_BASIC   (0)

BasicCleaner.

◆ AILIA_VOICE_CLEANER_TYPE_ENGLISH

#define AILIA_VOICE_CLEANER_TYPE_ENGLISH   (1)

EnglishCleaner.

◆ AILIA_VOICE_DICTIONARY_TYPE_G2P_CN

#define AILIA_VOICE_DICTIONARY_TYPE_G2P_CN   (2)

Format for G2P_CN.

◆ AILIA_VOICE_DICTIONARY_TYPE_G2P_EN

#define AILIA_VOICE_DICTIONARY_TYPE_G2P_EN   (1)

Format for G2P_EN.

◆ AILIA_VOICE_DICTIONARY_TYPE_G2PW

#define AILIA_VOICE_DICTIONARY_TYPE_G2PW   (3)

Format for G2PW (Chinese polyphone disambiguation)

◆ AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK

#define AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK   (0)

Format for OpenJTalk.

◆ AILIA_VOICE_FLAG_NONE

#define AILIA_VOICE_FLAG_NONE   (0)

Default flag.

◆ AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN

#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN   (1)

GPT SOVITS English.

◆ AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA

#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA   (2)

GPT SOVITS Japanese.

◆ AILIA_VOICE_G2P_TYPE_GPT_SOVITS_ZH

#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_ZH   (3)

GPT SOVITS Chinese.

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS

#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS   (1)

Format for GPT-SoVITS.

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2

#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2   (2)

Format for GPT-SoVITS V2.

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO

#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO   (4)

Format for GPT-SoVITS v2-pro.

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3

#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3   (3)

Format for GPT-SoVITS v3.

◆ AILIA_VOICE_MODEL_TYPE_TACOTRON2

#define AILIA_VOICE_MODEL_TYPE_TACOTRON2   (0)

Format for Tacotron2.

◆ AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION

#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION   (2)

◆ AILIA_VOICE_USER_API

#define AILIA_VOICE_USER_API

◆ ailiaVoiceOpenDictionaryFile

#define ailiaVoiceOpenDictionaryFile   ailiaVoiceOpenDictionaryFileA

◆ ailiaVoiceOpenGPTSoVITSV1ModelFile

#define ailiaVoiceOpenGPTSoVITSV1ModelFile   ailiaVoiceOpenGPTSoVITSV1ModelFileA

◆ ailiaVoiceOpenGPTSoVITSV2ModelFile

#define ailiaVoiceOpenGPTSoVITSV2ModelFile   ailiaVoiceOpenGPTSoVITSV2ModelFileA

◆ ailiaVoiceOpenGPTSoVITSV2ProModelFile

#define ailiaVoiceOpenGPTSoVITSV2ProModelFile   ailiaVoiceOpenGPTSoVITSV2ProModelFileA

◆ ailiaVoiceOpenGPTSoVITSV3ModelFile

#define ailiaVoiceOpenGPTSoVITSV3ModelFile   ailiaVoiceOpenGPTSoVITSV3ModelFileA

◆ ailiaVoiceOpenModelFile

#define ailiaVoiceOpenModelFile   ailiaVoiceOpenModelFileA

◆ ailiaVoiceOpenTacotron2ModelFile

#define ailiaVoiceOpenTacotron2ModelFile   ailiaVoiceOpenTacotron2ModelFileA

◆ ailiaVoiceSetUserDictionaryFile

#define ailiaVoiceSetUserDictionaryFile   ailiaVoiceSetUserDictionaryFileA

Typedef Documentation

◆ AILIA_VOICE_USER_API_AILIA_AUDIO_GET_FRAME_LEN

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_GET_FRAME_LEN) (int *, int, int, int, int)

◆ AILIA_VOICE_USER_API_AILIA_AUDIO_GET_MEL_SPECTROGRAM

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_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)

◆ AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN) (int *, int, int, int)

◆ AILIA_VOICE_USER_API_AILIA_AUDIO_GET_SPECTROGRAM

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_GET_SPECTROGRAM) (void *, const void *, int, int, int, int, int, int, int, float, int)

◆ AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE) (void *, const void *, int, int, int, int)

◆ AILIA_VOICE_USER_API_AILIA_COPY_BLOB_DATA

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_COPY_BLOB_DATA) (struct AILIANetwork *dst_net, unsigned int dst_blob_idx, struct AILIANetwork *src_net, unsigned int src_blob_idx)

◆ AILIA_VOICE_USER_API_AILIA_CREATE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_CREATE) (struct AILIANetwork **, int, int)

◆ AILIA_VOICE_USER_API_AILIA_DESTROY

typedef void(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_DESTROY) (struct AILIANetwork *)

◆ AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA) (struct AILIANetwork *, void *, unsigned int, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX) (struct AILIANetwork *, unsigned int *, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE) (struct AILIANetwork *, AILIAShape *, unsigned int, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL

typedef const char*(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL) (struct AILIANetwork *)

◆ AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT) (struct AILIANetwork *, unsigned int *)

◆ AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT) (struct AILIANetwork *, unsigned int *)

◆ AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A) (struct AILIANetwork *, const char *)

◆ AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W) (struct AILIANetwork *, const wchar_t *)

◆ AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM) (struct AILIANetwork *, const void *, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA) (struct AILIANetwork *, const void *, unsigned int, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE) (struct AILIANetwork *, const AILIAShape *, unsigned int, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE) (struct AILIANetwork *, unsigned int)

◆ AILIA_VOICE_USER_API_AILIA_UPDATE

typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_UPDATE) (struct AILIANetwork *)

◆ AILIAVoiceApiCallback

Function Documentation

◆ ailiaVoiceCreate()

int AILIA_API ailiaVoiceCreate ( struct AILIAVoice **  net,
int  env_id,
int  num_thread,
int  memory_mode,
int  flags,
AILIAVoiceApiCallback  callback,
int  version 
)

Creates a Voice instance.

Parameters
netA pointer to the Voice 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_*)
flagOR of AILIA_VOICE_FLAG_*
api_callbackThe callback for ailia API
versionAILIA_VOICE_API_CALLBACK_VERSION is specified.)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Creates a Voice instance.

◆ ailiaVoiceDestroy()

void AILIA_API ailiaVoiceDestroy ( struct AILIAVoice *  net)

It destroys the Voice instance.

Parameters
netA Voice instance pointer

◆ ailiaVoiceExtractFullContext()

int AILIA_API ailiaVoiceExtractFullContext ( struct AILIAVoice *  net,
const char *  utf8 
)

Perform ExtractFullContext.

Parameters
netA Voice instance pointer
textText (UTF8)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Get the result with ailiaVoiceGetFeatures API.

◆ ailiaVoiceGetErrorDetail()

const char* AILIA_API ailiaVoiceGetErrorDetail ( struct AILIAVoice *  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 ailiaVoice API function is called.

◆ ailiaVoiceGetFeatureLength()

int AILIA_API ailiaVoiceGetFeatureLength ( struct AILIAVoice *  net,
unsigned int *  len 
)

Gets the size of features. (Include null)

Parameters
netA Voice instance pointer
lenThe length of features
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceGetFeatures()

int AILIA_API ailiaVoiceGetFeatures ( struct AILIAVoice *  net,
char *  features,
unsigned int  len 
)

Gets the decoded features.

Parameters
netA Voice instance pointer
featuresFeatures(UTF8)
lenThe length of features
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

If ailiaVoiceGraphemeToPhoneme() or ailiaVoiceExtractFullContext() is not run at all, the function returns AILIA_STATUS_INVALID_STATE .

◆ ailiaVoiceGetWave()

int AILIA_API ailiaVoiceGetWave ( struct AILIAVoice *  net,
float *  buf,
unsigned int  buf_size 
)

Gets the decoded features.

Parameters
netA Voice instance pointer
bufPCM Wave (Normalized by 0 - 1)
buf_sizeBuffer size (Byte unit)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

If ailiaVoiceInference() is not run at all, the function returns AILIA_STATUS_INVALID_STATE .

◆ ailiaVoiceGetWaveInfo()

int AILIA_API ailiaVoiceGetWaveInfo ( struct AILIAVoice *  net,
unsigned int *  samples,
unsigned int *  channels,
unsigned int *  sampling_rate 
)

Gets the information of wave.

Parameters
netA Voice instance pointer
samplesNumber of samples (per channel)
channelsNumber of channels
sampling_rateSampling rate
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceGraphemeToPhoneme()

int AILIA_API ailiaVoiceGraphemeToPhoneme ( struct AILIAVoice *  net,
const char *  utf8,
int  g2p_type 
)

Perform g2p.

Parameters
netA Voice instance pointer
textText(UTF8)
g2p_typeAILIA_VOICE_G2P_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Get the result with ailiaVoiceGetFeatures API.

◆ ailiaVoiceInference()

int AILIA_API ailiaVoiceInference ( struct AILIAVoice *  net,
const char *  utf8 
)

Perform inference.

Parameters
netA Voice instance pointer
textText(UTF8)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Get the result with ailiaVoiceGetWave API.

◆ ailiaVoiceOpenDictionaryFileA()

int AILIA_API ailiaVoiceOpenDictionaryFileA ( struct AILIAVoice *  net,
const char *  dictionary_path,
int  dictionary_type 
)

Set dictionary into a network instance.

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

For Chinese, GPT-SoVITS V1 requires only AILIA_VOICE_DICTIONARY_TYPE_G2P_CN . GPT-SoVITS V2 and V3 require both AILIA_VOICE_DICTIONARY_TYPE_G2P_CN and AILIA_VOICE_DICTIONARY_TYPE_G2PW . When using G2PW, load G2P_CN first.

◆ ailiaVoiceOpenDictionaryFileW()

int AILIA_API ailiaVoiceOpenDictionaryFileW ( struct AILIAVoice *  net,
const wchar_t *  dictionary_path,
int  dictionary_type 
)

Set dictionary into a network instance.

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

For Chinese, GPT-SoVITS V1 requires only AILIA_VOICE_DICTIONARY_TYPE_G2P_CN . GPT-SoVITS V2 and V3 require both AILIA_VOICE_DICTIONARY_TYPE_G2P_CN and AILIA_VOICE_DICTIONARY_TYPE_G2PW . When using G2PW, load G2P_CN first.

◆ ailiaVoiceOpenGPTSoVITSV1ModelFileA()

int AILIA_API ailiaVoiceOpenGPTSoVITSV1ModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  wave,
const char *  ssl 
)

Set GPT-SoVITS V1 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (MBSC)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (MBSC)
decoder2The path name to the onnx file (t2s_sdec.onnx) (MBSC)
waveThe path name to the onnx file (vits.onnx) (MBSC)
sslThe path name to the onnx file (cnhubert.onnx) (MBSC)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV1ModelFileW()

int AILIA_API ailiaVoiceOpenGPTSoVITSV1ModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  wave,
const wchar_t *  ssl 
)

Set GPT-SoVITS V1 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (UTF16)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (UTF16)
decoder2The path name to the onnx file (t2s_sdec.onnx) (UTF16)
waveThe path name to the onnx file (vits.onnx) (UTF16)
sslThe path name to the onnx file (cnhubert.onnx) (UTF16)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV2ModelFileA()

int AILIA_API ailiaVoiceOpenGPTSoVITSV2ModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  wave,
const char *  ssl,
const char *  chinese_bert,
const char *  vocab 
)

Set GPT-SoVITS V2 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (MBSC)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (MBSC)
decoder2The path name to the onnx file (t2s_sdec.onnx) (MBSC)
waveThe path name to the onnx file (vits.onnx) (MBSC)
sslThe path name to the onnx file (cnhubert.onnx) (MBSC)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (MBSC) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (MBSC) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV2ModelFileW()

int AILIA_API ailiaVoiceOpenGPTSoVITSV2ModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  wave,
const wchar_t *  ssl,
const wchar_t *  chinese_bert,
const wchar_t *  vocab 
)

Set GPT-SoVITS V2 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (UTF16)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (UTF16)
decoder2The path name to the onnx file (t2s_sdec.onnx) (UTF16)
waveThe path name to the onnx file (vits.onnx) (UTF16)
sslThe path name to the onnx file (cnhubert.onnx) (UTF16)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (UTF16) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (UTF16) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV2ProModelFileA()

int AILIA_API ailiaVoiceOpenGPTSoVITSV2ProModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  ssl,
const char *  vits,
const char *  sv,
const char *  chinese_bert,
const char *  vocab 
)

Set GPT-SoVITS V2-Pro models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (MBSC)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (MBSC)
decoder2The path name to the onnx file (t2s_sdec.onnx) (MBSC)
sslThe path name to the onnx file (cnhubert.onnx) (MBSC)
vitsThe path name to the onnx file (vits.onnx) (MBSC)
svThe path name to the onnx file (sv.onnx) (MBSC)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (MBSC) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (MBSC) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV2ProModelFileW()

int AILIA_API ailiaVoiceOpenGPTSoVITSV2ProModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  ssl,
const wchar_t *  vits,
const wchar_t *  sv,
const wchar_t *  chinese_bert,
const wchar_t *  vocab 
)

Set GPT-SoVITS V2-Pro models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (UTF16)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (UTF16)
decoder2The path name to the onnx file (t2s_sdec.onnx) (UTF16)
sslThe path name to the onnx file (cnhubert.onnx) (UTF16)
vitsThe path name to the onnx file (vits.onnx) (UTF16)
svThe path name to the onnx file (sv.onnx) (UTF16)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (UTF16) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (UTF16) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV3ModelFileA()

int AILIA_API ailiaVoiceOpenGPTSoVITSV3ModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  ssl,
const char *  vq,
const char *  cfm,
const char *  bigvgan,
const char *  chinese_bert,
const char *  vocab 
)

Set GPT-SoVITS V3 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (MBSC)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (MBSC)
decoder2The path name to the onnx file (t2s_sdec.onnx) (MBSC)
sslThe path name to the onnx file (cnhubert.onnx) (MBSC)
vqThe path name to the onnx file (vq_model.onnx) (MBSC)
cfmThe path name to the onnx file (vq_cfm.onnx) (MBSC)
bigvganThe path name to the onnx file (bigvgan_model.onnx) (MBSC)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (MBSC) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (MBSC) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenGPTSoVITSV3ModelFileW()

int AILIA_API ailiaVoiceOpenGPTSoVITSV3ModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  ssl,
const wchar_t *  vq,
const wchar_t *  cfm,
const wchar_t *  bigvgan,
const wchar_t *  chinese_bert,
const wchar_t *  vocab 
)

Set GPT-SoVITS V3 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (t2s_encoder.onnx) (UTF16)
decoder1The path name to the onnx file (t2s_fsdec.onnx) (UTF16)
decoder2The path name to the onnx file (t2s_sdec.onnx) (UTF16)
sslThe path name to the onnx file (cnhubert.onnx) (UTF16)
vqThe path name to the onnx file (vq_model.onnx) (UTF16)
cfmThe path name to the onnx file (vq_cfm.onnx) (UTF16)
bigvganThe path name to the onnx file (bigvgan_model.onnx) (UTF16)
chinese_bertThe path name to the onnx file (chinese-roberta.onnx) (UTF16) (NULL to disable BERT)
vocabThe path name to the vocab file (vocab.txt) (UTF16) (NULL to disable BERT)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenModelFileA()

int AILIA_API ailiaVoiceOpenModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  wave,
const char *  ssl,
int  model_type,
int  cleaner_type 
)

Set models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (MBSC)
decoder1The path name to the onnx file (MBSC)
decoder2The path name to the onnx file (MBSC)
waveThe path name to the onnx file (MBSC)
sslThe path name to the onnx file (MBSC)
model_typeAILIA_VOICE_MODEL_TYPE_*
cleaner_typeAILIA_VOICE_CLEANER_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

This function is deprecated. Use ailiaVoiceOpenTacotron2ModelFileA, ailiaVoiceOpenGPTSoVITSV1ModelFileA, ailiaVoiceOpenGPTSoVITSV2ModelFileA instead.

◆ ailiaVoiceOpenModelFileW()

int AILIA_API ailiaVoiceOpenModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  wave,
const wchar_t *  ssl,
int  model_type,
int  cleaner_type 
)

Set models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (UTF16)
decoder1The path name to the onnx file (UTF16)
decoder2The path name to the onnx file (UTF16)
waveThe path name to the onnx file (UTF16)
sslThe path name to the onnx file (UTF16)
model_typeAILIA_VOICE_MODEL_TYPE_*
cleaner_typeAILIA_VOICE_CLEANER_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

This function is deprecated. Use ailiaVoiceOpenTacotron2ModelFileW, ailiaVoiceOpenGPTSoVITSV1ModelFileW, ailiaVoiceOpenGPTSoVITSV2ModelFileW instead.

◆ ailiaVoiceOpenTacotron2ModelFileA()

int AILIA_API ailiaVoiceOpenTacotron2ModelFileA ( struct AILIAVoice *  net,
const char *  encoder,
const char *  decoder1,
const char *  decoder2,
const char *  wave,
int  cleaner_type 
)

Set Tacotron2 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (encoder.onnx) (MBSC)
decoder1The path name to the onnx file (decoder_iter.onnx) (MBSC)
decoder2The path name to the onnx file (postnet.onnx) (MBSC)
waveThe path name to the onnx file (waveglow.onnx) (MBSC)
cleaner_typeAILIA_VOICE_CLEANER_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceOpenTacotron2ModelFileW()

int AILIA_API ailiaVoiceOpenTacotron2ModelFileW ( struct AILIAVoice *  net,
const wchar_t *  encoder,
const wchar_t *  decoder1,
const wchar_t *  decoder2,
const wchar_t *  wave,
int  cleaner_type 
)

Set Tacotron2 models into a network instance.

Parameters
netA network instance pointer
encoderThe path name to the onnx file (encoder.onnx) (UTF16)
decoder1The path name to the onnx file (decoder_iter.onnx) (UTF16)
decoder2The path name to the onnx file (postnet.onnx) (UTF16)
waveThe path name to the onnx file (waveglow.onnx) (UTF16)
cleaner_typeAILIA_VOICE_CLEANER_TYPE_*
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceSetModelType()

int AILIA_API ailiaVoiceSetModelType ( struct AILIAVoice *  net,
int  model_type 
)

Set the model type used for G2P processing.

Parameters
netA Voice instance pointer
model_typeModel type (AILIA_VOICE_MODEL_TYPE_GPT_SOVITS, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V3, AILIA_VOICE_MODEL_TYPE_GPT_SOVITS_V2_PRO)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Used to set the model type when using G2P standalone without opening model files. If ailiaVoiceOpenModelFileA or ailiaVoiceOpenGPTSoVITSV3ModelFileA is called, the model type is set automatically, so calling this API is not required.

◆ ailiaVoiceSetReference()

int AILIA_API ailiaVoiceSetReference ( struct AILIAVoice *  net,
float *  buf,
unsigned int  buf_size,
unsigned int  channels,
unsigned int  sampling_rate,
const char *  features 
)

Set the waveform and text as references for zero-shot voice synthesis.

Parameters
netA Voice instance pointer
bufPCM Wave (Normalized by 0 - 1)
buf_sizebuffer size (byte unit)
channelsnum channels
sampling_ratesampling rate
featuresFeature (UTF8)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceSetSampleSteps()

int AILIA_API ailiaVoiceSetSampleSteps ( struct AILIAVoice *  net,
int  steps 
)

Set the number of CFM sampling steps for GPT-SoVITS v3.

Parameters
netA Voice instance pointer
stepsNumber of Euler ODE steps for CFM (default 4)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

◆ ailiaVoiceSetSpeed()

int AILIA_API ailiaVoiceSetSpeed ( struct AILIAVoice *  net,
float  speed 
)

Set the speech speed for synthesis.

Parameters
netA Voice instance pointer
speedSpeed value (default 1.0, must be greater than 0)
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.

Supported by GPT-SoVITS V2 and V3. Not effective for V1.

◆ ailiaVoiceSetUserDictionaryFileA()

int AILIA_API ailiaVoiceSetUserDictionaryFileA ( struct AILIAVoice *  net,
const char *  dictionary_path,
int  dictionary_type 
)

Set user dictionary into a network instance.

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

You need to call before ailiaVoiceOpenDictionaryFileA.

◆ ailiaVoiceSetUserDictionaryFileW()

int AILIA_API ailiaVoiceSetUserDictionaryFileW ( struct AILIAVoice *  net,
const wchar_t *  dictionary_path,
int  dictionary_type 
)

Set user dictionary into a network instance.

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

You need to call before ailiaVoiceOpenDictionaryFileW.