Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example下の"speaker_id"を、"style_id"に直す #562 #584

Merged
merged 4 commits into from
Aug 26, 2023

Conversation

weweweok
Copy link
Contributor

内容

#562

関連 Issue

ref #562

その他

README.mdの記載も変える必要がありますか?

@sevenc-nanashi sevenc-nanashi linked an issue Aug 25, 2023 that may be closed by this pull request
3 tasks
@sevenc-nanashi
Copy link
Member

sevenc-nanashi commented Aug 25, 2023

READMEの記述というと?

現在のmainブランチは工事中なので正しく動かないことがあります。バージョン0.14.4をご利用ください。

これなら消さない方がいいと思いますね、 #582 などの破壊的変更の議論もありますし

@weweweok
Copy link
Contributor Author

example/python/README.mdの

ここと

usage: run.py [-h] [--mode MODE] [--dict-dir DICT_DIR] [--text TEXT] [--out OUT] [--speaker-id SPEAKER_ID] vvm

ここです

--speaker-id SPEAKER_ID

@sevenc-nanashi
Copy link
Member

あ、それは更新するべきですね(run.py -hで出力できます)

uintptr_t output_binary_size = 0;
uint8_t* output_wav = nullptr;
VoicevoxTtsOptions ttsOptions = voicevox_make_default_tts_options();

result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(), speaker_id, ttsOptions, &output_binary_size, &output_wav);
result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(),p style_id, ttsOptions, &output_binary_size, &output_wav);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

p style_id

ここ修正ミスかも?

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

1箇所だけ多分訂正間違いがあると思うのでコメントしてみました。

uintptr_t output_binary_size = 0;
uint8_t* output_wav = nullptr;
VoicevoxTtsOptions ttsOptions = voicevox_make_default_tts_options();

result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(), speaker_id, ttsOptions, &output_binary_size, &output_wav);
result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(),style_id, ttsOptions, &output_binary_size, &output_wav);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(),style_id, ttsOptions, &output_binary_size, &output_wav);
result = voicevox_synthesizer_tts(synthesizer,wide_to_utf8_cppapi(speak_words).c_str(), style_id, ttsOptions, &output_binary_size, &output_wav);

空白を入れるべきだと思います

Copy link
Member

@qryxip qryxip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
マージします(CI終わったら)

@qryxip qryxip merged commit f0e9870 into VOICEVOX:main Aug 26, 2023
@weweweok weweweok deleted the devlatest branch August 26, 2023 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

example下の"speaker_id"を、"style_id"に直す
4 participants