diff --git a/supplemental/voice/cpp/en/about.html b/supplemental/voice/cpp/en/about.html index e57f75de..6dc628f0 100644 --- a/supplemental/voice/cpp/en/about.html +++ b/supplemental/voice/cpp/en/about.html @@ -22,7 +22,7 @@
ailia_voice -  1.0.0.0 +  1.1.0.0
@@ -73,7 +73,7 @@

Features of ailia AI Voice

Multilingual support

-

English and Japanese voice synthesis models are available. We offer the official NVIDIA Tacotron2 model for English and the official GPT-SoVITS model for Japanese.

+

You can use English speech synthesis models and Japanese speech synthesis models. For English, you can use GPT-SoVITS or Tacotron2, and for Japanese, you can use GPT-SoVITS.

Running offline

Text-to-speech using ailia Voice does not rely on any cloud service. Moreover, it is possible to run using only a CPU, without any hard requirement for a GPU.

diff --git a/supplemental/voice/cpp/en/about_8md.html b/supplemental/voice/cpp/en/about_8md.html index d38e2f33..75e34b1f 100644 --- a/supplemental/voice/cpp/en/about_8md.html +++ b/supplemental/voice/cpp/en/about_8md.html @@ -22,7 +22,7 @@
ailia_voice -  1.0.0.0 +  1.1.0.0
diff --git a/supplemental/voice/cpp/en/ailia__voice_8h.html b/supplemental/voice/cpp/en/ailia__voice_8h.html index 513f2583..7ec4716b 100644 --- a/supplemental/voice/cpp/en/ailia__voice_8h.html +++ b/supplemental/voice/cpp/en/ailia__voice_8h.html @@ -22,7 +22,7 @@
ailia_voice -  1.0.0.0 +  1.1.0.0
@@ -102,6 +102,9 @@ #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_MODEL_TYPE_TACOTRON2   (0)  Format for Tacotron2. More...
  @@ -117,18 +120,14 @@ #define AILIA_VOICE_FLAG_NONE   (0)  Default flag. More...
  -#define AILIA_VOICE_TEXT_POST_PROCESS_NONE   (0) - Default flag. More...
-  -#define AILIA_VOICE_TEXT_POST_PROCESS_REMOVE_SPACE   (1) - Remove space. 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_TEXT_POST_PROCESS_APPEND_PUNCTUATION   (2) - Add punctuation. More...
  -#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_ACCENT   (4) - Add accent. More...
-  #define AILIA_VOICE_USER_API   #define AILIA_VOICE_API_CALLBACK_VERSION   (1) @@ -197,9 +196,9 @@ 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 ailiaVoiceGraphemeToPhoneme (struct AILIAVoice *net, const char *utf8, int post_process) - Perform g2p. 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...
  @@ -291,132 +290,130 @@

-

◆ AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK

+ +

◆ AILIA_VOICE_DICTIONARY_TYPE_G2P_EN

- +
#define AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK   (0)#define AILIA_VOICE_DICTIONARY_TYPE_G2P_EN   (1)
-

Format for OpenJTalk.

+

Format for G2P_EN.

- -

◆ AILIA_VOICE_FLAG_NONE

+ +

◆ AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK

- +
#define AILIA_VOICE_FLAG_NONE   (0)#define AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK   (0)
-

Default flag.

+

Format for OpenJTalk.

- -

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS

+ +

◆ AILIA_VOICE_FLAG_NONE

- +
#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS   (1)#define AILIA_VOICE_FLAG_NONE   (0)
-

Format for GPT-SoVITS.

+

Default flag.

- -

◆ AILIA_VOICE_MODEL_TYPE_TACOTRON2

+ +

◆ AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN

- +
#define AILIA_VOICE_MODEL_TYPE_TACOTRON2   (0)#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN   (1)
-

Format for Tacotron2.

+

GPT SOVITS English.

- -

◆ AILIA_VOICE_TEXT_POST_PROCESS_APPEND_ACCENT

+ +

◆ AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA

- +
#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_ACCENT   (4)#define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA   (2)
-

Add accent.

+

GPT SOVITS Japanese.

- -

◆ AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION

+ +

◆ AILIA_VOICE_MODEL_TYPE_GPT_SOVITS

- +
#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION   (2)#define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS   (1)
-

Add punctuation.

+

Format for GPT-SoVITS.

