-
Notifications
You must be signed in to change notification settings - Fork 116
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
Streaming decoder for compatible engine #875
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 6 changed files in this pull request and generated no suggestions.
Files not reviewed (1)
- crates/test_util/compatible_engine.h: Language not supported
Comments skipped due to low confidence (2)
crates/voicevox_core_c_api/tests/e2e/testcases/compatible_engine.rs:87
- [nitpick] The variable name 'wave2' is ambiguous. It should be renamed to 'intermediate_wave'.
let wave2 = {
crates/voicevox_core_c_api/tests/e2e/testcases/compatible_engine.rs:116
- [nitpick] The variable name 'wave3' is ambiguous. It should be renamed to 'chunked_wave'.
let wave3 = {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ほぼLGTMです!!!
音声ファイルの確認もありがとうございます!!!
すみません、ちょっと将来の互換性も考えてAPI のシグネチャをいくつか提案させていただきました! 🙇
たぶん現状margin_width
を一切使わないことがありそうですが、コンパイルエラーとか出そうでしょうか・・・・・・?
crates/voicevox_core_c_api/tests/e2e/testcases/compatible_engine.rs
Outdated
Show resolved
Hide resolved
let margin_width = margin_width as usize; | ||
let feature_dim = feature_dim as usize; | ||
const MARGIN_WIDTH: usize = 14; | ||
const FEATURE_SIZE: usize = 80; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こことその下に書かれてるアサート処理はこの関数に独自に追加された処理ですが、個人的にはそのままでもだけしてもどちらでも良さそうに思っています。
@qryxip さんにお任せできれば!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
私がsuggestしたやつですね。他の関数も後でこれで統一しようかなと。
ちなみにassert!
じゃなくif … { panic!(…); }
としたのは、私の理解では出力サイズはONNXモデル次第だからですね。Rust API側での保証はしてなかったはず?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!
ありがとうございました!!!
LGTM、なのですがCIがちょうど色々ぶっ壊れてますね。 |
上記の三点は直ったのですが、別の理由でうっかりmainブランチのCIを壊してしまったので #877 を先にマージしたく… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
内容
ストリーミング処理をC APIとして実装
testcaseとして一括変換・ストリーム変換の二つの生成結果を追加し、元の生成音声と比較して十分近いことを確かめた
関連 Issue
close #866