fix(audio): 修复 Ulunas 降噪 OLA 增益补偿缺失导致的音量衰减问题#170
Merged
ChinsaaWei merged 1 commit intoLanRhyme:masterfrom Mar 29, 2026
Merged
Conversation
在使用 sqrt-Hanning 窗进行双重加窗(分析窗+合成窗)时, 50% 重叠的 OLA 增益约为 0.5,导致音频能量损失约 3dB。 修复内容: - 添加 calculateOlaGainCompensation() 计算窗函数平方和的补偿因子 - 在提取输出帧时应用增益补偿,恢复原始音量 Fixes audio volume being too low when Ulunas noise suppression is enabled.
Contributor
Author
|
不太确定是不是真的有这个问题,测试了一下,好像确实变正常了 |
Contributor
其实是我在训练模型的时候没有刻意增加音量的线性损失函数,因为考虑到训练模型有去混响(保留直达声),所以声音应该就是会比原始声音小,经验上的话加3~5个db的补偿。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在使用 sqrt-Hanning 窗进行双重加窗(分析窗+合成窗)时,
50% 重叠的 OLA 增益约为 0.5,导致音频能量损失约 3dB。
修复内容:
Fixes audio volume being too low when Ulunas noise suppression is enabled.