From 4da20dde0fe1ce35e242321600beb2d5ae49ef99 Mon Sep 17 00:00:00 2001 From: qwerty2501 <939468+qwerty2501@users.noreply.github.com> Date: Thu, 25 Aug 2022 19:41:27 +0900 Subject: [PATCH] =?UTF-8?q?default=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E7=94=9F=E6=88=90=E9=96=A2=E6=95=B0=E3=81=ABmake?= =?UTF-8?q?=E3=82=92=E3=81=A4=E3=81=91=E3=81=9F=E3=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core_c_api/src/lib.rs | 8 ++++---- example/cpp/unix/simple_tts.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/voicevox_core_c_api/src/lib.rs b/crates/voicevox_core_c_api/src/lib.rs index 36a40c547..2b1e4f51b 100644 --- a/crates/voicevox_core_c_api/src/lib.rs +++ b/crates/voicevox_core_c_api/src/lib.rs @@ -52,7 +52,7 @@ pub struct VoicevoxInitializeOptions { } #[no_mangle] -pub extern "C" fn voicevox_default_initialize_options() -> VoicevoxInitializeOptions { +pub extern "C" fn voicevox_make_default_initialize_options() -> VoicevoxInitializeOptions { VoicevoxInitializeOptions::default() } @@ -184,7 +184,7 @@ pub struct VoicevoxAudioQueryOptions { } #[no_mangle] -pub extern "C" fn voicevox_default_audio_query_options() -> VoicevoxAudioQueryOptions { +pub extern "C" fn voicevox_make_default_audio_query_options() -> VoicevoxAudioQueryOptions { voicevox_core::AudioQueryOptions::default().into() } @@ -213,7 +213,7 @@ pub struct VoicevoxSynthesisOptions { enable_interrogative_upspeak: bool, } -pub extern "C" fn voicevox_default_synthesis_options() -> VoicevoxSynthesisOptions { +pub extern "C" fn voicevox_make_default_synthesis_options() -> VoicevoxSynthesisOptions { VoicevoxSynthesisOptions::default() } @@ -258,7 +258,7 @@ pub struct VoicevoxTtsOptions { } #[no_mangle] -pub extern "C" fn voicevox_default_tts_options() -> VoicevoxTtsOptions { +pub extern "C" fn voicevox_make_default_tts_options() -> VoicevoxTtsOptions { voicevox_core::TtsOptions::default().into() } diff --git a/example/cpp/unix/simple_tts.cpp b/example/cpp/unix/simple_tts.cpp index fd08fd426..3feebd461 100644 --- a/example/cpp/unix/simple_tts.cpp +++ b/example/cpp/unix/simple_tts.cpp @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) { std::cout << "coreの初期化中..." << std::endl; - auto initialize_options = voicevox_default_initialize_options(); + auto initialize_options = voicevox_make_default_initialize_options(); initialize_options.load_all_models = true; initialize_options.open_jtalk_dict_dir = open_jtalk_dict_path.c_str(); if (voicevox_initialize(initialize_options) != VOICEVOX_RESULT_SUCCEED) {