-
Notifications
You must be signed in to change notification settings - Fork 209
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
/connect_wavesを追加 #109
/connect_wavesを追加 #109
Conversation
waveを使っていましたが、既に使用しているモジュールであるpysoundfileを使用するように変更しました。 |
run.py
Outdated
if len(waves) == 0: | ||
raise HTTPException(status_code=422, detail="wavファイルが含まれていません") | ||
|
||
waves_nparray = [] |
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.
ここに書くには処理が大きく、テストが書きにくそうなので、関数として切り出し頂けると!
エラーハンドリングが少しややこしいですが、関数内でHTTPExceptionをraiseしてしまっても良いかなと思いました。
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.
Hiroshiba@357f316 で関数として切り出ししました
Co-authored-by: Hiroshiba <[email protected]>
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!!
ref https://github.com/Hiroshiba/voicevox/issues/107
概要
複数のwavファイルをbase64エンコードしたもののリストを投げるとそれを一つにしたwavファイルを返す
/connect_waves
を追加します。まだ動作未テストのためDraftです。