VoicevoxCore
Loading...
Searching...
No Matches
voicevox_core.h
Go to the documentation of this file.
1
70#ifndef VOICEVOX_CORE_INCLUDE_GUARD
71#define VOICEVOX_CORE_INCLUDE_GUARD
72
73/* Generated with cbindgen:0.28.0 */
74
75#ifdef __cplusplus
76#include <cstdint>
77#else // __cplusplus
78#include <stdbool.h>
79#include <stdint.h>
80#endif // __cplusplus
81
82//#define VOICEVOX_LINK_ONNXRUNTIME
83//#define VOICEVOX_LOAD_ONNXRUNTIME
84
85#if !(defined(VOICEVOX_LINK_ONNXRUNTIME) || defined(VOICEVOX_LOAD_ONNXRUNTIME))
86#error "either `VOICEVOX_LINK_ONNXRUNTIME` or `VOICEVOX_LOAD_ONNXRUNTIME` must be enabled"
87#endif
88
89#if defined(VOICEVOX_LINK_ONNXRUNTIME) && defined(VOICEVOX_LOAD_ONNXRUNTIME)
90#error "`VOICEVOX_LINK_ONNXRUNTIME` or `VOICEVOX_LOAD_ONNXRUNTIME` cannot be enabled at the same time"
91#endif
92
93#if defined(_MSC_VER)
94#define VOICEVOX_DEPRECATED(note) __declspec(deprecated(note))
95#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L || \
96 defined(__cplusplus) && __cplusplus >= 201402L
97#define VOICEVOX_DEPRECATED(note) [[deprecated(note)]]
98#elif defined(__GNUC__) || defined(__clang__)
99#define VOICEVOX_DEPRECATED(note) __attribute__((deprecated(note)))
100#else
101#define VOICEVOX_DEPRECATED(note)
102#endif
103
114#define VOICEVOX_FRAME_RATE 93.75
115
122#ifdef __cplusplus
123 : int32_t
124#endif // __cplusplus
125 {
138};
139#ifndef __cplusplus
140typedef int32_t VoicevoxAccelerationMode;
141#endif // __cplusplus
142
166#ifndef __cplusplus
167typedef int32_t VoicevoxOnExistingVoiceModelId;
168#endif // __cplusplus
169
176#ifdef __cplusplus
177 : int32_t
178#endif // __cplusplus
179 {
304};
305#ifndef __cplusplus
306typedef int32_t VoicevoxResultCode;
307#endif // __cplusplus
308
340#ifndef __cplusplus
341typedef int32_t VoicevoxUserDictWordType;
342#endif // __cplusplus
343
364
373
390
399
406
416
417#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
435#endif
436
453
465
477
495typedef const uint8_t (*VoicevoxVoiceModelId)[16];
496
504typedef uint32_t VoicevoxStyleId;
505
517
529
557
558#ifdef __cplusplus
559extern "C" {
560#endif // __cplusplus
561
567extern const uint8_t *voicevox_empty_bytes;
568
576#ifdef _WIN32
577__declspec(dllimport)
578#endif
580
588#ifdef _WIN32
589__declspec(dllimport)
590#endif
592
593#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
605#ifdef _WIN32
606__declspec(dllimport)
607#endif
609#endif
610
611#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
621#ifdef _WIN32
622__declspec(dllimport)
623#endif
625#endif
626
627#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
639#ifdef _WIN32
640__declspec(dllimport)
641#endif
643#endif
644
654#ifdef _WIN32
655__declspec(dllimport)
656#endif
658
659#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
683#ifdef _WIN32
684__declspec(dllimport)
685#endif
687 const struct VoicevoxOnnxruntime **out_onnxruntime);
688#endif
689
690#if defined(VOICEVOX_LINK_ONNXRUNTIME)
712#ifdef _WIN32
713__declspec(dllimport)
714#endif
716#endif
717
742#ifdef _WIN32
743__declspec(dllimport)
744#endif
745VoicevoxResultCode voicevox_open_jtalk_rc_new(const char *open_jtalk_dic_dir,
746 struct OpenJtalkRc **out_open_jtalk);
747
758#ifdef _WIN32
759__declspec(dllimport)
760#endif
762 const struct VoicevoxUserDict *user_dict);
763
775#ifdef _WIN32
776__declspec(dllimport)
777#endif
779 const char *text,
780 char **output_accent_phrases_json);
781
799#ifdef _WIN32
800__declspec(dllimport)
801#endif
803
810#ifdef _WIN32
811__declspec(dllimport)
812#endif
814
821#ifdef _WIN32
822__declspec(dllimport)
823#endif
824const char *voicevox_get_version(void);
825
833#ifdef _WIN32
834__declspec(dllimport)
835#endif
837
853#ifdef _WIN32
854__declspec(dllimport)
855#endif
857 char **output_audio_query_json);
858
866#ifdef _WIN32
867__declspec(dllimport)
868#endif
870
1023#ifdef _WIN32
1024__declspec(dllimport)
1025#endif
1028 uintptr_t *output_frame_length);
1029
1055#ifdef _WIN32
1056__declspec(dllimport)
1057#endif
1059
1081#ifdef _WIN32
1082__declspec(dllimport)
1083#endif
1085
1106#ifdef _WIN32
1107__declspec(dllimport)
1108#endif
1110
1132#ifdef _WIN32
1133__declspec(dllimport)
1134#endif
1136
1158#ifdef _WIN32
1159__declspec(dllimport)
1160#endif
1162
1186#ifdef _WIN32
1187__declspec(dllimport)
1188#endif
1190
1210#ifdef _WIN32
1211__declspec(dllimport)
1212#endif
1214
1234#ifdef _WIN32
1235__declspec(dllimport)
1236#endif
1238 const char *frame_audio_query_json);
1239
1262#ifdef _WIN32
1263__declspec(dllimport)
1264#endif
1265void voicevox_wav_from_s16le(uintptr_t pcm_length,
1266 const uint8_t *pcm,
1267 uint32_t sampling_rate,
1268 bool is_stereo,
1269 uintptr_t *output_wav_length,
1270 uint8_t **output_wav);
1271
1287#ifdef _WIN32
1288__declspec(dllimport)
1289#endif
1291 struct VoicevoxVoiceModelFile **out_model);
1292
1305#ifdef _WIN32
1306__declspec(dllimport)
1307#endif
1309 uint8_t (*output_voice_model_id)[16]);
1310
1322#ifdef _WIN32
1323__declspec(dllimport)
1324#endif
1326
1338#ifdef _WIN32
1339__declspec(dllimport)
1340#endif
1342
1360#ifdef _WIN32
1361__declspec(dllimport)
1362#endif
1364 const struct OpenJtalkRc *open_jtalk,
1365 struct VoicevoxInitializeOptions options,
1366 struct VoicevoxSynthesizer **out_synthesizer);
1367
1379#ifdef _WIN32
1380__declspec(dllimport)
1381#endif
1383
1390#ifdef _WIN32
1391__declspec(dllimport)
1392#endif
1394
1406#ifdef _WIN32
1407__declspec(dllimport)
1408#endif
1410 const struct VoicevoxVoiceModelFile *model,
1411 struct VoicevoxLoadVoiceModelOptions options);
1412
1427#ifdef _WIN32
1428__declspec(dllimport)
1429#endif
1431 VoicevoxVoiceModelId model_id);
1432
1442#ifdef _WIN32
1443__declspec(dllimport)
1444#endif
1446
1456#ifdef _WIN32
1457__declspec(dllimport)
1458#endif
1460
1475#ifdef _WIN32
1476__declspec(dllimport)
1477#endif
1479 VoicevoxVoiceModelId model_id);
1480
1492#ifdef _WIN32
1493__declspec(dllimport)
1494#endif
1496
1523#ifdef _WIN32
1524__declspec(dllimport)
1525#endif
1527 char **output_supported_devices_json);
1528
1557#ifdef _WIN32
1558__declspec(dllimport)
1559#endif
1561 const char *kana,
1562 VoicevoxStyleId style_id,
1563 char **output_audio_query_json);
1564
1598#ifdef _WIN32
1599__declspec(dllimport)
1600#endif
1602 const char *text,
1603 VoicevoxStyleId style_id,
1604 char **output_audio_query_json);
1605
1635#ifdef _WIN32
1636__declspec(dllimport)
1637#endif
1639 const char *kana,
1640 VoicevoxStyleId style_id,
1641 char **output_accent_phrases_json);
1642
1676#ifdef _WIN32
1677__declspec(dllimport)
1678#endif
1680 const char *text,
1681 VoicevoxStyleId style_id,
1682 char **output_accent_phrases_json);
1683
1708#ifdef _WIN32
1709__declspec(dllimport)
1710#endif
1712 const char *accent_phrases_json,
1713 VoicevoxStyleId style_id,
1714 char **output_accent_phrases_json);
1715
1735#ifdef _WIN32
1736__declspec(dllimport)
1737#endif
1739 const char *accent_phrases_json,
1740 VoicevoxStyleId style_id,
1741 char **output_accent_phrases_json);
1742
1762#ifdef _WIN32
1763__declspec(dllimport)
1764#endif
1766 const char *accent_phrases_json,
1767 VoicevoxStyleId style_id,
1768 char **output_accent_phrases_json);
1769
1776#ifdef _WIN32
1777__declspec(dllimport)
1778#endif
1780
1803#ifdef _WIN32
1804__declspec(dllimport)
1805#endif
1807 const char *audio_query_json,
1808 VoicevoxStyleId style_id,
1809 struct VoicevoxSynthesisOptions options,
1810 uintptr_t *output_wav_length,
1811 uint8_t **output_wav);
1812
1833#ifdef _WIN32
1834__declspec(dllimport)
1835#endif
1837 const char *audio_query_json,
1838 VoicevoxStyleId style_id,
1839 struct VoicevoxSynthesisOptions options,
1840 struct VoicevoxAudioFeature **out_audio_feature);
1841
1851#ifdef _WIN32
1852__declspec(dllimport)
1853#endif
1854uintptr_t voicevox_audio_feature_frame_length(const struct VoicevoxAudioFeature *audio_feature);
1855
1879#ifdef _WIN32
1880__declspec(dllimport)
1881#endif
1883 const struct VoicevoxAudioFeature *audio_feature,
1884 uintptr_t start_inclusive,
1885 uintptr_t end_exclusive,
1886 uintptr_t *output_pcm_length,
1887 uint8_t **output_pcm);
1888
1900#ifdef _WIN32
1901__declspec(dllimport)
1902#endif
1904
1911#ifdef _WIN32
1912__declspec(dllimport)
1913#endif
1915
1938#ifdef _WIN32
1939__declspec(dllimport)
1940#endif
1942 const char *kana,
1943 VoicevoxStyleId style_id,
1944 struct VoicevoxTtsOptions options,
1945 uintptr_t *output_wav_length,
1946 uint8_t **output_wav);
1947
1975#ifdef _WIN32
1976__declspec(dllimport)
1977#endif
1979 const char *text,
1980 VoicevoxStyleId style_id,
1981 struct VoicevoxTtsOptions options,
1982 uintptr_t *output_wav_length,
1983 uint8_t **output_wav);
1984
2031#ifdef _WIN32
2032__declspec(dllimport)
2033#endif
2035 const char *score_json,
2036 VoicevoxStyleId style_id,
2037 char **output_frame_audio_query_json);
2038
2066#ifdef _WIN32
2067__declspec(dllimport)
2068#endif
2070 const char *score_json,
2071 const char *frame_audio_query_json,
2072 VoicevoxStyleId style_id,
2073 char **output_f0_json);
2074
2102#ifdef _WIN32
2103__declspec(dllimport)
2104#endif
2106 const char *score_json,
2107 const char *frame_audio_query_json,
2108 VoicevoxStyleId style_id,
2109 char **output_volume_json);
2110
2149#ifdef _WIN32
2150__declspec(dllimport)
2151#endif
2153 const char *frame_audio_query_json,
2154 VoicevoxStyleId style_id,
2155 uintptr_t *output_wav_length,
2156 uint8_t **output_wav);
2157
2188#ifdef _WIN32
2189__declspec(dllimport)
2190#endif
2191void voicevox_string_free(char *string);
2192
2223#ifdef _WIN32
2224__declspec(dllimport)
2225#endif
2226VOICEVOX_DEPRECATED("use 'voicevox_string_free' instead")
2227void voicevox_json_free(char *json);
2228
2250#ifdef _WIN32
2251__declspec(dllimport)
2252#endif
2253void voicevox_bytes_free(uint8_t *bytes);
2254
2274#ifdef _WIN32
2275__declspec(dllimport)
2276#endif
2277VOICEVOX_DEPRECATED("use 'voicevox_bytes_free' instead")
2278void voicevox_wav_free(uint8_t *wav);
2279
2304#ifdef _WIN32
2305__declspec(dllimport)
2306#endif
2308
2319#ifdef _WIN32
2320__declspec(dllimport)
2321#endif
2323 const char *pronunciation,
2324 uintptr_t accent_type);
2325
2333#ifdef _WIN32
2334__declspec(dllimport)
2335#endif
2337
2351#ifdef _WIN32
2352__declspec(dllimport)
2353#endif
2355 const char *dict_path);
2356
2375#ifdef _WIN32
2376__declspec(dllimport)
2377#endif
2379 const struct VoicevoxUserDictWord *word,
2380 uint8_t (*output_word_uuid)[16]);
2381
2397#ifdef _WIN32
2398__declspec(dllimport)
2399#endif
2401 const uint8_t (*word_uuid)[16],
2402 const struct VoicevoxUserDictWord *word);
2403
2417#ifdef _WIN32
2418__declspec(dllimport)
2419#endif
2421 const uint8_t (*word_uuid)[16]);
2422
2438#ifdef _WIN32
2439__declspec(dllimport)
2440#endif
2442 char **output_json);
2443
2453#ifdef _WIN32
2454__declspec(dllimport)
2455#endif
2457 const struct VoicevoxUserDict *other_dict);
2458
2471#ifdef _WIN32
2472__declspec(dllimport)
2473#endif
2475 const char *path);
2476
2488#ifdef _WIN32
2489__declspec(dllimport)
2490#endif
2492
2493#ifdef __cplusplus
2494} // extern "C"
2495#endif // __cplusplus
2496
2497#undef VOICEVOX_DEPRECATED
2498
2499#endif /* VOICEVOX_CORE_INCLUDE_GUARD */
Definition voicevox_core.h:459
bool enable_interrogative_upspeak
Definition voicevox_core.h:463
Definition voicevox_core.h:442
uint16_t cpu_num_threads
Definition voicevox_core.h:451
VoicevoxAccelerationMode acceleration_mode
Definition voicevox_core.h:446
Definition voicevox_core.h:427
const char * filename
Definition voicevox_core.h:433
Definition voicevox_core.h:471
VoicevoxOnExistingVoiceModelId on_existing
Definition voicevox_core.h:475
Definition voicevox_core.h:511
bool enable_interrogative_upspeak
Definition voicevox_core.h:515
Definition voicevox_core.h:523
bool enable_interrogative_upspeak
Definition voicevox_core.h:527
Definition voicevox_core.h:535
VoicevoxUserDictWordType word_type
Definition voicevox_core.h:551
const char * surface
Definition voicevox_core.h:539
uintptr_t accent_type
Definition voicevox_core.h:547
const char * pronunciation
Definition voicevox_core.h:543
uint8_t priority
Definition voicevox_core.h:555
void voicevox_open_jtalk_rc_delete(struct OpenJtalkRc *open_jtalk)
VoicevoxResultCode voicevox_synthesizer_create_accent_phrases(const struct VoicevoxSynthesizer *synthesizer, const char *text, VoicevoxStyleId style_id, char **output_accent_phrases_json)
VoicevoxResultCode voicevox_synthesizer_create_sing_frame_f0(const struct VoicevoxSynthesizer *synthesizer, const char *score_json, const char *frame_audio_query_json, VoicevoxStyleId style_id, char **output_f0_json)
struct VoicevoxSynthesisOptions VoicevoxSynthesisOptions
uint32_t voicevox_get_onnxruntime_lib_min_required_minor_version(void)
VoicevoxResultCode voicevox_synthesizer_replace_mora_data(const struct VoicevoxSynthesizer *synthesizer, const char *accent_phrases_json, VoicevoxStyleId style_id, char **output_accent_phrases_json)
VoicevoxResultCode voicevox_synthesizer_create_audio_query(const struct VoicevoxSynthesizer *synthesizer, const char *text, VoicevoxStyleId style_id, char **output_audio_query_json)
uint32_t VoicevoxStyleId
Definition voicevox_core.h:504
VoicevoxResultCode voicevox_user_dict_save(const struct VoicevoxUserDict *user_dict, const char *path)
void voicevox_voice_model_file_id(const struct VoicevoxVoiceModelFile *model, uint8_t(*output_voice_model_id)[16])
struct OpenJtalkRc OpenJtalkRc
Definition voicevox_core.h:363
VoicevoxResultCode voicevox_synthesizer_create_sing_frame_volume(const struct VoicevoxSynthesizer *synthesizer, const char *score_json, const char *frame_audio_query_json, VoicevoxStyleId style_id, char **output_volume_json)
VoicevoxUserDictWordType
Definition voicevox_core.h:318
@ VOICEVOX_USER_DICT_WORD_TYPE_ADJECTIVE
Definition voicevox_core.h:334
@ VOICEVOX_USER_DICT_WORD_TYPE_SUFFIX
Definition voicevox_core.h:338
@ VOICEVOX_USER_DICT_WORD_TYPE_PROPER_NOUN
Definition voicevox_core.h:322
@ VOICEVOX_USER_DICT_WORD_TYPE_VERB
Definition voicevox_core.h:330
@ VOICEVOX_USER_DICT_WORD_TYPE_COMMON_NOUN
Definition voicevox_core.h:326
VoicevoxResultCode voicevox_onnxruntime_create_supported_devices_json(const struct VoicevoxOnnxruntime *onnxruntime, char **output_supported_devices_json)
void voicevox_wav_from_s16le(uintptr_t pcm_length, const uint8_t *pcm, uint32_t sampling_rate, bool is_stereo, uintptr_t *output_wav_length, uint8_t **output_wav)
VoicevoxResultCode voicevox_score_validate(const char *score_json)
VoicevoxResultCode voicevox_synthesizer_unload_voice_model(const struct VoicevoxSynthesizer *synthesizer, VoicevoxVoiceModelId model_id)
char * voicevox_synthesizer_create_metas_json(const struct VoicevoxSynthesizer *synthesizer)
struct VoicevoxAudioFeature VoicevoxAudioFeature
Definition voicevox_core.h:372
VoicevoxResultCode voicevox_frame_phoneme_validate(const char *frame_phoneme_json)
const uint8_t * voicevox_empty_bytes
uint32_t voicevox_get_onnxruntime_lib_max_supported_minor_version(void)
struct VoicevoxLoadVoiceModelOptions voicevox_make_default_load_voice_model_options(void)
VoicevoxResultCode voicevox_audio_query_create_from_accent_phrases(const char *accent_phrases_json, char **output_audio_query_json)
VoicevoxResultCode voicevox_synthesizer_tts(const struct VoicevoxSynthesizer *synthesizer, const char *text, VoicevoxStyleId style_id, struct VoicevoxTtsOptions options, uintptr_t *output_wav_length, uint8_t **output_wav)
VoicevoxResultCode voicevox_open_jtalk_rc_new(const char *open_jtalk_dic_dir, struct OpenJtalkRc **out_open_jtalk)
const uint8_t(* VoicevoxVoiceModelId)[16]
Definition voicevox_core.h:495
VoicevoxResultCode voicevox_synthesizer_create_accent_phrases_from_kana(const struct VoicevoxSynthesizer *synthesizer, const char *kana, VoicevoxStyleId style_id, char **output_accent_phrases_json)
VoicevoxResultCode voicevox_audio_query_validate(const char *audio_query_json)
VoicevoxOnExistingVoiceModelId
Definition voicevox_core.h:152
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_RELOAD
Definition voicevox_core.h:160
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_ERROR
Definition voicevox_core.h:156
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_SKIP
Definition voicevox_core.h:164
void voicevox_string_free(char *string)
VoicevoxResultCode voicevox_synthesizer_new(const struct VoicevoxOnnxruntime *onnxruntime, const struct OpenJtalkRc *open_jtalk, struct VoicevoxInitializeOptions options, struct VoicevoxSynthesizer **out_synthesizer)
void voicevox_voice_model_file_delete(struct VoicevoxVoiceModelFile *model)
struct VoicevoxAudioQueryFrameLengthOptions voicevox_make_default_audio_query_frame_length_options(void)
void voicevox_json_free(char *json)
struct VoicevoxSynthesisOptions voicevox_make_default_synthesis_options(void)
struct VoicevoxInitializeOptions VoicevoxInitializeOptions
VoicevoxResultCode voicevox_onnxruntime_load_once(struct VoicevoxLoadOnnxruntimeOptions options, const struct VoicevoxOnnxruntime **out_onnxruntime)
struct VoicevoxVoiceModelFile VoicevoxVoiceModelFile
Definition voicevox_core.h:415
const struct VoicevoxOnnxruntime * voicevox_onnxruntime_get(void)
VoicevoxResultCode voicevox_synthesizer_synthesis(const struct VoicevoxSynthesizer *synthesizer, const char *audio_query_json, VoicevoxStyleId style_id, struct VoicevoxSynthesisOptions options, uintptr_t *output_wav_length, uint8_t **output_wav)
VoicevoxResultCode
Definition voicevox_core.h:179
@ VOICEVOX_RESULT_INVALID_FRAME_PHONEME_ERROR
Definition voicevox_core.h:299
@ VOICEVOX_RESULT_RUN_MODEL_ERROR
Definition voicevox_core.h:211
@ VOICEVOX_RESULT_USER_DICT_WORD_NOT_FOUND_ERROR
Definition voicevox_core.h:267
@ VOICEVOX_RESULT_USE_USER_DICT_ERROR
Definition voicevox_core.h:271
@ VOICEVOX_RESULT_GPU_SUPPORT_ERROR
Definition voicevox_core.h:195
@ VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR
Definition voicevox_core.h:275
@ VOICEVOX_RESULT_INVALID_UUID_ERROR
Definition voicevox_core.h:279
@ VOICEVOX_RESULT_INVALID_ACCENT_PHRASE_ERROR
Definition voicevox_core.h:231
@ VOICEVOX_RESULT_ANALYZE_TEXT_ERROR
Definition voicevox_core.h:215
@ VOICEVOX_RESULT_MODEL_ALREADY_LOADED_ERROR
Definition voicevox_core.h:247
@ VOICEVOX_RESULT_INIT_INFERENCE_RUNTIME_ERROR
Definition voicevox_core.h:199
@ VOICEVOX_RESULT_NOT_LOADED_OPENJTALK_DICT_ERROR
Definition voicevox_core.h:187
@ VOICEVOX_RESULT_INVALID_MODEL_FORMAT_ERROR
Definition voicevox_core.h:243
@ VOICEVOX_RESULT_INVALID_AUDIO_QUERY_ERROR
Definition voicevox_core.h:227
@ VOICEVOX_RESULT_SAVE_USER_DICT_ERROR
Definition voicevox_core.h:263
@ VOICEVOX_RESULT_INVALID_MODEL_DATA_ERROR
Definition voicevox_core.h:255
@ VOICEVOX_RESULT_OPEN_ZIP_FILE_ERROR
Definition voicevox_core.h:235
@ VOICEVOX_RESULT_OK
Definition voicevox_core.h:183
@ VOICEVOX_RESULT_PARSE_KANA_ERROR
Definition voicevox_core.h:223
@ VOICEVOX_RESULT_STYLE_NOT_FOUND_ERROR
Definition voicevox_core.h:203
@ VOICEVOX_RESULT_INVALID_FRAME_AUDIO_QUERY_ERROR
Definition voicevox_core.h:295
@ VOICEVOX_RESULT_GET_SUPPORTED_DEVICES_ERROR
Definition voicevox_core.h:191
@ VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR
Definition voicevox_core.h:303
@ VOICEVOX_RESULT_STYLE_ALREADY_LOADED_ERROR
Definition voicevox_core.h:251
@ VOICEVOX_RESULT_LOAD_USER_DICT_ERROR
Definition voicevox_core.h:259
@ VOICEVOX_RESULT_MODEL_NOT_FOUND_ERROR
Definition voicevox_core.h:207
@ VOICEVOX_RESULT_READ_ZIP_ENTRY_ERROR
Definition voicevox_core.h:239
@ VOICEVOX_RESULT_INVALID_NOTE_ERROR
Definition voicevox_core.h:291
@ VOICEVOX_RESULT_INVALID_SCORE_ERROR
Definition voicevox_core.h:287
@ VOICEVOX_RESULT_INVALID_UTF8_INPUT_ERROR
Definition voicevox_core.h:219
@ VOICEVOX_RESULT_INVALID_MORA_ERROR
Definition voicevox_core.h:283
struct VoicevoxTtsOptions voicevox_make_default_tts_options(void)
VoicevoxResultCode voicevox_user_dict_to_json(const struct VoicevoxUserDict *user_dict, char **output_json)
struct VoicevoxLoadVoiceModelOptions VoicevoxLoadVoiceModelOptions
VoicevoxAccelerationMode
Definition voicevox_core.h:125
@ VOICEVOX_ACCELERATION_MODE_GPU
Definition voicevox_core.h:137
@ VOICEVOX_ACCELERATION_MODE_AUTO
Definition voicevox_core.h:129
@ VOICEVOX_ACCELERATION_MODE_CPU
Definition voicevox_core.h:133
VoicevoxResultCode voicevox_accent_phrase_validate(const char *accent_phrase_json)
const char * voicevox_error_result_to_message(VoicevoxResultCode result_code)
VoicevoxResultCode voicevox_open_jtalk_rc_use_user_dict(const struct OpenJtalkRc *open_jtalk, const struct VoicevoxUserDict *user_dict)
bool voicevox_synthesizer_is_loaded_voice_model(const struct VoicevoxSynthesizer *synthesizer, VoicevoxVoiceModelId model_id)
VoicevoxResultCode voicevox_synthesizer_frame_synthesis(const struct VoicevoxSynthesizer *synthesizer, const char *frame_audio_query_json, VoicevoxStyleId style_id, uintptr_t *output_wav_length, uint8_t **output_wav)
VoicevoxResultCode voicevox_synthesizer_tts_from_kana(const struct VoicevoxSynthesizer *synthesizer, const char *kana, VoicevoxStyleId style_id, struct VoicevoxTtsOptions options, uintptr_t *output_wav_length, uint8_t **output_wav)
VoicevoxResultCode voicevox_synthesizer_load_voice_model(const struct VoicevoxSynthesizer *synthesizer, const struct VoicevoxVoiceModelFile *model, struct VoicevoxLoadVoiceModelOptions options)
VoicevoxResultCode voicevox_synthesizer_create_audio_feature(const struct VoicevoxSynthesizer *synthesizer, const char *audio_query_json, VoicevoxStyleId style_id, struct VoicevoxSynthesisOptions options, struct VoicevoxAudioFeature **out_audio_feature)
VoicevoxResultCode voicevox_user_dict_update_word(const struct VoicevoxUserDict *user_dict, const uint8_t(*word_uuid)[16], const struct VoicevoxUserDictWord *word)
VoicevoxResultCode voicevox_ensure_compatible(const char *score_json, const char *frame_audio_query_json)
struct VoicevoxSynthesizer VoicevoxSynthesizer
Definition voicevox_core.h:398
VoicevoxResultCode voicevox_mora_validate(const char *mora_json)
bool voicevox_synthesizer_is_gpu_mode(const struct VoicevoxSynthesizer *synthesizer)
char * voicevox_voice_model_file_create_metas_json(const struct VoicevoxVoiceModelFile *model)
VoicevoxResultCode voicevox_audio_query_frame_length(const char *audio_query_json, struct VoicevoxAudioQueryFrameLengthOptions options, uintptr_t *output_frame_length)
VoicevoxResultCode voicevox_open_jtalk_rc_analyze(const struct OpenJtalkRc *open_jtalk, const char *text, char **output_accent_phrases_json)
VoicevoxResultCode voicevox_synthesizer_create_sing_frame_audio_query(const struct VoicevoxSynthesizer *synthesizer, const char *score_json, VoicevoxStyleId style_id, char **output_frame_audio_query_json)
const char * voicevox_get_onnxruntime_lib_recommended_unversioned_filename(void)
struct VoicevoxTtsOptions VoicevoxTtsOptions
struct VoicevoxUserDict VoicevoxUserDict
Definition voicevox_core.h:405
void voicevox_synthesizer_delete(struct VoicevoxSynthesizer *synthesizer)
const char * voicevox_get_onnxruntime_lib_recommended_versioned_filename(void)
double voicevox_get_frame_rate(void)
VoicevoxResultCode voicevox_synthesizer_create_audio_query_from_kana(const struct VoicevoxSynthesizer *synthesizer, const char *kana, VoicevoxStyleId style_id, char **output_audio_query_json)
void voicevox_wav_free(uint8_t *wav)
VoicevoxResultCode voicevox_synthesizer_render(const struct VoicevoxSynthesizer *synthesizer, const struct VoicevoxAudioFeature *audio_feature, uintptr_t start_inclusive, uintptr_t end_exclusive, uintptr_t *output_pcm_length, uint8_t **output_pcm)
VoicevoxResultCode voicevox_note_validate(const char *note_json)
void voicevox_bytes_free(uint8_t *bytes)
const char * voicevox_get_version(void)
struct VoicevoxUserDict * voicevox_user_dict_new(void)
struct VoicevoxLoadOnnxruntimeOptions VoicevoxLoadOnnxruntimeOptions
VoicevoxResultCode voicevox_user_dict_remove_word(const struct VoicevoxUserDict *user_dict, const uint8_t(*word_uuid)[16])
const struct VoicevoxOnnxruntime * voicevox_synthesizer_get_onnxruntime(const struct VoicevoxSynthesizer *synthesizer)
VoicevoxResultCode voicevox_frame_audio_query_validate(const char *frame_audio_query_json)
struct VoicevoxOnnxruntime VoicevoxOnnxruntime
Definition voicevox_core.h:389
struct VoicevoxUserDictWord voicevox_user_dict_word_make(const char *surface, const char *pronunciation, uintptr_t accent_type)
void voicevox_audio_feature_delete(struct VoicevoxAudioFeature *audio_feature)
VoicevoxResultCode voicevox_onnxruntime_init_once(const struct VoicevoxOnnxruntime **out_onnxruntime)
VoicevoxResultCode voicevox_voice_model_file_open(const char *path, struct VoicevoxVoiceModelFile **out_model)
uintptr_t voicevox_audio_feature_frame_length(const struct VoicevoxAudioFeature *audio_feature)
VoicevoxResultCode voicevox_user_dict_add_word(const struct VoicevoxUserDict *user_dict, const struct VoicevoxUserDictWord *word, uint8_t(*output_word_uuid)[16])
VoicevoxResultCode voicevox_user_dict_load(const struct VoicevoxUserDict *user_dict, const char *dict_path)
VoicevoxResultCode voicevox_user_dict_import(const struct VoicevoxUserDict *user_dict, const struct VoicevoxUserDict *other_dict)
struct VoicevoxUserDictWord VoicevoxUserDictWord
void voicevox_user_dict_delete(struct VoicevoxUserDict *user_dict)
struct VoicevoxInitializeOptions voicevox_make_default_initialize_options(void)
VoicevoxResultCode voicevox_synthesizer_replace_mora_pitch(const struct VoicevoxSynthesizer *synthesizer, const char *accent_phrases_json, VoicevoxStyleId style_id, char **output_accent_phrases_json)
struct VoicevoxLoadOnnxruntimeOptions voicevox_make_default_load_onnxruntime_options(void)
VoicevoxResultCode voicevox_synthesizer_replace_phoneme_length(const struct VoicevoxSynthesizer *synthesizer, const char *accent_phrases_json, VoicevoxStyleId style_id, char **output_accent_phrases_json)
struct VoicevoxAudioQueryFrameLengthOptions VoicevoxAudioQueryFrameLengthOptions