voicevox_core library

Constants

VOICEVOX_ACCELERATION_MODE_AUTO → const int
VOICEVOX_ACCELERATION_MODE_CPU → const int
VOICEVOX_ACCELERATION_MODE_GPU → const int
VOICEVOX_RESULT_ANALYZE_TEXT_ERROR → const int
VOICEVOX_RESULT_GET_SUPPORTED_DEVICES_ERROR → const int
VOICEVOX_RESULT_GPU_SUPPORT_ERROR → const int
VOICEVOX_RESULT_INCOMPATIBLE_QUERIES_ERROR → const int
VOICEVOX_RESULT_INIT_INFERENCE_RUNTIME_ERROR → const int
VOICEVOX_RESULT_INVALID_ACCENT_PHRASE_ERROR → const int
VOICEVOX_RESULT_INVALID_AUDIO_QUERY_ERROR → const int
VOICEVOX_RESULT_INVALID_FRAME_AUDIO_QUERY_ERROR → const int
VOICEVOX_RESULT_INVALID_FRAME_PHONEME_ERROR → const int
VOICEVOX_RESULT_INVALID_MODEL_DATA_ERROR → const int
VOICEVOX_RESULT_INVALID_MODEL_HEADER_ERROR → const int
VOICEVOX_RESULT_INVALID_MORA_ERROR → const int
VOICEVOX_RESULT_INVALID_NOTE_ERROR → const int
VOICEVOX_RESULT_INVALID_SCORE_ERROR → const int
VOICEVOX_RESULT_INVALID_USER_DICT_WORD_ERROR → const int
VOICEVOX_RESULT_INVALID_UTF8_INPUT_ERROR → const int
VOICEVOX_RESULT_INVALID_UUID_ERROR → const int
VOICEVOX_RESULT_LOAD_USER_DICT_ERROR → const int
VOICEVOX_RESULT_MODEL_ALREADY_LOADED_ERROR → const int
VOICEVOX_RESULT_MODEL_NOT_FOUND_ERROR → const int
VOICEVOX_RESULT_NOT_LOADED_OPENJTALK_DICT_ERROR → const int
VOICEVOX_RESULT_OK → const int
VOICEVOX_RESULT_OPEN_ZIP_FILE_ERROR → const int
VOICEVOX_RESULT_PARSE_KANA_ERROR → const int
VOICEVOX_RESULT_READ_ZIP_ENTRY_ERROR → const int
VOICEVOX_RESULT_RUN_MODEL_ERROR → const int
VOICEVOX_RESULT_SAVE_USER_DICT_ERROR → const int
VOICEVOX_RESULT_STYLE_ALREADY_LOADED_ERROR → const int
VOICEVOX_RESULT_STYLE_NOT_FOUND_ERROR → const int
VOICEVOX_RESULT_USE_USER_DICT_ERROR → const int
VOICEVOX_RESULT_USER_DICT_WORD_NOT_FOUND_ERROR → const int
VOICEVOX_USER_DICT_WORD_TYPE_ADJECTIVE → const int
VOICEVOX_USER_DICT_WORD_TYPE_COMMON_NOUN → const int
VOICEVOX_USER_DICT_WORD_TYPE_PROPER_NOUN → const int
VOICEVOX_USER_DICT_WORD_TYPE_SUFFIX → const int
VOICEVOX_USER_DICT_WORD_TYPE_VERB → const int

Functions

