diff --git a/supplemental/voice/cpp/en/about.html b/supplemental/voice/cpp/en/about.html index 6dc628f0..7aebe7a8 100644 --- a/supplemental/voice/cpp/en/about.html +++ b/supplemental/voice/cpp/en/about.html @@ -22,7 +22,7 @@
ailia_voice -  1.1.0.0 +  1.2.0.0
diff --git a/supplemental/voice/cpp/en/about_8md.html b/supplemental/voice/cpp/en/about_8md.html index 75e34b1f..5a593373 100644 --- a/supplemental/voice/cpp/en/about_8md.html +++ b/supplemental/voice/cpp/en/about_8md.html @@ -22,7 +22,7 @@
ailia_voice -  1.1.0.0 +  1.2.0.0
diff --git a/supplemental/voice/cpp/en/ailia__voice_8h.html b/supplemental/voice/cpp/en/ailia__voice_8h.html index 7ec4716b..eec86851 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.1.0.0 +  1.2.0.0
@@ -130,7 +130,7 @@   #define AILIA_VOICE_USER_API   -#define AILIA_VOICE_API_CALLBACK_VERSION   (1) +#define AILIA_VOICE_API_CALLBACK_VERSION   (2)  Struct version. More...
  #define ailiaVoiceOpenDictionaryFile   ailiaVoiceOpenDictionaryFileW @@ -174,6 +174,8 @@   typedef int(AILIA_VOICE_USER_APIAILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT) (struct AILIANetwork *, unsigned int *)   +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   @@ -249,7 +251,7 @@

- +
#define AILIA_VOICE_API_CALLBACK_VERSION   (1)#define AILIA_VOICE_API_CALLBACK_VERSION   (2)
@@ -485,6 +487,20 @@

+

+ + +

