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

音量域調整機能 #1901

Merged
merged 11 commits into from
Mar 7, 2024
Merged

Conversation

Hiroshiba
Copy link
Member

内容

ガイドで生成された歌い方の音量を、ハミング合成する前にデシベル単位で大きくしたり小さくしたりできます。
一部のキャラクターで音量が小さいことが問題だったので、大きくできるようにしたという文脈です。

の解決プルリクエストです。

パラメーターの名称はこちらに合わせました。

関連 Issue

resolve #1870

その他

@Hiroshiba Hiroshiba requested a review from a team as a code owner March 4, 2024 16:36
@Hiroshiba Hiroshiba requested review from qryxip and removed request for a team March 4, 2024 16:36
Comment on lines 290 to 296
export function isValidGuideVolumeScale(guideVolumeScale: number) {
return (
Number.isInteger(guideVolumeScale) &&
guideVolumeScale <= 20 &&
guideVolumeScale >= -20
);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

結構大きめ。いろんなキャラ試した感じ15あれは十分そうだけど、まあ大きめにしてみています。

frameAudioQuery: FrameAudioQuery
) => {
frameAudioQuery.volume = frameAudioQuery.volume.map((value) => {
return value * Math.pow(10, guideVolumeScale / 20);
Copy link
Member Author

@Hiroshiba Hiroshiba Mar 4, 2024

Choose a reason for hiding this comment

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

frameAudioQuery.volumeの単位は振幅です。
guideVolumeScaleの単位はdBということにしているので*= 10^(n/20)で良いはず。

@y-chan y-chan requested review from y-chan and removed request for qryxip March 5, 2024 14:30
@Hiroshiba
Copy link
Member Author

こちらの機能がないとリリースできないキャラがいるので、ちょっと申し訳ないのですがレビューなしでもマージさせていただこうと思います!
おそらく0.17.1に入る機能になると思うのですが、一旦mainブランチにマージします。

@Hiroshiba Hiroshiba force-pushed the ボリューム補正機能 branch 2 times, most recently from 1057c1e to cad7ef6 Compare March 7, 2024 16:13
@Hiroshiba Hiroshiba force-pushed the ボリューム補正機能 branch from cad7ef6 to 23a1803 Compare March 7, 2024 16:14
Comment on lines -422 to +458
width: 50px;
width: 55px;
Copy link
Member Author

Choose a reason for hiding this comment

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

5文字になった方に合わせたのでちょっと横を長く

@Hiroshiba Hiroshiba changed the title ボリューム補正機能 音量域調整機能 Mar 7, 2024
@Hiroshiba
Copy link
Member Author

ちょっともしかしたら実装ミスあるかもなのですが、緊急よりということでマージさせていただきます 🙇

@Hiroshiba Hiroshiba merged commit 06bed9d into VOICEVOX:main Mar 7, 2024
9 checks passed
@Hiroshiba Hiroshiba deleted the ボリューム補正機能 branch March 7, 2024 17:02
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.

ソング:frameAudioQueryの音量を調整できるようにしたい
1 participant