- -

◆ AILIA_VOICE_TEXT_POST_PROCESS_NONE

+ +

◆ AILIA_VOICE_MODEL_TYPE_TACOTRON2

- +
#define AILIA_VOICE_TEXT_POST_PROCESS_NONE   (0)#define AILIA_VOICE_MODEL_TYPE_TACOTRON2   (0)
-

Default flag.

+

Format for Tacotron2.

- -

◆ AILIA_VOICE_TEXT_POST_PROCESS_REMOVE_SPACE

+ +

◆ AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION

- +
#define AILIA_VOICE_TEXT_POST_PROCESS_REMOVE_SPACE   (1)#define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION   (2)
-

Remove space.

-
@@ -980,7 +977,7 @@

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 .

+

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

@@ -1082,8 +1079,8 @@

-

◆ ailiaVoiceGraphemeToPhoneme()

+ +

◆ ailiaVoiceGraphemeToPhoneme()

@@ -1104,7 +1101,7 @@

int  - post_process  + g2p_type  @@ -1119,7 +1116,7 @@

netA Voice instance pointer textText(UTF8) - text_post_processAILIA_VOICE_TEXT_POST_PROCESS_* + g2p_typeAILIA_VOICE_G2P_TYPE_* diff --git a/supplemental/voice/cpp/en/ailia__voice_8h_source.html b/supplemental/voice/cpp/en/ailia__voice_8h_source.html index fcc5c5c3..4493b3dc 100644 --- a/supplemental/voice/cpp/en/ailia__voice_8h_source.html +++ b/supplemental/voice/cpp/en/ailia__voice_8h_source.html @@ -22,7 +22,7 @@
ailia_voice -  1.0.0.0 +  1.1.0.0
@@ -93,203 +93,207 @@
28 #endif
29 
30 /****************************************************************
-
31  * アルゴリズム定義
+
31  * 辞書定義
32  **/
33 
43 #define AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK (0)
44 
-
54 #define AILIA_VOICE_MODEL_TYPE_TACOTRON2 (0)
+
54 #define AILIA_VOICE_DICTIONARY_TYPE_G2P_EN (1)
55 
-
65 #define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS (1)
-
66 
-
76 #define AILIA_VOICE_CLEANER_TYPE_BASIC (0)
-
77 
-
87 #define AILIA_VOICE_CLEANER_TYPE_ENGLISH (1)
-
88 
-
89 /****************************************************************
-
90  * フラグ定義
-
91  **/
+
56 /****************************************************************
+
57  * アルゴリズム定義
+
58  **/
+
59 
+
69 #define AILIA_VOICE_MODEL_TYPE_TACOTRON2 (0)
+
70 
+
80 #define AILIA_VOICE_MODEL_TYPE_GPT_SOVITS (1)
+
81 
+
91 #define AILIA_VOICE_CLEANER_TYPE_BASIC (0)
92 
-
102 #define AILIA_VOICE_FLAG_NONE (0)
+
102 #define AILIA_VOICE_CLEANER_TYPE_ENGLISH (1)
103 
104 /****************************************************************
-
105  * G2Pの後処理
+
105  * フラグ定義
106  **/
107 
-
117 #define AILIA_VOICE_TEXT_POST_PROCESS_NONE (0)
+
117 #define AILIA_VOICE_FLAG_NONE (0)
118 
-
128 #define AILIA_VOICE_TEXT_POST_PROCESS_REMOVE_SPACE (1)
-
129 
-
139 #define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION (2)
-
140 
-
150 #define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_ACCENT (4)
-
151 
-
152 /****************************************************************
-
153  * APIコールバック定義
-
154  **/
-
155 
-
156 //接続が必要なAPI
-
157 
-
158 #if defined(_WIN32) && !defined(_WIN64)
-
159  #define AILIA_VOICE_USER_API __stdcall
-
160 #else
-
161  #define AILIA_VOICE_USER_API
-
162 #endif
-
163 
-
164 // ailia.audio API
-
165 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE)(void*, const void*, int, int, int, int);
- -
167 
-
168 // ailia API
-
169 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_CREATE)(struct AILIANetwork **, int, int);
-
170 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A)(struct AILIANetwork *, const char *);
-
171 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W)(struct AILIANetwork *, const wchar_t *);
-
172 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM)(struct AILIANetwork *, const void *, unsigned int);
-
173 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE)(struct AILIANetwork*, unsigned int);
-
174 typedef void(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_DESTROY)(struct AILIANetwork *);
-
175 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_UPDATE)(struct AILIANetwork *);
-
176 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int);
-
177 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int);
-
178 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA)(struct AILIANetwork *, void*, unsigned int, unsigned int);
-
179 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA)(struct AILIANetwork *, const void*, unsigned int, unsigned int);
-
180 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE)(struct AILIANetwork *, const AILIAShape*, unsigned int, unsigned int);
-
181 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE)(struct AILIANetwork *, AILIAShape*, unsigned int, unsigned int);
-
182 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *);
-
183 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *);
-
184 typedef const char*(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL)(struct AILIANetwork *);
-
185 
-
195 #define AILIA_VOICE_API_CALLBACK_VERSION (1)
-
196 
-
197 /* APIコールバック関数構造体 */
-
198 typedef struct _AILIAVoiceApiCallback {
- - - - - - - - - - - - - - - - - - - -
218 
-
219 /****************************************************************
-
220  * ボイスオブジェクトのインスタンス
-
221  **/
-
222 
-
223 struct AILIAVoice;
-
224 
-
225 /****************************************************************
-
226  * Voice API
-
227  **/
-
228 
-
259 int AILIA_API ailiaVoiceCreate(struct AILIAVoice** net, int env_id, int num_thread, int memory_mode, int flags, AILIAVoiceApiCallback callback, int version);
-
260 
-
278 int AILIA_API ailiaVoiceOpenDictionaryFileA(struct AILIAVoice* net, const char* dictionary_path, int dictionary_type);
-
279 
-
297 int AILIA_API ailiaVoiceOpenDictionaryFileW(struct AILIAVoice* net, const wchar_t* dictionary_path, int dictionary_type);
-
298 
-
326 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);
-
327 
-
355 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);
-
356 
-
378 int AILIA_API ailiaVoiceGraphemeToPhoneme(struct AILIAVoice* net, const char *utf8, int post_process);
-
379 
-
399 int AILIA_API ailiaVoiceExtractFullContext(struct AILIAVoice* net, const char *utf8);
-
400 
-
416 int AILIA_API ailiaVoiceGetFeatureLength(struct AILIAVoice* net, unsigned int* len);
-
417 
-
439 int AILIA_API ailiaVoiceGetFeatures(struct AILIAVoice* net, char* features, unsigned int len);
-
440 
-
465 int AILIA_API ailiaVoiceSetReference(struct AILIAVoice* net, float* buf, unsigned int buf_size, unsigned int channels, unsigned int sampling_rate, const char *features);
-
466 
-
486 int AILIA_API ailiaVoiceInference(struct AILIAVoice* net, const char *utf8);
-
487 
-
507 int AILIA_API ailiaVoiceGetWaveInfo(struct AILIAVoice* net, unsigned int* samples, unsigned int* channels, unsigned int* sampling_rate);
-
508 
-
530 int AILIA_API ailiaVoiceGetWave(struct AILIAVoice* net, float* buf, unsigned int buf_size);
-
531 
-
541 void AILIA_API ailiaVoiceDestroy(struct AILIAVoice* net);
-
542 
-
562 const char* AILIA_API ailiaVoiceGetErrorDetail(struct AILIAVoice* net);
-
563 
-
564 #ifdef UNICODE
-
565 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
-
566 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
-
567 #else
-
568 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
-
569 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
-
570 #endif
-
571 
-
572 #ifdef __cplusplus
-
573 }
-
574 #endif
-
575 #endif /* !defined(INCLUDED_AILIA_Voice) */
+
119 /****************************************************************
+
120  * G2Pの処理タイプ
+
121  **/
+
122 
+
132 #define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_EN (1)
+
133 
+
143 #define AILIA_VOICE_G2P_TYPE_GPT_SOVITS_JA (2)
+
144 
+
145 #define AILIA_VOICE_TEXT_POST_PROCESS_APPEND_PUNCTUATION (2) // 互換性用
+
146 
+
147 /****************************************************************
+
148  * APIコールバック定義
+
149  **/
+
150 
+
151 //接続が必要なAPI
+
152 
+
153 #if defined(_WIN32) && !defined(_WIN64)
+
154  #define AILIA_VOICE_USER_API __stdcall
+
155 #else
+
156  #define AILIA_VOICE_USER_API
+
157 #endif
+
158 
+
159 // ailia.audio API
+
160 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE)(void*, const void*, int, int, int, int);
+ +
162 
+
163 // ailia API
+
164 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_CREATE)(struct AILIANetwork **, int, int);
+
165 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A)(struct AILIANetwork *, const char *);
+
166 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W)(struct AILIANetwork *, const wchar_t *);
+
167 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM)(struct AILIANetwork *, const void *, unsigned int);
+
168 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE)(struct AILIANetwork*, unsigned int);
+
169 typedef void(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_DESTROY)(struct AILIANetwork *);
+
170 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_UPDATE)(struct AILIANetwork *);
+
171 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int);
+
172 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int);
+
173 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA)(struct AILIANetwork *, void*, unsigned int, unsigned int);
+
174 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA)(struct AILIANetwork *, const void*, unsigned int, unsigned int);
+
175 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE)(struct AILIANetwork *, const AILIAShape*, unsigned int, unsigned int);
+
176 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE)(struct AILIANetwork *, AILIAShape*, unsigned int, unsigned int);
+
177 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *);
+
178 typedef int(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *);
+
179 typedef const char*(AILIA_VOICE_USER_API* AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL)(struct AILIANetwork *);
+
180 
+
190 #define AILIA_VOICE_API_CALLBACK_VERSION (1)
+
191 
+
192 /* APIコールバック関数構造体 */
+
193 typedef struct _AILIAVoiceApiCallback {
+ + + + + + + + + + + + + + + + + + + +
213 
+
214 /****************************************************************
+
215  * ボイスオブジェクトのインスタンス
+
216  **/
+
217 
+
218 struct AILIAVoice;
+
219 
+
220 /****************************************************************
+
221  * Voice API
+
222  **/
+
223 
+
254 int AILIA_API ailiaVoiceCreate(struct AILIAVoice** net, int env_id, int num_thread, int memory_mode, int flags, AILIAVoiceApiCallback callback, int version);
+
255 
+
273 int AILIA_API ailiaVoiceOpenDictionaryFileA(struct AILIAVoice* net, const char* dictionary_path, int dictionary_type);
+
274 
+
292 int AILIA_API ailiaVoiceOpenDictionaryFileW(struct AILIAVoice* net, const wchar_t* dictionary_path, int dictionary_type);
+
293 
+
321 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);
+
322 
+
350 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);
+
351 
+
373 int AILIA_API ailiaVoiceGraphemeToPhoneme(struct AILIAVoice* net, const char *utf8, int g2p_type);
+
374 
+
394 int AILIA_API ailiaVoiceExtractFullContext(struct AILIAVoice* net, const char *utf8);
+
395 
+
411 int AILIA_API ailiaVoiceGetFeatureLength(struct AILIAVoice* net, unsigned int* len);
+
412 
+
434 int AILIA_API ailiaVoiceGetFeatures(struct AILIAVoice* net, char* features, unsigned int len);
+
435 
+
460 int AILIA_API ailiaVoiceSetReference(struct AILIAVoice* net, float* buf, unsigned int buf_size, unsigned int channels, unsigned int sampling_rate, const char *features);
+
461 
+
481 int AILIA_API ailiaVoiceInference(struct AILIAVoice* net, const char *utf8);
+
482 
+
502 int AILIA_API ailiaVoiceGetWaveInfo(struct AILIAVoice* net, unsigned int* samples, unsigned int* channels, unsigned int* sampling_rate);
+
503 
+
525 int AILIA_API ailiaVoiceGetWave(struct AILIAVoice* net, float* buf, unsigned int buf_size);
+
526 
+
536 void AILIA_API ailiaVoiceDestroy(struct AILIAVoice* net);
+
537 
+
557 const char* AILIA_API ailiaVoiceGetErrorDetail(struct AILIAVoice* net);
+
558 
+
559 #ifdef UNICODE
+
560 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
+
561 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
+
562 #else
+
563 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
+
564 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
+
565 #endif
+
566 
+
567 #ifdef __cplusplus
+
568 }
+
569 #endif
+
570 #endif /* !defined(INCLUDED_AILIA_Voice) */