voicevoxAccentPhraseValidate(String? accentPhraseJson) int
与えられたJSONがAccentPhrase型として不正であるときエラーを返す。
voicevoxAudioQueryCreateFromAccentPhrases(String? accentPhrasesJson, Pointer<Pointer<Int8>> outputAudioQueryJson) int
AccentPhraseの配列からAudioQueryを作る。
voicevoxAudioQueryValidate(String? audioQueryJson) int
与えられたJSONがAudioQuery型として不正であるときエラーを返す。
voicevoxEnsureCompatible(String? scoreJson, String? frameAudioQueryJson) int
与えられた楽譜と歌唱合成用のクエリの組み合わせが、基本周波数と音量の生成に利用できるかどうかを確認する。
voicevoxErrorResultToMessage(int resultCode) String?
結果コードに対応したメッセージ文字列を取得する。
voicevoxFrameAudioQueryValidate(String? frameAudioQueryJson) int
与えられたJSONがFrameAudioQuery型として不正であるときエラーを返す。
voicevoxFramePhonemeValidate(String? framePhonemeJson) int
与えられたJSONがFramePhoneme型として不正であるときエラーを返す。
voicevoxGetOnnxruntimeLibUnversionedFilename() String?
ONNX Runtimeの動的ライブラリの、バージョン無しのファイル名。
voicevoxGetOnnxruntimeLibVersionedFilename() String?
ONNX Runtimeの動的ライブラリの、バージョン付きのファイル名。
voicevoxGetVersion() String?
voicevoxのバージョンを取得する。 @return SemVerでフォーマットされたバージョン。
voicevoxJsonFree(Pointer<Int8> json) → void
JSON文字列を解放する。
voicevoxMakeDefaultInitializeOptions() VoicevoxInitializeOptions
デフォルトの初期化オプションを生成する @return デフォルト値が設定された初期化オプション
voicevoxMakeDefaultLoadOnnxruntimeOptions() VoicevoxLoadOnnxruntimeOptions
デフォルトの ::voicevox_onnxruntime_load_once のオプションを生成する。
voicevoxMakeDefaultSynthesisOptions() VoicevoxSynthesisOptions
デフォルトの voicevox_synthesizer_synthesis のオプションを生成する @return デフォルト値が設定された voicevox_synthesizer_synthesis のオプション
voicevoxMakeDefaultTtsOptions() VoicevoxTtsOptions
デフォルトのテキスト音声合成オプションを生成する @return テキスト音声合成オプション
voicevoxMoraValidate(String? moraJson) int
与えられたJSONがMora型として不正であるときエラーを返す。
voicevoxNoteValidate(String? noteJson) int
与えられたJSONがNote型として不正であるときエラーを返す。
voicevoxOnnxruntimeCreateSupportedDevicesJson(Pointer<VoicevoxOnnxruntime> onnxruntime, Pointer<Pointer<Int8>> outputSupportedDevicesJson) int
ONNX Runtimeとして利用可能なデバイスの情報を、JSONで取得する。
voicevoxOnnxruntimeGet() Pointer<VoicevoxOnnxruntime>
::VoicevoxOnnxruntime のインスタンスが既に作られているならそれを得る。
voicevoxOnnxruntimeInitOnce(Pointer<Pointer<VoicevoxOnnxruntime>> outOnnxruntime) int
ONNX Runtimeを初期化する。
voicevoxOnnxruntimeLoadOnce(VoicevoxLoadOnnxruntimeOptions options, Pointer<Pointer<VoicevoxOnnxruntime>> outOnnxruntime) int
ONNX Runtimeをロードして初期化する。
voicevoxOpenJtalkRcAnalyze(Pointer<OpenJtalkRc> openJtalk, String? text, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
日本語のテキストを解析する。
voicevoxOpenJtalkRcDelete(Pointer<OpenJtalkRc> openJtalk) → void
::OpenJtalkRc を破棄(destruct)する。
voicevoxOpenJtalkRcNew(String? openJtalkDicDir, Pointer<Pointer<OpenJtalkRc>> outOpenJtalk) int
::OpenJtalkRc を構築(construct)する。
voicevoxOpenJtalkRcUseUserDict(Pointer<OpenJtalkRc> openJtalk, Pointer<VoicevoxUserDict> userDict) int
OpenJtalkの使うユーザー辞書を設定する。
voicevoxScoreValidate(String? scoreJson) int
与えられたJSONがScore型として不正であるときエラーを返す。
voicevoxSynthesizerCreateAccentPhrases(Pointer<VoicevoxSynthesizer> synthesizer, String? text, int styleId, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
日本語テキストから、AccentPhrase (アクセント句)の配列をJSON形式で生成する。
voicevoxSynthesizerCreateAccentPhrasesFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String? kana, int styleId, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
AquesTalk風記法から、AccentPhrase (アクセント句)の配列をJSON形式で生成する。
voicevoxSynthesizerCreateAudioQuery(Pointer<VoicevoxSynthesizer> synthesizer, String? text, int styleId, Pointer<Pointer<Int8>> outputAudioQueryJson) int
日本語テキストから、AudioQueryをJSONとして生成する。
voicevoxSynthesizerCreateAudioQueryFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String? kana, int styleId, Pointer<Pointer<Int8>> outputAudioQueryJson) int
AquesTalk風記法から、AudioQueryをJSONとして生成する。
voicevoxSynthesizerCreateMetasJson(Pointer<VoicevoxSynthesizer> synthesizer) Pointer<Int8>
今読み込んでいる音声モデルのメタ情報を、JSONで取得する。
voicevoxSynthesizerCreateSingFrameAudioQuery(Pointer<VoicevoxSynthesizer> synthesizer, String? scoreJson, int styleId, Pointer<Pointer<Int8>> outputFrameAudioQueryJson) int
楽譜から歌唱音声合成用のクエリを作成する。
voicevoxSynthesizerCreateSingFrameF0(Pointer<VoicevoxSynthesizer> synthesizer, String? scoreJson, String? frameAudioQueryJson, int styleId, Pointer<Pointer<Int8>> outputF0Json) int
楽譜と歌唱音声合成用のクエリから、フレームごとの基本周波数を生成する。
voicevoxSynthesizerCreateSingFrameVolume(Pointer<VoicevoxSynthesizer> synthesizer, String? scoreJson, String? frameAudioQueryJson, int styleId, Pointer<Pointer<Int8>> outputVolumeJson) int
楽譜と歌唱音声合成用のクエリから、フレームごとの音量を生成する。
voicevoxSynthesizerDelete(Pointer<VoicevoxSynthesizer> synthesizer) → void
::VoicevoxSynthesizer を破棄(destruct)する。
voicevoxSynthesizerFrameSynthesis(Pointer<VoicevoxSynthesizer> synthesizer, String? frameAudioQueryJson, int styleId, Pointer<UintPtr> outputWavLength, Pointer<Pointer<Uint8>> outputWav) int
歌唱音声合成を行う。
voicevoxSynthesizerGetOnnxruntime(Pointer<VoicevoxSynthesizer> synthesizer) Pointer<VoicevoxOnnxruntime>
::VoicevoxOnnxruntime のインスタンスを得る。
voicevoxSynthesizerIsGpuMode(Pointer<VoicevoxSynthesizer> synthesizer) bool
ハードウェアアクセラレーションがGPUモードか判定する。
voicevoxSynthesizerIsLoadedVoiceModel(Pointer<VoicevoxSynthesizer> synthesizer, Pointer<Uint8> modelId) bool
指定したIDの音声モデルが読み込まれているか判定する。
voicevoxSynthesizerLoadVoiceModel(Pointer<VoicevoxSynthesizer> synthesizer, Pointer<VoicevoxVoiceModelFile> model) int
音声モデルを読み込む。
voicevoxSynthesizerNew(Pointer<VoicevoxOnnxruntime> onnxruntime, Pointer<OpenJtalkRc> openJtalk, VoicevoxInitializeOptions options, Pointer<Pointer<VoicevoxSynthesizer>> outSynthesizer) int
::VoicevoxSynthesizer を構築(construct)する。
voicevoxSynthesizerReplaceMoraData(Pointer<VoicevoxSynthesizer> synthesizer, String? accentPhrasesJson, int styleId, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
AccentPhraseの配列の音高・音素長を、特定の声で生成しなおす。
voicevoxSynthesizerReplaceMoraPitch(Pointer<VoicevoxSynthesizer> synthesizer, String? accentPhrasesJson, int styleId, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
AccentPhraseの配列の音高を、特定の声で生成しなおす。
voicevoxSynthesizerReplacePhonemeLength(Pointer<VoicevoxSynthesizer> synthesizer, String? accentPhrasesJson, int styleId, Pointer<Pointer<Int8>> outputAccentPhrasesJson) int
AccentPhraseの配列の音素長を、特定の声で生成しなおす。
voicevoxSynthesizerSynthesis(Pointer<VoicevoxSynthesizer> synthesizer, String? audioQueryJson, int styleId, VoicevoxSynthesisOptions options, Pointer<UintPtr> outputWavLength, Pointer<Pointer<Uint8>> outputWav) int
AudioQueryから音声合成を行う。
voicevoxSynthesizerTts(Pointer<VoicevoxSynthesizer> synthesizer, String? text, int styleId, VoicevoxTtsOptions options, Pointer<UintPtr> outputWavLength, Pointer<Pointer<Uint8>> outputWav) int
日本語テキストから音声合成を行う。
voicevoxSynthesizerTtsFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String? kana, int styleId, VoicevoxTtsOptions options, Pointer<UintPtr> outputWavLength, Pointer<Pointer<Uint8>> outputWav) int
AquesTalk風記法から音声合成を行う。
voicevoxSynthesizerUnloadVoiceModel(Pointer<VoicevoxSynthesizer> synthesizer, Pointer<Uint8> modelId) int
音声モデルの読み込みを解除する。
voicevoxUserDictAddWord(Pointer<VoicevoxUserDict> userDict, Pointer<VoicevoxUserDictWord> word, Pointer<Pointer<Uint8>> outputWordUuid) int
ユーザー辞書に単語を追加する。
voicevoxUserDictDelete(Pointer<VoicevoxUserDict> userDict) → void
ユーザー辞書を破棄(destruct)する。
voicevoxUserDictImport(Pointer<VoicevoxUserDict> userDict, Pointer<VoicevoxUserDict> otherDict) int
他のユーザー辞書をインポートする。
voicevoxUserDictLoad(Pointer<VoicevoxUserDict> userDict, String? dictPath) int
ユーザー辞書にファイルを読み込ませる。
voicevoxUserDictNew() Pointer<VoicevoxUserDict>
ユーザー辞書をb>構築(construct)する。
voicevoxUserDictRemoveWord(Pointer<VoicevoxUserDict> userDict, Pointer<Pointer<Uint8>> wordUuid) int
ユーザー辞書から単語を削除する。
voicevoxUserDictSave(Pointer<VoicevoxUserDict> userDict, String? path) int
ユーザー辞書をファイルに保存する。
voicevoxUserDictToJson(Pointer<VoicevoxUserDict> userDict, Pointer<Pointer<Int8>> outputJson) int
ユーザー辞書の単語をJSON形式で出力する。
voicevoxUserDictUpdateWord(Pointer<VoicevoxUserDict> userDict, Pointer<Pointer<Uint8>> wordUuid, Pointer<VoicevoxUserDictWord> word) int
ユーザー辞書の単語を更新する。
voicevoxUserDictWordMake(String? surface, String? pronunciation, int accentType) VoicevoxUserDictWord
::VoicevoxUserDictWord を最低限のパラメータで作成する。
voicevoxVoiceModelFileCreateMetasJson(Pointer<VoicevoxVoiceModelFile> model) Pointer<Int8>
::VoicevoxVoiceModelFile からメタ情報を取得する。
voicevoxVoiceModelFileDelete(Pointer<VoicevoxVoiceModelFile> model) → void
::VoicevoxVoiceModelFile を、所有しているファイルディスクリプタを閉じた上で破棄(destruct)する。ファイルの削除(delete)ではない
voicevoxVoiceModelFileId(Pointer<VoicevoxVoiceModelFile> model, Pointer<Pointer<Uint8>> outputVoiceModelId) → void
::VoicevoxVoiceModelFile からIDを取得する。
voicevoxVoiceModelFileOpen(String? path, Pointer<Pointer<VoicevoxVoiceModelFile>> outModel) int
VVMファイルを開く。
voicevoxWavFree(Pointer<Uint8> wav) → void
WAVデータを解放する。
voicevoxxAudioQueryCreateFromAccentPhrases(String accentPhrasesJson) → ({String audioQueryJson, int result})
AccentPhraseの配列からAudioQueryを作る。
voicevoxxOnnxruntimeInitOnce() → ({Pointer<VoicevoxOnnxruntime> onnxruntime, int result})
ONNX Runtimeを初期化する。
voicevoxxOnnxruntimeLoadOnce(VoicevoxLoadOnnxruntimeOptions options) → ({Pointer<VoicevoxOnnxruntime> onnxruntime, int result})
ONNX Runtimeをロードして初期化する。
voicevoxxOpenJtalkRcAnalyze(Pointer<OpenJtalkRc> openJtalk, String text) → ({String accentPhrasesJson, int result})
日本語のテキストを解析する。
voicevoxxOpenJtalkRcNew(String openJtalkDicDir) → ({Pointer<OpenJtalkRc> openJtalk, int result})
::OpenJtalkRc を構築(construct)する。
voicevoxxSynthesizerCreateAccentPhrases(Pointer<VoicevoxSynthesizer> synthesizer, String text, int styleId) → ({String accentPhrasesJson, int result})
日本語テキストから、AccentPhrase (アクセント句)の配列をJSON形式で生成する。
voicevoxxSynthesizerCreateAccentPhrasesFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String kana, int styleId) → ({String accentPhrasesJson, int result})
AquesTalk風記法から、AccentPhrase (アクセント句)の配列をJSON形式で生成する。
voicevoxxSynthesizerCreateAudioQueryFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String kana, int styleId) → ({String audioQueryJson, int result})
AquesTalk風記法から、AudioQueryをJSONとして生成する。
voicevoxxSynthesizerCreateMetasJson(Pointer<VoicevoxSynthesizer> synthesizer) String
今読み込んでいる音声モデルのメタ情報を、JSONで取得する。
voicevoxxSynthesizerCreateSingFrameAudioQuery(Pointer<VoicevoxSynthesizer> synthesizer, String scoreJson, int styleId) → ({String frameAudioQueryJson, int result})
楽譜から歌唱音声合成用のクエリを作成する。
voicevoxxSynthesizerCreateSingFrameF0(Pointer<VoicevoxSynthesizer> synthesizer, String scoreJson, String frameAudioQueryJson, int styleId) → ({String f0Json, int result})
楽譜と歌唱音声合成用のクエリから、フレームごとの基本周波数を生成する。
voicevoxxSynthesizerCreateSingFrameVolume(Pointer<VoicevoxSynthesizer> synthesizer, String? scoreJson, String? frameAudioQueryJson, int styleId) → ({int result, String volumeJson})
楽譜と歌唱音声合成用のクエリから、フレームごとの音量を生成する。
voicevoxxSynthesizerFrameSynthesis(Pointer<VoicevoxSynthesizer> synthesizer, String frameAudioQueryJson, int styleId) → ({int result, Pointer<Uint8> wav, int wavLength})
歌唱音声合成を行う。
voicevoxxSynthesizerNew(Pointer<VoicevoxOnnxruntime> onnxruntime, Pointer<OpenJtalkRc> openJtalk, VoicevoxInitializeOptions options) → ({int result, Pointer<VoicevoxSynthesizer> synthesizer})
::VoicevoxSynthesizer を構築(construct)する。
voicevoxxSynthesizerReplaceMoraData(Pointer<VoicevoxSynthesizer> synthesizer, String accentPhrasesJson, int styleId) → ({String accentPhrasesJson, int result})
AccentPhraseの配列の音高・音素長を、特定の声で生成しなおす。
voicevoxxSynthesizerReplaceMoraPitch(Pointer<VoicevoxSynthesizer> synthesizer, String accentPhrasesJson, int styleId) → ({String accentPhrasesJson, int result})
AccentPhraseの配列の音高を、特定の声で生成しなおす。
voicevoxxSynthesizerReplacePhonemeLength(Pointer<VoicevoxSynthesizer> synthesizer, String accentPhrasesJson, int styleId) → ({String accentPhrasesJson, int result})
AccentPhraseの配列の音素長を、特定の声で生成しなおす。
voicevoxxSynthesizerTts(Pointer<VoicevoxSynthesizer> synthesizer, String text, int styleId, VoicevoxTtsOptions options) → ({int result, Pointer<Uint8> wav, int wavLength})
日本語テキストから音声合成を行う。
voicevoxxSynthesizerTtsFromKana(Pointer<VoicevoxSynthesizer> synthesizer, String kana, int styleId, VoicevoxTtsOptions options) → ({int result, Pointer<Uint8> wav, int wavLength})
AquesTalk風記法から音声合成を行う。
voicevoxxUserDictToJson(Pointer<VoicevoxUserDict> userDict) → ({String json, int result})
ユーザー辞書の単語をJSON形式で出力する。
voicevoxxVoiceModelFileCreateMetasJson(Pointer<VoicevoxVoiceModelFile> model) String
::VoicevoxVoiceModelFile からメタ情報を取得する。
voicevoxxVoiceModelFileId(Pointer<VoicevoxVoiceModelFile> model) Pointer<Uint8>
::VoicevoxVoiceModelFile からIDを取得する。
voicevoxxVoiceModelFileOpen(String path) → ({Pointer<VoicevoxVoiceModelFile> model, int result})
VVMファイルを開く。