voicevoxVoiceModelFileCreateMetasJson function

Pointer<Int8> voicevoxVoiceModelFileCreateMetasJson(
  1. Pointer<VoicevoxVoiceModelFile> model
)

::VoicevoxVoiceModelFile からメタ情報を取得する。

JSONの解放は ::voicevox_json_free で行う。

@param in model 音声モデル

@returns メタ情報のJSON文字列

\orig-impl{voicevox_voice_model_file_create_metas_json}

__declspec(dllimport) char *voicevox_voice_model_file_create_metas_json(const struct VoicevoxVoiceModelFile *model)

Implementation

Pointer<Int8> voicevoxVoiceModelFileCreateMetasJson(
  Pointer<VoicevoxVoiceModelFile> model,
) {
  final voicevoxVoiceModelFileCreateMetasJsonLookupFunction = _libCore
      .lookupFunction<
        Pointer<Int8> Function(Pointer<VoicevoxVoiceModelFile>),
        Pointer<Int8> Function(Pointer<VoicevoxVoiceModelFile>)
      >('voicevox_voice_model_file_create_metas_json');

  return voicevoxVoiceModelFileCreateMetasJsonLookupFunction(model);
}