◆ 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)
+
+
@@ -793,7 +809,7 @@

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_* + flagOR of AILIA_VOICE_FLAG_* api_callbackThe callback for ailia API versionAILIA_VOICE_API_CALLBACK_VERSION is specified.) diff --git a/supplemental/voice/cpp/en/ailia__voice_8h_source.html b/supplemental/voice/cpp/en/ailia__voice_8h_source.html index 4493b3dc..40b4d0cc 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.1.0.0 +  1.2.0.0
@@ -161,90 +161,92 @@
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;
+
180 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);
+
181 
+
191 #define AILIA_VOICE_API_CALLBACK_VERSION (2)
+
192 
+
193 /* APIコールバック関数構造体 */
+
194 typedef struct _AILIAVoiceApiCallback {
+ + + + + + + + + + + + + + + + + + + + +
215 
+
216 /****************************************************************
+
217  * ボイスオブジェクトのインスタンス
+
218  **/
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) */
+
220 struct AILIAVoice;
+
221 
+
222 /****************************************************************
+
223  * Voice API
+
224  **/
+
225 
+
256 int AILIA_API ailiaVoiceCreate(struct AILIAVoice** net, int env_id, int num_thread, int memory_mode, int flags, AILIAVoiceApiCallback callback, int version);
+
257 
+
275 int AILIA_API ailiaVoiceOpenDictionaryFileA(struct AILIAVoice* net, const char* dictionary_path, int dictionary_type);
+
276 
+
294 int AILIA_API ailiaVoiceOpenDictionaryFileW(struct AILIAVoice* net, const wchar_t* dictionary_path, int dictionary_type);
+
295 
+
323 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);
+
324 
+
352 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);
+
353 
+
375 int AILIA_API ailiaVoiceGraphemeToPhoneme(struct AILIAVoice* net, const char *utf8, int g2p_type);
+
376 
+
396 int AILIA_API ailiaVoiceExtractFullContext(struct AILIAVoice* net, const char *utf8);
+
397 
+
413 int AILIA_API ailiaVoiceGetFeatureLength(struct AILIAVoice* net, unsigned int* len);
+
414 
+
436 int AILIA_API ailiaVoiceGetFeatures(struct AILIAVoice* net, char* features, unsigned int len);
+
437 
+
462 int AILIA_API ailiaVoiceSetReference(struct AILIAVoice* net, float* buf, unsigned int buf_size, unsigned int channels, unsigned int sampling_rate, const char *features);
+
463 
+
483 int AILIA_API ailiaVoiceInference(struct AILIAVoice* net, const char *utf8);
+
484 
+
504 int AILIA_API ailiaVoiceGetWaveInfo(struct AILIAVoice* net, unsigned int* samples, unsigned int* channels, unsigned int* sampling_rate);
+
505 
+
527 int AILIA_API ailiaVoiceGetWave(struct AILIAVoice* net, float* buf, unsigned int buf_size);
+
528 
+
538 void AILIA_API ailiaVoiceDestroy(struct AILIAVoice* net);
+
539 
+
559 const char* AILIA_API ailiaVoiceGetErrorDetail(struct AILIAVoice* net);
+
560 
+
561 #ifdef UNICODE
+
562 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
+
563 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
+
564 #else
+
565 #define ailiaVoiceOpenDictionaryFile ailiaVoiceOpenDictionaryFileW
+
566 #define ailiaVoiceOpenModelFile ailiaVoiceOpenModelFileW
+
567 #endif
+
568 
+
569 #ifdef __cplusplus
+
570 }
+
571 #endif
+
572 #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:167
-
Definition: ailia_voice.h:193
+
Definition: ailia_voice.h:194
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: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
+
AILIA_VOICE_USER_API_AILIA_AUDIO_RESAMPLE ailiaAudioResample
Definition: ailia_voice.h:195
+
AILIA_VOICE_USER_API_AILIA_AUDIO_GET_RESAMPLE_LEN ailiaAudioGetResampleLen
Definition: ailia_voice.h:196
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_OUTPUT_INDEX ailiaGetBlobIndexByOutputIndex
Definition: ailia_voice.h:205
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:175
void AILIA_API ailiaVoiceDestroy(struct AILIAVoice *net)
It destroys the Voice instance.
@@ -263,37 +265,39 @@
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: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
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_INDEX_BY_INPUT_INDEX ailiaGetBlobIndexByInputIndex
Definition: ailia_voice.h:204
+
AILIA_VOICE_USER_API_AILIA_UPDATE ailiaUpdate
Definition: ailia_voice.h:203
+
AILIA_VOICE_USER_API_AILIA_GET_INPUT_BLOB_COUNT ailiaGetInputBlobCount
Definition: ailia_voice.h:210
#define AILIA_API
Definition: ailia_voice.h:23
-
AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL ailiaGetErrorDetail
Definition: ailia_voice.h:211
+
AILIA_VOICE_USER_API_AILIA_COPY_BLOB_DATA ailiaCopyBlobData
Definition: ailia_voice.h:213
+
AILIA_VOICE_USER_API_AILIA_GET_ERROR_DETAIL ailiaGetErrorDetail
Definition: ailia_voice.h:212
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
+
AILIA_VOICE_USER_API_AILIA_GET_OUTPUT_BLOB_COUNT ailiaGetOutputBlobCount
Definition: ailia_voice.h:211
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_COPY_BLOB_DATA)(struct AILIANetwork *dst_net, unsigned int dst_blob_idx, struct AILIANetwork *src_net, unsigned int src_blob_idx)
Definition: ailia_voice.h:180
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
+
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_SHAPE ailiaSetInputBlobShape
Definition: ailia_voice.h:208
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: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
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_W ailiaOpenWeightFileW
Definition: ailia_voice.h:199
+
AILIA_VOICE_USER_API_AILIA_SET_MEMORY_MODE ailiaSetMemoryMode
Definition: ailia_voice.h:201
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_MEM ailiaOpenWeightMem
Definition: ailia_voice.h:200
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: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:196
+
AILIA_VOICE_USER_API_AILIA_CREATE ailiaCreate
Definition: ailia_voice.h:197
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_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
+
AILIA_VOICE_USER_API_AILIA_DESTROY ailiaDestroy
Definition: ailia_voice.h:202
+
AILIA_VOICE_USER_API_AILIA_SET_INPUT_BLOB_DATA ailiaSetInputBlobData
Definition: ailia_voice.h:207
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_DATA ailiaGetBlobData
Definition: ailia_voice.h:206
struct _AILIAVoiceApiCallback AILIAVoiceApiCallback
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
+
AILIA_VOICE_USER_API_AILIA_OPEN_WEIGHT_FILE_A ailiaOpenWeightFileA
Definition: ailia_voice.h:198
+
AILIA_VOICE_USER_API_AILIA_GET_BLOB_SHAPE ailiaGetBlobShape
Definition: ailia_voice.h:209