|
|
Created:
4 years, 8 months ago by aluebs-webrtc Modified:
4 years, 8 months ago CC:
webrtc-reviews_webrtc.org, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, bjornv1 Base URL:
https://chromium.googlesource.com/external/webrtc.git@master Target Ref:
refs/pending/heads/master Project:
webrtc Visibility:
Public. |
DescriptionTweak kDecayRate in the IntelligibilityEnhancer
This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable.
R=henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org
Committed: https://crrev.com/2d66cf9d8d5326029aaac1863acb8ccb9ae91db0
Cr-Commit-Position: refs/heads/master@{#12202}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Separate variables #Patch Set 3 : Rebasing #Messages
Total messages: 17 (6 generated)
aluebs@webrtc.org changed reviewers: + henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org
On 2016/03/31 23:22:56, aluebs-webrtc wrote: lgtm but please look into my comment.
https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... File webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc:37: const float kDecayRate = 0.994f; // Power estimation decay rate. I cannot really say that I yet understand the underlying algorithm but it seems a bit strange to lock the map the relative_change_limit in GainApplier to the decay rate. I'm not saying it is wrong to do so, but they seem quite independent, and are used in different places. Furthermore, this is a change from how it was before.
LGTM with the same concerns as Per. https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... File webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc:37: const float kDecayRate = 0.994f; // Power estimation decay rate. On 2016/04/01 04:43:50, peah-webrtc wrote: > I cannot really say that I yet understand the underlying algorithm but it seems > a bit strange to lock the map the relative_change_limit in GainApplier to the > decay rate. > > I'm not saying it is wrong to do so, but they seem quite independent, and are > used in different places. Furthermore, this is a change from how it was before. Acknowledged.
turaj, any comments? https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... File webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1848123002/diff/1/webrtc/modules/audio_processi... webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc:37: const float kDecayRate = 0.994f; // Power estimation decay rate. On 2016/04/01 08:36:38, hlundin-webrtc wrote: > On 2016/04/01 04:43:50, peah-webrtc wrote: > > I cannot really say that I yet understand the underlying algorithm but it > seems > > a bit strange to lock the map the relative_change_limit in GainApplier to the > > decay rate. > > > > I'm not saying it is wrong to do so, but they seem quite independent, and are > > used in different places. Furthermore, this is a change from how it was > before. > > Acknowledged. Well, the decay rate of the PSD estimations doesn't necessarily have to be linked to the maximum gain change, but it kind of makes sense, since both are linked to the speed the algorithm can adapt. And I find it elegant to only have one constant to tweak the adaptation speed. But of course, I can go back to having 2 different constants if you think it adds value.
I don't have further comment, than the one Per and Henrik brought up. I see your point of view, that how both constant affect the speed of adaptation, and that if one wants to have a fast adapting PSD, perhaps they also want fast changing gains and vice versa, otherwise it doesn't make much of sense. But I see them fundamentally/philosophically different. The other argument is that it will confuse people who look at the code for the first time that why the memory in PSD computation should be so tight to how much gain change is allowed. LGTM.
Because of popular demand, I brought back kMaxRelativeGainChange.
The CQ bit was checked by aluebs@webrtc.org
The patchset sent to the CQ was uploaded after l-g-t-m from henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org Link to the patchset: https://codereview.webrtc.org/1848123002/#ps20001 (title: "Separate variables")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1848123002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1848123002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_x64_clang_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_clang_rel/build...) win_x64_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_gn_rel/builds/8174)
Description was changed from ========== Tweak kDecayRate in the IntelligibilityEnhancer This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable. ========== to ========== Tweak kDecayRate in the IntelligibilityEnhancer This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable. R=henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/2d66cf9d8d5326029aaac1863... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 2d66cf9d8d5326029aaac1863acb8ccb9ae91db0 (presubmit successful).
Message was sent while issue was closed.
Description was changed from ========== Tweak kDecayRate in the IntelligibilityEnhancer This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable. R=henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/2d66cf9d8d5326029aaac1863... ========== to ========== Tweak kDecayRate in the IntelligibilityEnhancer This makes the addaptation of the IntelligibilityEnhancer slower, which makes it take more time to kick in or when the background noise changes drastically. But on the other hand, it reduces the risk of clipping and makes the changing in coloring less noticeable. R=henrik.lundin@webrtc.org, peah@webrtc.org, turaj@webrtc.org Committed: https://crrev.com/2d66cf9d8d5326029aaac1863acb8ccb9ae91db0 Cr-Commit-Position: refs/heads/master@{#12202} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/2d66cf9d8d5326029aaac1863acb8ccb9ae91db0 Cr-Commit-Position: refs/heads/master@{#12202} |