-
Notifications
You must be signed in to change notification settings - Fork 312
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
複数選択:話者変更するとAudioQueryのテキストがAudioCellのテキストと一致しなくなるバグを修正 #1665
複数選択:話者変更するとAudioQueryのテキストがAudioCellのテキストと一致しなくなるバグを修正 #1665
Conversation
ふと気になって試してました、これUndoが一括でできなくなってますね。Draft行き。 |
なんとかしました。 |
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.
プルリクエスト見させていただきました!
バグに気づいてくださってありがとうございます、いつも感謝してます!!
処理の流れですが、エラーが起こった場合にユーザーが気づけない挙動になっているのでそこだけ修正をお願いできると・・・!
大量のリクエストが一度に走ることがありえそうなので、一つ一つ処理してもいいのかなとちょっと思いました。であればエラーハンドリングが楽だなーと。
エラーハンドリングで悩んでます、例えば複数回エラーが起きたらどんなエラーを投げるべきかとか |
とりあえず失敗したaudioKeyをエラー文に組み込んでthrow、とかで良いかなと!!(変更前もそうですし) あとはまあ…失敗したのはAudioQueryをundefinedにする、とか…?(ちゃんと考えれてないです) |
良い感じになったと思います。 |
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.
すごい読みやすいコードでした!!!
すみません! 追加で気づいたのですが、プリセット適用周りの処理が抜けているかもです 🙇
プリセット周りを足しました。 |
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.
1点だけ問題がありそうだったのでコメントしました!
テスト書き出してもいいかも・・・?
src/store/audio.ts
Outdated
if (shouldApplyPreset) { | ||
audioStore.mutations.SET_AUDIO_PRESET_KEY(state, { | ||
audioKey, | ||
presetKey: nextPresetKey, | ||
}); | ||
} |
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.
セットする時はshouldApplyPreset
のチェックいらないかもです!
MULTI化する前のCOMMAND_CHANGE_VOICE
のコードに合わせればいいはずかなと
https://github.com/VOICEVOX/voicevox/pull/1228/files#diff-b86b438c7928773aac473007988ffb602afc8278b8e2226ce784442befb46b0dR2096
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!!!
結構この辺りバグになりやすい気がするので、もしよかったらテストをお願いできると心強いかもしれません・・・ 🙇
あるいはもう複数選択を一気に完成させるのもありかもです!!
(あと何が残ってるかちょっと覚えてないですが)
内容
タイトル通りです。
関連 Issue
スクリーンショット・動画など
(なし)
その他
(なし)