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
99#ifdef __cplusplus
100 : int32_t
101#endif // __cplusplus
102 {
115};
116#ifndef __cplusplus
117typedef int32_t VoicevoxAccelerationMode;
118#endif // __cplusplus
119
143#ifndef __cplusplus
144typedef int32_t VoicevoxOnExistingVoiceModelId;
145#endif // __cplusplus
146
153#ifdef __cplusplus
154 : int32_t
155#endif // __cplusplus
156 {
281};
282#ifndef __cplusplus
283typedef int32_t VoicevoxResultCode;
284#endif // __cplusplus
285
317#ifndef __cplusplus
318typedef int32_t VoicevoxUserDictWordType;
319#endif // __cplusplus
320
341
350
367
376
383
393
394#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
412#endif
413
430
442
460typedef const uint8_t (*VoicevoxVoiceModelId)[16];
461
469typedef uint32_t VoicevoxStyleId;
470
482
494
522
523#ifdef __cplusplus
524extern "C" {
525#endif // __cplusplus
526
534#ifdef _WIN32
535__declspec(dllimport)
536#endif
538
546#ifdef _WIN32
547__declspec(dllimport)
548#endif
550
551#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
563#ifdef _WIN32
564__declspec(dllimport)
565#endif
567#endif
568
569#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
579#ifdef _WIN32
580__declspec(dllimport)
581#endif
583#endif
584
585#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
597#ifdef _WIN32
598__declspec(dllimport)
599#endif
601#endif
602
612#ifdef _WIN32
613__declspec(dllimport)
614#endif
616
617#if defined(VOICEVOX_LOAD_ONNXRUNTIME)
641#ifdef _WIN32
642__declspec(dllimport)
643#endif
645 const struct VoicevoxOnnxruntime **out_onnxruntime);
646#endif
647
648#if defined(VOICEVOX_LINK_ONNXRUNTIME)
670#ifdef _WIN32
671__declspec(dllimport)
672#endif
674#endif
675
700#ifdef _WIN32
701__declspec(dllimport)
702#endif
703VoicevoxResultCode voicevox_open_jtalk_rc_new(const char *open_jtalk_dic_dir,
704 struct OpenJtalkRc **out_open_jtalk);
705
716#ifdef _WIN32
717__declspec(dllimport)
718#endif
720 const struct VoicevoxUserDict *user_dict);
721
733#ifdef _WIN32
734__declspec(dllimport)
735#endif
737 const char *text,
738 char **output_accent_phrases_json);
739
757#ifdef _WIN32
758__declspec(dllimport)
759#endif
761
768#ifdef _WIN32
769__declspec(dllimport)
770#endif
772
779#ifdef _WIN32
780__declspec(dllimport)
781#endif
782const char *voicevox_get_version(void);
783
799#ifdef _WIN32
800__declspec(dllimport)
801#endif
803 char **output_audio_query_json);
804
830#ifdef _WIN32
831__declspec(dllimport)
832#endif
834
856#ifdef _WIN32
857__declspec(dllimport)
858#endif
860
881#ifdef _WIN32
882__declspec(dllimport)
883#endif
885
907#ifdef _WIN32
908__declspec(dllimport)
909#endif
911
933#ifdef _WIN32
934__declspec(dllimport)
935#endif
937
961#ifdef _WIN32
962__declspec(dllimport)
963#endif
964VoicevoxResultCode voicevox_frame_audio_query_validate(const char *frame_audio_query_json);
965
985#ifdef _WIN32
986__declspec(dllimport)
987#endif
989
1009#ifdef _WIN32
1010__declspec(dllimport)
1011#endif
1013 const char *frame_audio_query_json);
1014
1035#ifdef _WIN32
1036__declspec(dllimport)
1037#endif
1038void voicevox_wav_from_s16le(uintptr_t pcm_length,
1039 const uint8_t *pcm,
1040 uint32_t sampling_rate,
1041 bool is_stereo,
1042 uintptr_t *output_wav_length,
1043 uint8_t **output_wav);
1044
1060#ifdef _WIN32
1061__declspec(dllimport)
1062#endif
1064 struct VoicevoxVoiceModelFile **out_model);
1065
1078#ifdef _WIN32
1079__declspec(dllimport)
1080#endif
1082 uint8_t (*output_voice_model_id)[16]);
1083
1095#ifdef _WIN32
1096__declspec(dllimport)
1097#endif
1099
1111#ifdef _WIN32
1112__declspec(dllimport)
1113#endif
1115
1133#ifdef _WIN32
1134__declspec(dllimport)
1135#endif
1137 const struct OpenJtalkRc *open_jtalk,
1138 struct VoicevoxInitializeOptions options,
1139 struct VoicevoxSynthesizer **out_synthesizer);
1140
1152#ifdef _WIN32
1153__declspec(dllimport)
1154#endif
1156
1163#ifdef _WIN32
1164__declspec(dllimport)
1165#endif
1167
1179#ifdef _WIN32
1180__declspec(dllimport)
1181#endif
1183 const struct VoicevoxVoiceModelFile *model,
1184 struct VoicevoxLoadVoiceModelOptions options);
1185
1200#ifdef _WIN32
1201__declspec(dllimport)
1202#endif
1204 VoicevoxVoiceModelId model_id);
1205
1215#ifdef _WIN32
1216__declspec(dllimport)
1217#endif
1219
1229#ifdef _WIN32
1230__declspec(dllimport)
1231#endif
1233
1248#ifdef _WIN32
1249__declspec(dllimport)
1250#endif
1252 VoicevoxVoiceModelId model_id);
1253
1265#ifdef _WIN32
1266__declspec(dllimport)
1267#endif
1269
1296#ifdef _WIN32
1297__declspec(dllimport)
1298#endif
1300 char **output_supported_devices_json);
1301
1330#ifdef _WIN32
1331__declspec(dllimport)
1332#endif
1334 const char *kana,
1335 VoicevoxStyleId style_id,
1336 char **output_audio_query_json);
1337
1371#ifdef _WIN32
1372__declspec(dllimport)
1373#endif
1375 const char *text,
1376 VoicevoxStyleId style_id,
1377 char **output_audio_query_json);
1378
1408#ifdef _WIN32
1409__declspec(dllimport)
1410#endif
1412 const char *kana,
1413 VoicevoxStyleId style_id,
1414 char **output_accent_phrases_json);
1415
1449#ifdef _WIN32
1450__declspec(dllimport)
1451#endif
1453 const char *text,
1454 VoicevoxStyleId style_id,
1455 char **output_accent_phrases_json);
1456
1481#ifdef _WIN32
1482__declspec(dllimport)
1483#endif
1485 const char *accent_phrases_json,
1486 VoicevoxStyleId style_id,
1487 char **output_accent_phrases_json);
1488
1508#ifdef _WIN32
1509__declspec(dllimport)
1510#endif
1512 const char *accent_phrases_json,
1513 VoicevoxStyleId style_id,
1514 char **output_accent_phrases_json);
1515
1535#ifdef _WIN32
1536__declspec(dllimport)
1537#endif
1539 const char *accent_phrases_json,
1540 VoicevoxStyleId style_id,
1541 char **output_accent_phrases_json);
1542
1549#ifdef _WIN32
1550__declspec(dllimport)
1551#endif
1553
1576#ifdef _WIN32
1577__declspec(dllimport)
1578#endif
1580 const char *audio_query_json,
1581 VoicevoxStyleId style_id,
1582 struct VoicevoxSynthesisOptions options,
1583 uintptr_t *output_wav_length,
1584 uint8_t **output_wav);
1585
1606#ifdef _WIN32
1607__declspec(dllimport)
1608#endif
1610 const char *audio_query_json,
1611 VoicevoxStyleId style_id,
1612 struct VoicevoxSynthesisOptions options,
1613 struct VoicevoxAudioFeature **out_audio_feature);
1614
1624#ifdef _WIN32
1625__declspec(dllimport)
1626#endif
1627uintptr_t voicevox_audio_feature_frame_length(const struct VoicevoxAudioFeature *audio_feature);
1628
1650#ifdef _WIN32
1651__declspec(dllimport)
1652#endif
1654 const struct VoicevoxAudioFeature *audio_feature,
1655 uintptr_t start_inclusive,
1656 uintptr_t end_exclusive,
1657 uintptr_t *output_pcm_length,
1658 uint8_t **output_pcm);
1659
1671#ifdef _WIN32
1672__declspec(dllimport)
1673#endif
1675
1682#ifdef _WIN32
1683__declspec(dllimport)
1684#endif
1686
1709#ifdef _WIN32
1710__declspec(dllimport)
1711#endif
1713 const char *kana,
1714 VoicevoxStyleId style_id,
1715 struct VoicevoxTtsOptions options,
1716 uintptr_t *output_wav_length,
1717 uint8_t **output_wav);
1718
1746#ifdef _WIN32
1747__declspec(dllimport)
1748#endif
1750 const char *text,
1751 VoicevoxStyleId style_id,
1752 struct VoicevoxTtsOptions options,
1753 uintptr_t *output_wav_length,
1754 uint8_t **output_wav);
1755
1802#ifdef _WIN32
1803__declspec(dllimport)
1804#endif
1806 const char *score_json,
1807 VoicevoxStyleId style_id,
1808 char **output_frame_audio_query_json);
1809
1837#ifdef _WIN32
1838__declspec(dllimport)
1839#endif
1841 const char *score_json,
1842 const char *frame_audio_query_json,
1843 VoicevoxStyleId style_id,
1844 char **output_f0_json);
1845
1873#ifdef _WIN32
1874__declspec(dllimport)
1875#endif
1877 const char *score_json,
1878 const char *frame_audio_query_json,
1879 VoicevoxStyleId style_id,
1880 char **output_volume_json);
1881
1920#ifdef _WIN32
1921__declspec(dllimport)
1922#endif
1924 const char *frame_audio_query_json,
1925 VoicevoxStyleId style_id,
1926 uintptr_t *output_wav_length,
1927 uint8_t **output_wav);
1928
1959#ifdef _WIN32
1960__declspec(dllimport)
1961#endif
1962void voicevox_json_free(char *json);
1963
1981#ifdef _WIN32
1982__declspec(dllimport)
1983#endif
1984void voicevox_wav_free(uint8_t *wav);
1985
2010#ifdef _WIN32
2011__declspec(dllimport)
2012#endif
2014
2025#ifdef _WIN32
2026__declspec(dllimport)
2027#endif
2029 const char *pronunciation,
2030 uintptr_t accent_type);
2031
2039#ifdef _WIN32
2040__declspec(dllimport)
2041#endif
2043
2057#ifdef _WIN32
2058__declspec(dllimport)
2059#endif
2061 const char *dict_path);
2062
2081#ifdef _WIN32
2082__declspec(dllimport)
2083#endif
2085 const struct VoicevoxUserDictWord *word,
2086 uint8_t (*output_word_uuid)[16]);
2087
2103#ifdef _WIN32
2104__declspec(dllimport)
2105#endif
2107 const uint8_t (*word_uuid)[16],
2108 const struct VoicevoxUserDictWord *word);
2109
2123#ifdef _WIN32
2124__declspec(dllimport)
2125#endif
2127 const uint8_t (*word_uuid)[16]);
2128
2144#ifdef _WIN32
2145__declspec(dllimport)
2146#endif
2148 char **output_json);
2149
2159#ifdef _WIN32
2160__declspec(dllimport)
2161#endif
2163 const struct VoicevoxUserDict *other_dict);
2164
2177#ifdef _WIN32
2178__declspec(dllimport)
2179#endif
2181 const char *path);
2182
2194#ifdef _WIN32
2195__declspec(dllimport)
2196#endif
2198
2199#ifdef __cplusplus
2200} // extern "C"
2201#endif // __cplusplus
2202
2203#endif /* VOICEVOX_CORE_INCLUDE_GUARD */
Definition voicevox_core.h:419
uint16_t cpu_num_threads
Definition voicevox_core.h:428
VoicevoxAccelerationMode acceleration_mode
Definition voicevox_core.h:423
Definition voicevox_core.h:404
const char * filename
Definition voicevox_core.h:410
Definition voicevox_core.h:436
VoicevoxOnExistingVoiceModelId on_existing
Definition voicevox_core.h:440
Definition voicevox_core.h:476
bool enable_interrogative_upspeak
Definition voicevox_core.h:480
Definition voicevox_core.h:488
bool enable_interrogative_upspeak
Definition voicevox_core.h:492
Definition voicevox_core.h:500
VoicevoxUserDictWordType word_type
Definition voicevox_core.h:516
const char * surface
Definition voicevox_core.h:504
uintptr_t accent_type
Definition voicevox_core.h:512
const char * pronunciation
Definition voicevox_core.h:508
uint8_t priority
Definition voicevox_core.h:520
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:469
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:340
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:295
@ VOICEVOX_USER_DICT_WORD_TYPE_ADJECTIVE
Definition voicevox_core.h:311
@ VOICEVOX_USER_DICT_WORD_TYPE_SUFFIX
Definition voicevox_core.h:315
@ VOICEVOX_USER_DICT_WORD_TYPE_PROPER_NOUN
Definition voicevox_core.h:299
@ VOICEVOX_USER_DICT_WORD_TYPE_VERB
Definition voicevox_core.h:307
@ VOICEVOX_USER_DICT_WORD_TYPE_COMMON_NOUN
Definition voicevox_core.h:303
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:349
VoicevoxResultCode voicevox_frame_phoneme_validate(const char *frame_phoneme_json)
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:460
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:129
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_RELOAD
Definition voicevox_core.h:137
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_ERROR
Definition voicevox_core.h:133
@ VOICEVOX_ON_EXISTING_VOICE_MODEL_ID_SKIP
Definition voicevox_core.h:141
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)
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:392
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:156
@ VOICEVOX_RESULT_INVALID_FRAME_PHONEME_ERROR
Definition voicevox_core.h:276
@ VOICEVOX_RESULT_RUN_MODEL_ERROR
Definition voicevox_core.h:188
@ VOICEVOX_RESULT_USER_DICT_WORD_NOT_FOUND_ERROR
Definition voicevox_core.h:244
@ VOICEVOX_RESULT_USE_USER_DICT_ERROR
Definition voicevox_core.h:248
@ VOICEVOX_RESULT_GPU_SUPPORT_ERROR
Definition voicevox_core.h:172
@ VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR
Definition voicevox_core.h:252
@ VOICEVOX_RESULT_INVALID_UUID_ERROR
Definition voicevox_core.h:256
@ VOICEVOX_RESULT_INVALID_ACCENT_PHRASE_ERROR
Definition voicevox_core.h:208
@ VOICEVOX_RESULT_ANALYZE_TEXT_ERROR
Definition voicevox_core.h:192
@ VOICEVOX_RESULT_MODEL_ALREADY_LOADED_ERROR
Definition voicevox_core.h:224
@ VOICEVOX_RESULT_INIT_INFERENCE_RUNTIME_ERROR
Definition voicevox_core.h:176
@ VOICEVOX_RESULT_NOT_LOADED_OPENJTALK_DICT_ERROR
Definition voicevox_core.h:164
@ VOICEVOX_RESULT_INVALID_MODEL_FORMAT_ERROR
Definition voicevox_core.h:220
@ VOICEVOX_RESULT_INVALID_AUDIO_QUERY_ERROR
Definition voicevox_core.h:204
@ VOICEVOX_RESULT_SAVE_USER_DICT_ERROR
Definition voicevox_core.h:240
@ VOICEVOX_RESULT_INVALID_MODEL_DATA_ERROR
Definition voicevox_core.h:232
@ VOICEVOX_RESULT_OPEN_ZIP_FILE_ERROR
Definition voicevox_core.h:212
@ VOICEVOX_RESULT_OK
Definition voicevox_core.h:160
@ VOICEVOX_RESULT_PARSE_KANA_ERROR
Definition voicevox_core.h:200
@ VOICEVOX_RESULT_STYLE_NOT_FOUND_ERROR
Definition voicevox_core.h:180
@ VOICEVOX_RESULT_INVALID_FRAME_AUDIO_QUERY_ERROR
Definition voicevox_core.h:272
@ VOICEVOX_RESULT_GET_SUPPORTED_DEVICES_ERROR
Definition voicevox_core.h:168
@ VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR
Definition voicevox_core.h:280
@ VOICEVOX_RESULT_STYLE_ALREADY_LOADED_ERROR
Definition voicevox_core.h:228
@ VOICEVOX_RESULT_LOAD_USER_DICT_ERROR
Definition voicevox_core.h:236
@ VOICEVOX_RESULT_MODEL_NOT_FOUND_ERROR
Definition voicevox_core.h:184
@ VOICEVOX_RESULT_READ_ZIP_ENTRY_ERROR
Definition voicevox_core.h:216
@ VOICEVOX_RESULT_INVALID_NOTE_ERROR
Definition voicevox_core.h:268
@ VOICEVOX_RESULT_INVALID_SCORE_ERROR
Definition voicevox_core.h:264
@ VOICEVOX_RESULT_INVALID_UTF8_INPUT_ERROR
Definition voicevox_core.h:196
@ VOICEVOX_RESULT_INVALID_MORA_ERROR
Definition voicevox_core.h:260
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:102
@ VOICEVOX_ACCELERATION_MODE_GPU
Definition voicevox_core.h:114
@ VOICEVOX_ACCELERATION_MODE_AUTO
Definition voicevox_core.h:106
@ VOICEVOX_ACCELERATION_MODE_CPU
Definition voicevox_core.h:110
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:375
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_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:382
void voicevox_synthesizer_delete(struct VoicevoxSynthesizer *synthesizer)
const char * voicevox_get_onnxruntime_lib_recommended_versioned_filename(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)
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:366
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)