Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 1693823004: Use VAD to get a better speech power estimation in the IntelligibilityEnhancer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@pow
Patch Set: Use f for float Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index e1551716116c1c6140f0522966a37724937d3a69..bb746ee63567c91b402925745692525c22c717a2 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -1184,8 +1184,7 @@ bool AudioProcessingImpl::analysis_needed(bool is_data_processed) const {
}
bool AudioProcessingImpl::is_rev_processed() const {
- return constants_.intelligibility_enabled &&
- public_submodules_->intelligibility_enhancer->active();
+ return constants_.intelligibility_enabled;
}
bool AudioProcessingImpl::render_check_rev_conversion_needed() const {
@@ -1236,12 +1235,9 @@ void AudioProcessingImpl::InitializeBeamformer() {
void AudioProcessingImpl::InitializeIntelligibility() {
if (constants_.intelligibility_enabled) {
- IntelligibilityEnhancer::Config config;
- config.sample_rate_hz = capture_nonlocked_.split_rate;
- config.num_capture_channels = capture_.capture_audio->num_channels();
- config.num_render_channels = render_.render_audio->num_channels();
public_submodules_->intelligibility_enhancer.reset(
- new IntelligibilityEnhancer(config));
+ new IntelligibilityEnhancer(capture_nonlocked_.split_rate,
+ render_.render_audio->num_channels()));
}
}
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698