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 {
316};
317#ifndef __cplusplus
318typedef int32_t VoicevoxResultCode;
319#endif // __cplusplus
320
352#ifndef __cplusplus
353typedef int32_t VoicevoxUserDictWordType;
354#endif // __cplusplus
355
376
385
402
411
418
428
429#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
447#endif
448
465
477
489
507typedef const uint8_t (*VoicevoxVoiceModelId)[16];
508
516typedef uint32_t VoicevoxStyleId;
517
529
549 uintptr_t start_offset;
550 uintptr_t end;
551 bool end_is_inclusive;
552 bool clamp;
553 bool allow_start_exceeds_end;
555
567
595
596#ifdef __cplusplus
597extern "C" {
598#endif // __cplusplus
599
605extern const uint8_t *voicevox_empty_bytes;
606
614#ifdef _WIN32
615__declspec(dllimport)
616#endif
618
626#ifdef _WIN32
627__declspec(dllimport)
628#endif
630
631#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
643#ifdef _WIN32
644__declspec(dllimport)
645#endif
647#endif
648
649#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
659#ifdef _WIN32
660__declspec(dllimport)
661#endif
663#endif
664
665#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
677#ifdef _WIN32
678__declspec(dllimport)
679#endif
681#endif
682
692#ifdef _WIN32
693__declspec(dllimport)
694#endif
696
697#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
721#ifdef _WIN32
722__declspec(dllimport)
723#endif
725 const struct VoicevoxOnnxruntime **out_onnxruntime);
726#endif
727
728#if defined(VOICEVOX_LINK_ONNXRUNTIME)
750#ifdef _WIN32
751__declspec(dllimport)
752#endif
754#endif
755
780#ifdef _WIN32
781__declspec(dllimport)
782#endif
783VoicevoxResultCode voicevox_open_jtalk_rc_new(const char *open_jtalk_dic_dir,
784 struct OpenJtalkRc **out_open_jtalk);
785
796#ifdef _WIN32
797__declspec(dllimport)
798#endif
800 const struct VoicevoxUserDict *user_dict);
801
813#ifdef _WIN32
814__declspec(dllimport)
815#endif
817 const char *text,
818 char **output_accent_phrases_json);
819
837#ifdef _WIN32
838__declspec(dllimport)
839#endif
841
848#ifdef _WIN32
849__declspec(dllimport)
850#endif
852
859#ifdef _WIN32
860__declspec(dllimport)
861#endif
862const char *voicevox_get_version(void);
863
871#ifdef _WIN32
872__declspec(dllimport)
873#endif
875
891#ifdef _WIN32
892__declspec(dllimport)
893#endif
895 char **output_audio_query_json);
896
904#ifdef _WIN32
905__declspec(dllimport)
906#endif
908
1060#ifdef _WIN32
1061__declspec(dllimport)
1062#endif
1065 uintptr_t *output_frame_length);
1066
1092#ifdef _WIN32
1093__declspec(dllimport)
1094#endif
1096
1118#ifdef _WIN32
1119__declspec(dllimport)
1120#endif
1122
1143#ifdef _WIN32
1144__declspec(dllimport)
1145#endif
1147
1169#ifdef _WIN32
1170__declspec(dllimport)
1171#endif
1173
1195#ifdef _WIN32
1196__declspec(dllimport)
1197#endif
1199
1223#ifdef _WIN32
1224__declspec(dllimport)
1225#endif
1227
1247#ifdef _WIN32
1248__declspec(dllimport)
1249#endif
1251
1271#ifdef _WIN32
1272__declspec(dllimport)
1273#endif
1275 const char *frame_audio_query_json);
1276
1297#ifdef _WIN32
1298__declspec(dllimport)
1299#endif
1300void voicevox_wav_from_s16le(uintptr_t pcm_length,
1301 const uint8_t *pcm,
1302 uint32_t sampling_rate,
1303 bool is_stereo,
1304 uintptr_t *output_wav_length,
1305 uint8_t **output_wav);
1306
1322#ifdef _WIN32
1323__declspec(dllimport)
1324#endif
1326 struct VoicevoxVoiceModelFile **out_model);
1327
1340#ifdef _WIN32
1341__declspec(dllimport)
1342#endif
1344 uint8_t (*output_voice_model_id)[16]);
1345
1357#ifdef _WIN32
1358__declspec(dllimport)
1359#endif
1361
1373#ifdef _WIN32
1374__declspec(dllimport)
1375#endif
1377
1395#ifdef _WIN32
1396__declspec(dllimport)
1397#endif
1399 const struct OpenJtalkRc *open_jtalk,
1400 struct VoicevoxInitializeOptions options,
1401 struct VoicevoxSynthesizer **out_synthesizer);
1402
1414#ifdef _WIN32
1415__declspec(dllimport)
1416#endif
1418
1425#ifdef _WIN32
1426__declspec(dllimport)
1427#endif
1429
1441#ifdef _WIN32
1442__declspec(dllimport)
1443#endif
1445 const struct VoicevoxVoiceModelFile *model,
1446 struct VoicevoxLoadVoiceModelOptions options);
1447
1462#ifdef _WIN32
1463__declspec(dllimport)
1464#endif
1466 VoicevoxVoiceModelId model_id);
1467
1477#ifdef _WIN32
1478__declspec(dllimport)
1479#endif
1481
1491#ifdef _WIN32
1492__declspec(dllimport)
1493#endif
1495
1510#ifdef _WIN32
1511__declspec(dllimport)
1512#endif
1514 VoicevoxVoiceModelId model_id);
1515
1527#ifdef _WIN32
1528__declspec(dllimport)
1529#endif
1531
1558#ifdef _WIN32
1559__declspec(dllimport)
1560#endif
1562 char **output_supported_devices_json);
1563
1592#ifdef _WIN32
1593__declspec(dllimport)
1594#endif
1596 const char *kana,
1597 VoicevoxStyleId style_id,
1598 char **output_audio_query_json);
1599
1633#ifdef _WIN32
1634__declspec(dllimport)
1635#endif
1637 const char *text,
1638 VoicevoxStyleId style_id,
1639 char **output_audio_query_json);
1640
1670#ifdef _WIN32
1671__declspec(dllimport)
1672#endif
1674 const char *kana,
1675 VoicevoxStyleId style_id,
1676 char **output_accent_phrases_json);
1677
1711#ifdef _WIN32
1712__declspec(dllimport)
1713#endif
1715 const char *text,
1716 VoicevoxStyleId style_id,
1717 char **output_accent_phrases_json);
1718
1743#ifdef _WIN32
1744__declspec(dllimport)
1745#endif
1747 const char *accent_phrases_json,
1748 VoicevoxStyleId style_id,
1749 char **output_accent_phrases_json);
1750
1770#ifdef _WIN32
1771__declspec(dllimport)
1772#endif
1774 const char *accent_phrases_json,
1775 VoicevoxStyleId style_id,
1776 char **output_accent_phrases_json);
1777
1797#ifdef _WIN32
1798__declspec(dllimport)
1799#endif
1801 const char *accent_phrases_json,
1802 VoicevoxStyleId style_id,
1803 char **output_accent_phrases_json);
1804
1811#ifdef _WIN32
1812__declspec(dllimport)
1813#endif
1815
1838#ifdef _WIN32
1839__declspec(dllimport)
1840#endif
1842 const char *audio_query_json,
1843 VoicevoxStyleId style_id,
1844 struct VoicevoxSynthesisOptions options,
1845 uintptr_t *output_wav_length,
1846 uint8_t **output_wav);
1847
1873#ifdef _WIN32
1874__declspec(dllimport)
1875#endif
1877 const char *audio_query_json,
1878 VoicevoxStyleId style_id,
1879 struct VoicevoxSynthesisOptions options,
1880 struct VoicevoxAudioFeature **out_audio_feature);
1881
1895#ifdef _WIN32
1896__declspec(dllimport)
1897#endif
1898uintptr_t voicevox_audio_feature_len(const struct VoicevoxAudioFeature *audio_feature);
1899
1909#ifdef _WIN32
1910__declspec(dllimport)
1911#endif
1913
1938#ifdef _WIN32
1939__declspec(dllimport)
1940#endif
1942 uintptr_t start_inclusive,
1943 uintptr_t end,
1944 bool end_is_inclusive,
1945 bool clamp,
1946 bool allow_start_exceeds_end,
1947 struct VoicevoxAudioFeatureSlice *output);
1948
1956#ifdef _WIN32
1957__declspec(dllimport)
1958#endif
1960 bool clamp,
1961 bool allow_start_exceeds_end);
1962
1980#ifdef _WIN32
1981__declspec(dllimport)
1982#endif
1984 uintptr_t *output);
1985
2003#ifdef _WIN32
2004__declspec(dllimport)
2005#endif
2007 bool *output);
2008
2033#ifdef _WIN32
2034__declspec(dllimport)
2035#endif
2037 uintptr_t start_inclusive,
2038 uintptr_t end,
2039 bool end_is_inclusive,
2040 bool clamp,
2041 bool allow_start_exceeds_end,
2042 struct VoicevoxAudioFeatureSlice *output);
2043
2065#ifdef _WIN32
2066__declspec(dllimport)
2067#endif
2069 struct VoicevoxAudioFeatureSlice audio_feature_slice,
2070 uintptr_t *output_pcm_length,
2071 uint8_t **output_pcm);
2072
2084#ifdef _WIN32
2085__declspec(dllimport)
2086#endif
2088
2095#ifdef _WIN32
2096__declspec(dllimport)
2097#endif
2099
2122#ifdef _WIN32
2123__declspec(dllimport)
2124#endif
2126 const char *kana,
2127 VoicevoxStyleId style_id,
2128 struct VoicevoxTtsOptions options,
2129 uintptr_t *output_wav_length,
2130 uint8_t **output_wav);
2131
2159#ifdef _WIN32
2160__declspec(dllimport)
2161#endif
2163 const char *text,
2164 VoicevoxStyleId style_id,
2165 struct VoicevoxTtsOptions options,
2166 uintptr_t *output_wav_length,
2167 uint8_t **output_wav);
2168
2215#ifdef _WIN32
2216__declspec(dllimport)
2217#endif
2219 const char *score_json,
2220 VoicevoxStyleId style_id,
2221 char **output_frame_audio_query_json);
2222
2250#ifdef _WIN32
2251__declspec(dllimport)
2252#endif
2254 const char *score_json,
2255 const char *frame_audio_query_json,
2256 VoicevoxStyleId style_id,
2257 char **output_f0_json);
2258
2286#ifdef _WIN32
2287__declspec(dllimport)
2288#endif
2290 const char *score_json,
2291 const char *frame_audio_query_json,
2292 VoicevoxStyleId style_id,
2293 char **output_volume_json);
2294
2333#ifdef _WIN32
2334__declspec(dllimport)
2335#endif
2337 const char *frame_audio_query_json,
2338 VoicevoxStyleId style_id,
2339 uintptr_t *output_wav_length,
2340 uint8_t **output_wav);
2341
2372#ifdef _WIN32
2373__declspec(dllimport)
2374#endif
2375void voicevox_string_free(char *string);
2376
2407#ifdef _WIN32
2408__declspec(dllimport)
2409#endif
2410VOICEVOX_DEPRECATED("use 'voicevox_string_free' instead")
2411void voicevox_json_free(char *json);
2412
2434#ifdef _WIN32
2435__declspec(dllimport)
2436#endif
2437void voicevox_bytes_free(uint8_t *bytes);
2438
2458#ifdef _WIN32
2459__declspec(dllimport)
2460#endif
2461VOICEVOX_DEPRECATED("use 'voicevox_bytes_free' instead")
2462void voicevox_wav_free(uint8_t *wav);
2463
2488#ifdef _WIN32
2489__declspec(dllimport)
2490#endif
2492
2503#ifdef _WIN32
2504__declspec(dllimport)
2505#endif
2507 const char *pronunciation,
2508 uintptr_t accent_type);
2509
2517#ifdef _WIN32
2518__declspec(dllimport)
2519#endif
2521
2535#ifdef _WIN32
2536__declspec(dllimport)
2537#endif
2539 const char *dict_path);
2540
2559#ifdef _WIN32
2560__declspec(dllimport)
2561#endif
2563 const struct VoicevoxUserDictWord *word,
2564 uint8_t (*output_word_uuid)[16]);
2565
2581#ifdef _WIN32
2582__declspec(dllimport)
2583#endif
2585 const uint8_t (*word_uuid)[16],
2586 const struct VoicevoxUserDictWord *word);
2587
2601#ifdef _WIN32
2602__declspec(dllimport)
2603#endif
2605 const uint8_t (*word_uuid)[16]);
2606
2622#ifdef _WIN32
2623__declspec(dllimport)
2624#endif
2626 char **output_json);
2627
2637#ifdef _WIN32
2638__declspec(dllimport)
2639#endif
2641 const struct VoicevoxUserDict *other_dict);
2642
2655#ifdef _WIN32
2656__declspec(dllimport)
2657#endif
2659 const char *path);
2660
2672#ifdef _WIN32
2673__declspec(dllimport)
2674#endif
2676
2677#ifdef __cplusplus
2678} // extern "C"
2679#endif // __cplusplus
2680
2681#undef VOICEVOX_DEPRECATED
2682
2683#endif /* VOICEVOX_CORE_INCLUDE_GUARD */
Definition voicevox_core.h:537
uintptr_t start_offset
Definition voicevox_core.h:549
const struct VoicevoxAudioFeature * audio_feature
Definition voicevox_core.h:543
Definition voicevox_core.h:471
bool enable_interrogative_upspeak
Definition voicevox_core.h:475
Definition voicevox_core.h:454
uint16_t cpu_num_threads
Definition voicevox_core.h:463
VoicevoxAccelerationMode acceleration_mode
Definition voicevox_core.h:458
Definition voicevox_core.h:439
const char * filename
Definition voicevox_core.h:445
Definition voicevox_core.h:483
VoicevoxOnExistingVoiceModelId on_existing
Definition voicevox_core.h:487
Definition voicevox_core.h:523
bool enable_interrogative_upspeak
Definition voicevox_core.h:527
Definition voicevox_core.h:561
bool enable_interrogative_upspeak
Definition voicevox_core.h:565
Definition voicevox_core.h:573
VoicevoxUserDictWordType word_type
Definition voicevox_core.h:589
const char * surface
Definition voicevox_core.h:577
uintptr_t accent_type
Definition voicevox_core.h:585
const char * pronunciation
Definition voicevox_core.h:581
uint8_t priority
Definition voicevox_core.h:593
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:516
struct VoicevoxAudioFeatureSlice VoicevoxAudioFeatureSlice
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:375
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)
struct VoicevoxAudioFeatureSlice voicevox_audio_feature_slice_new(const struct VoicevoxAudioFeature *audio_feature, bool clamp, bool allow_start_exceeds_end)
VoicevoxUserDictWordType
Definition voicevox_core.h:330
@ VOICEVOX_USER_DICT_WORD_TYPE_ADJECTIVE
Definition voicevox_core.h:346
@ VOICEVOX_USER_DICT_WORD_TYPE_SUFFIX
Definition voicevox_core.h:350
@ VOICEVOX_USER_DICT_WORD_TYPE_PROPER_NOUN
Definition voicevox_core.h:334
@ VOICEVOX_USER_DICT_WORD_TYPE_VERB
Definition voicevox_core.h:342
@ VOICEVOX_USER_DICT_WORD_TYPE_COMMON_NOUN
Definition voicevox_core.h:338
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:384
VoicevoxResultCode voicevox_frame_phoneme_validate(const char *frame_phoneme_json)
const uint8_t * voicevox_empty_bytes
bool voicevox_audio_feature_is_empty(const struct VoicevoxAudioFeature *audio_feature)
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_audio_feature_slice(const struct VoicevoxAudioFeature *audio_feature, uintptr_t start_inclusive, uintptr_t end, bool end_is_inclusive, bool clamp, bool allow_start_exceeds_end, struct VoicevoxAudioFeatureSlice *output)
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:507
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)
VoicevoxResultCode voicevox_synthesizer_render(const struct VoicevoxSynthesizer *synthesizer, struct VoicevoxAudioFeatureSlice audio_feature_slice, uintptr_t *output_pcm_length, uint8_t **output_pcm)
struct VoicevoxInitializeOptions VoicevoxInitializeOptions
VoicevoxResultCode voicevox_onnxruntime_load_once(struct VoicevoxLoadOnnxruntimeOptions options, const struct VoicevoxOnnxruntime **out_onnxruntime)
VoicevoxResultCode voicevox_audio_feature_slice_len(struct VoicevoxAudioFeatureSlice audio_feature_slice, uintptr_t *output)
struct VoicevoxVoiceModelFile VoicevoxVoiceModelFile
Definition voicevox_core.h:427
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 voicevox_audio_feature_slice_is_empty(struct VoicevoxAudioFeatureSlice audio_feature_slice, bool *output)
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_END_OUT_OF_BOUNDS_ERROR
Definition voicevox_core.h:311
@ 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_START_EXCEEDS_END_ERROR
Definition voicevox_core.h:315
@ 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_START_OUT_OF_BOUNDS_ERROR
Definition voicevox_core.h:307
@ 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_audio_feature_slice_slice(struct VoicevoxAudioFeatureSlice audio_feature_slice, uintptr_t start_inclusive, uintptr_t end, bool end_is_inclusive, bool clamp, bool allow_start_exceeds_end, struct VoicevoxAudioFeatureSlice *output)
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:410
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:417
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)
uintptr_t voicevox_audio_feature_len(const struct VoicevoxAudioFeature *audio_feature)
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:401
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)
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