-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM)(struct AILIANetwork *, const void *, unsigned int)
Definition: ailia_voice.h:172
-
Definition: ailia_voice.h:198
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM)(struct AILIANetwork *, const void *, unsigned int)
Definition: ailia_voice.h:167
+
Definition: ailia_voice.h:193
const typedef char *AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL(struct AILIANetwork *)
-
AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE ailiaAudioResample
Definition: ailia_voice.h:199
-
AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN ailiaAudioGetResampleLen
Definition: ailia_voice.h:200
-
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX ailiaGetBlobIndexByOutputIndex
Definition: ailia_voice.h:209
+
AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE ailiaAudioResample
Definition: ailia_voice.h:194
+
AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN ailiaAudioGetResampleLen
Definition: ailia_voice.h:195
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX ailiaGetBlobIndexByOutputIndex
Definition: ailia_voice.h:204
const char *AILIA_API ailiaVoiceGetErrorDetail(struct AILIAVoice *net)
Returns the details of errors.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE)(struct AILIANetwork *, const AILIAShape *, unsigned int, unsigned int)
Definition: ailia_voice.h:180
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE)(struct AILIANetwork *, const AILIAShape *, unsigned int, unsigned int)
Definition: ailia_voice.h:175
void AILIA_API ailiaVoiceDestroy(struct AILIAVoice *net)
It destroys the Voice instance.
int AILIA_API ailiaVoiceGetFeatures(struct AILIAVoice *net, char *features, unsigned int len)
Gets the decoded features.
int AILIA_API ailiaVoiceOpenDictionaryFileA(struct AILIAVoice *net, const char *dictionary_path, int dictionary_type)
Set dictionary into a network instance.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_UPDATE)(struct AILIANetwork *)
Definition: ailia_voice.h:175
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W)(struct AILIANetwork *, const wchar_t *)
Definition: ailia_voice.h:171
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_UPDATE)(struct AILIANetwork *)
Definition: ailia_voice.h:170
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W)(struct AILIANetwork *, const wchar_t *)
Definition: ailia_voice.h:166
int AILIA_API ailiaVoiceGetFeatureLength(struct AILIAVoice *net, unsigned int *len)
Gets the size of features. (Include null)
int AILIA_API ailiaVoiceGetWaveInfo(struct AILIAVoice *net, unsigned int *samples, unsigned int *channels, unsigned int *sampling_rate)
Gets the information of wave.
-
#define AILIA_VOICE_USER_API
Definition: ailia_voice.h:161
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE)(void *, const void *, int, int, int, int)
Definition: ailia_voice.h:165
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int)
Definition: ailia_voice.h:176
+
#define AILIA_VOICE_USER_API
Definition: ailia_voice.h:156
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE)(void *, const void *, int, int, int, int)
Definition: ailia_voice.h:160
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int)
Definition: ailia_voice.h:171
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.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA)(struct AILIANetwork *, void *, unsigned int, unsigned int)
Definition: ailia_voice.h:178
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA)(struct AILIANetwork *, void *, unsigned int, unsigned int)
Definition: ailia_voice.h:173
int AILIA_API ailiaVoiceOpenDictionaryFileW(struct AILIAVoice *net, const wchar_t *dictionary_path, int dictionary_type)
Set dictionary into a network instance.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int)
Definition: ailia_voice.h:177
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX)(struct AILIANetwork *, unsigned int *, unsigned int)
Definition: ailia_voice.h:172
+
int AILIA_API ailiaVoiceGraphemeToPhoneme(struct AILIAVoice *net, const char *utf8, int g2p_type)
Perform g2p.
int AILIA_API ailiaVoiceInference(struct AILIAVoice *net, const char *utf8)
Perform inference.
-
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX ailiaGetBlobIndexByInputIndex
Definition: ailia_voice.h:208
-
AILIA_VOICE_USER_API_AILIA_UPDATE ailiaUpdate
Definition: ailia_voice.h:207
-
AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT ailiaGetInputBlobCount
Definition: ailia_voice.h:214
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX ailiaGetBlobIndexByInputIndex
Definition: ailia_voice.h:203
+
AILIA_VOICE_USER_API_AILIA_UPDATE ailiaUpdate
Definition: ailia_voice.h:202
+
AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT ailiaGetInputBlobCount
Definition: ailia_voice.h:209
#define AILIA_API
Definition: ailia_voice.h:23
-
AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL ailiaGetErrorDetail
Definition: ailia_voice.h:216
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *)
Definition: ailia_voice.h:183
-
AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT ailiaGetOutputBlobCount
Definition: ailia_voice.h:215
+
AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL ailiaGetErrorDetail
Definition: ailia_voice.h:211
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *)
Definition: ailia_voice.h:178
+
AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT ailiaGetOutputBlobCount
Definition: ailia_voice.h:210
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.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE)(struct AILIANetwork *, unsigned int)
Definition: ailia_voice.h:173
-
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE ailiaSetInputBlobShape
Definition: ailia_voice.h:212
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE)(struct AILIANetwork *, unsigned int)
Definition: ailia_voice.h:168
+
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE ailiaSetInputBlobShape
Definition: ailia_voice.h:207
int AILIA_API ailiaVoiceExtractFullContext(struct AILIAVoice *net, const char *utf8)
Perform ExtractFullContext.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A)(struct AILIANetwork *, const char *)
Definition: ailia_voice.h:170
-
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W ailiaOpenWeightFileW
Definition: ailia_voice.h:203
-
AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE ailiaSetMemoryMode
Definition: ailia_voice.h:205
-
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM ailiaOpenWeightMem
Definition: ailia_voice.h:204
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A)(struct AILIANetwork *, const char *)
Definition: ailia_voice.h:165
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W ailiaOpenWeightFileW
Definition: ailia_voice.h:198
+
AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE ailiaSetMemoryMode
Definition: ailia_voice.h:200
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM ailiaOpenWeightMem
Definition: ailia_voice.h:199
int AILIA_API ailiaVoiceGetWave(struct AILIAVoice *net, float *buf, unsigned int buf_size)
Gets the decoded features.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA)(struct AILIANetwork *, const void *, unsigned int, unsigned int)
Definition: ailia_voice.h:179
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA)(struct AILIANetwork *, const void *, unsigned int, unsigned int)
Definition: ailia_voice.h:174
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.
-
AILIA_VOICE_USER_API_AILIA_CREATE ailiaCreate
Definition: ailia_voice.h:201
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *)
Definition: ailia_voice.h:182
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE)(struct AILIANetwork *, AILIAShape *, unsigned int, unsigned int)
Definition: ailia_voice.h:181
+
AILIA_VOICE_USER_API_AILIA_CREATE ailiaCreate
Definition: ailia_voice.h:196
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT)(struct AILIANetwork *, unsigned int *)
Definition: ailia_voice.h:177
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE)(struct AILIANetwork *, AILIAShape *, unsigned int, unsigned int)
Definition: ailia_voice.h:176
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.
-
int AILIA_API ailiaVoiceGraphemeToPhoneme(struct AILIAVoice *net, const char *utf8, int post_process)
Perform g2p.
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN)(int *, int, int, int)
Definition: ailia_voice.h:166
-
AILIA_VOICE_USER_API_AILIA_DESTROY ailiaDestroy
Definition: ailia_voice.h:206
-
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA ailiaSetInputBlobData
Definition: ailia_voice.h:211
-
AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA ailiaGetBlobData
Definition: ailia_voice.h:210
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN)(int *, int, int, int)
Definition: ailia_voice.h:161
+
AILIA_VOICE_USER_API_AILIA_DESTROY ailiaDestroy
Definition: ailia_voice.h:201
+
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA ailiaSetInputBlobData
Definition: ailia_voice.h:206
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA ailiaGetBlobData
Definition: ailia_voice.h:205
struct _AILIAVoiceApiCallback AILIAVoiceApiCallback
-
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_CREATE)(struct AILIANetwork **, int, int)
Definition: ailia_voice.h:169
-
void(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_DESTROY)(struct AILIANetwork *)
Definition: ailia_voice.h:174
-
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A ailiaOpenWeightFileA
Definition: ailia_voice.h:202
-
AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE ailiaGetBlobShape
Definition: ailia_voice.h:213
+
int(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_CREATE)(struct AILIANetwork **, int, int)
Definition: ailia_voice.h:164
+
void(AILIA_VOICE_USER_API * AILIA_VOICE_USER_API_AILIA_DESTROY)(struct AILIANetwork *)
Definition: ailia_voice.h:169
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A ailiaOpenWeightFileA
Definition: ailia_voice.h:197
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE ailiaGetBlobShape
Definition: ailia_voice.h:208