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

Issue 1287663002: Adding audio RepetitionDetector in AudioProcessingModule. (Closed)

Created:
5 years, 4 months ago by minyue-webrtc
Modified:
5 years ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, hlundin-webrtc, kwiberg-webrtc, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Adding audio RepetitionDetector in AudioProcessingModule. BUG=

Patch Set 1 : #

Total comments: 46

Patch Set 2 : some redesign #

Total comments: 52

Patch Set 3 : restrict to float #

Total comments: 13

Patch Set 4 : new updates #

Total comments: 27

Patch Set 5 : more comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+673 lines, -0 lines) Patch
M webrtc/modules/audio_processing/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/repetition_detector.h View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/repetition_detector.cc View 1 2 3 4 1 chunk +174 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/repetition_detector_unittest.cc View 1 2 3 4 1 chunk +379 lines, -0 lines 0 comments Download
M webrtc/modules/modules.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (6 generated)
minyue-webrtc
Hi Henrik and Per, Here I implemented the basic algorithm for the repetition detection. Missing ...
5 years, 4 months ago (2015-08-11 18:34:14 UTC) #4
Andrew MacDonald
Drive-by. Do you think this is of interest to any users outside of Chromium? I'm ...
5 years, 4 months ago (2015-08-11 18:53:05 UTC) #6
minyue-webrtc
On 2015/08/11 18:53:05, andrew_ooo_to_aug14 wrote: > Drive-by. > > Do you think this is of ...
5 years, 4 months ago (2015-08-11 19:04:30 UTC) #7
Andrew MacDonald
On 2015/08/11 19:04:30, minyue-webrtc wrote: > Do you mean "in" Chromium? Yep. > > Efforts ...
5 years, 4 months ago (2015-08-11 20:44:57 UTC) #8
Andrew MacDonald
https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode574 webrtc/modules/audio_processing/audio_processing_impl.cc:574: repetition_detector_->Detect(frame->data_, frame->samples_per_channel_, All processing/analysis should be done in ProcessStreamLocked. ...
5 years, 4 months ago (2015-08-11 20:50:43 UTC) #9
minyue-webrtc
On 2015/08/11 20:44:57, andrew_ooo_to_aug14 wrote: > On 2015/08/11 19:04:30, minyue-webrtc wrote: > > Do you ...
5 years, 4 months ago (2015-08-11 20:50:43 UTC) #10
peah-webrtc
https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc#newcode20 webrtc/modules/audio_processing/repetition_detector.cc:20: static const RepetitionDetector::Pattern kRepetitionPatterns[] = { Both look_back_range_ and ...
5 years, 4 months ago (2015-08-12 11:02:54 UTC) #11
minyue-webrtc
Thank you for the comments! Updates may follow. But we can continue discuss over the ...
5 years, 4 months ago (2015-08-12 11:32:14 UTC) #12
minyue-webrtc
Hi, Per Andrew's consideration of moving this out of APM and place in higher level, ...
5 years, 4 months ago (2015-08-12 13:09:43 UTC) #13
hlundin-webrtc
I think this design is too complicated. Either compare only one channel, or explore my ...
5 years, 4 months ago (2015-08-12 14:12:04 UTC) #14
minyue-webrtc
see some quick reply https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc#newcode95 webrtc/modules/audio_processing/repetition_detector.cc:95: // We do not reset ...
5 years, 4 months ago (2015-08-12 14:20:20 UTC) #15
hlundin-webrtc
https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/repetition_detector.cc#newcode110 webrtc/modules/audio_processing/repetition_detector.cc:110: for (int idx = 0; idx < samples_per_channel; idx++) ...
5 years, 4 months ago (2015-08-12 14:38:00 UTC) #16
Andrew MacDonald
On 2015/08/12 13:09:43, minyue-webrtc wrote: > Hi, > > Per Andrew's consideration of moving this ...
5 years, 4 months ago (2015-08-12 20:19:58 UTC) #17
minyue-webrtc
On 2015/08/12 20:19:58, andrew_ooo_to_aug14 wrote: > On 2015/08/12 13:09:43, minyue-webrtc wrote: > > Hi, > ...
5 years, 4 months ago (2015-08-12 20:24:44 UTC) #18
Andrew MacDonald
https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode574 webrtc/modules/audio_processing/audio_processing_impl.cc:574: repetition_detector_->Detect(frame->data_, frame->samples_per_channel_, On 2015/08/12 11:32:13, minyue-webrtc wrote: > On ...
5 years, 4 months ago (2015-08-12 20:25:32 UTC) #19
Andrew MacDonald
On 2015/08/12 20:24:44, minyue-webrtc wrote: > On 2015/08/12 20:19:58, andrew_ooo_to_aug14 wrote: > > Chromium does ...
5 years, 4 months ago (2015-08-12 20:38:52 UTC) #20
peah-webrtc
https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode574 webrtc/modules/audio_processing/audio_processing_impl.cc:574: repetition_detector_->Detect(frame->data_, frame->samples_per_channel_, On 2015/08/12 20:25:32, andrew_ooo_to_aug14 wrote: > On ...
5 years, 4 months ago (2015-08-12 21:05:16 UTC) #21
minyue-webrtc
On 2015/08/12 21:05:16, peah-webrtc wrote: > https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc > File webrtc/modules/audio_processing/audio_processing_impl.cc (right): > > https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode574 > ...
5 years, 4 months ago (2015-08-12 22:02:44 UTC) #22
minyue-webrtc
On 2015/08/12 22:02:44, minyue-webrtc wrote: > On 2015/08/12 21:05:16, peah-webrtc wrote: > > > https://codereview.webrtc.org/1287663002/diff/40001/webrtc/modules/audio_processing/audio_processing_impl.cc ...
5 years, 4 months ago (2015-08-13 06:55:56 UTC) #23
minyue-webrtc
Hi, I updated the method now. To keep track, I upload the new version. But ...
5 years, 3 months ago (2015-08-28 14:27:00 UTC) #24
Andrew MacDonald
I didn't look at the actual algorithm, and from your comments I'm assuming you'll revert ...
5 years, 3 months ago (2015-08-28 17:43:43 UTC) #25
minyue-webrtc
On 2015/08/28 17:43:43, Andrew MacDonald wrote: > I didn't look at the actual algorithm, and ...
5 years, 3 months ago (2015-08-28 18:43:41 UTC) #26
Andrew MacDonald
On 2015/08/28 18:43:41, minyue-webrtc wrote: > Yes, I think it should be very nice tool, ...
5 years, 3 months ago (2015-08-28 18:58:33 UTC) #27
hlundin-webrtc
See comments. I didn't review the test code yet, except that I gave one comment ...
5 years, 3 months ago (2015-08-31 13:46:46 UTC) #28
Andrew MacDonald
https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc#newcode127 webrtc/modules/audio_processing/repetition_detector.cc:127: std::unique_ptr<char[]> zero(new char[bytes_per_sample]()); You shouldn't need this. https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc#newcode128 webrtc/modules/audio_processing/repetition_detector.cc:128: ...
5 years, 3 months ago (2015-08-31 16:05:31 UTC) #29
minyue-webrtc
I tried to update the code, but there are comments that I want to discuss. ...
5 years, 3 months ago (2015-09-01 10:21:48 UTC) #30
ajm
https://codereview.chromium.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.chromium.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc#newcode128 webrtc/modules/audio_processing/repetition_detector.cc:128: const char* sample = reinterpret_cast<const char*>(data); On 2015/09/01 10:21:48, ...
5 years, 3 months ago (2015-09-02 05:28:28 UTC) #32
minyue-webrtc
Thanks for the discussion and a new patch created. https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc#newcode21 webrtc/modules/audio_processing/repetition_detector.cc:21: ...
5 years, 3 months ago (2015-09-03 13:23:58 UTC) #33
Andrew MacDonald
https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.h File webrtc/modules/audio_processing/repetition_detector.h (right): https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.h#newcode75 webrtc/modules/audio_processing/repetition_detector.h:75: std::unique_ptr<char[]> audio_buffer_; // Ring buffers to store input audio. ...
5 years, 3 months ago (2015-09-07 06:52:18 UTC) #34
minyue-webrtc
https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc#newcode76 webrtc/modules/audio_processing/repetition_detector.cc:76: void RepetitionDetector::Reset(size_t num_channels, int sample_rate_hz) { On 2015/09/07 06:52:18, ...
5 years, 3 months ago (2015-09-07 07:33:24 UTC) #36
Andrew MacDonald
https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc#newcode76 webrtc/modules/audio_processing/repetition_detector.cc:76: void RepetitionDetector::Reset(size_t num_channels, int sample_rate_hz) { On 2015/09/07 07:33:24, ...
5 years, 3 months ago (2015-09-07 22:52:19 UTC) #37
minyue-webrtc
some updates https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): https://codereview.webrtc.org/1287663002/diff/80001/webrtc/modules/audio_processing/repetition_detector.cc#newcode76 webrtc/modules/audio_processing/repetition_detector.cc:76: void RepetitionDetector::Reset(size_t num_channels, int sample_rate_hz) { On ...
5 years, 3 months ago (2015-09-11 14:01:41 UTC) #38
hlundin-webrtc
Nice! A few minor comments, then I think it is good. https://codereview.webrtc.org/1287663002/diff/60001/webrtc/modules/audio_processing/repetition_detector.cc File webrtc/modules/audio_processing/repetition_detector.cc (right): ...
5 years, 3 months ago (2015-09-15 09:26:39 UTC) #39
minyue-webrtc
Thanks for the comments. an update is made now. Then this CL is gone be ...
5 years, 3 months ago (2015-09-17 13:45:23 UTC) #40
hlundin-webrtc
lgtm https://codereview.webrtc.org/1287663002/diff/100001/webrtc/modules/audio_processing/repetition_detector.h File webrtc/modules/audio_processing/repetition_detector.h (right): https://codereview.webrtc.org/1287663002/diff/100001/webrtc/modules/audio_processing/repetition_detector.h#newcode41 webrtc/modules/audio_processing/repetition_detector.h:41: friend class RepetitionDetectorForTest; // For testing. On 2015/09/17 ...
5 years, 3 months ago (2015-09-17 14:36:34 UTC) #41
minyue-webrtc
5 years, 3 months ago (2015-09-25 09:48:44 UTC) #42
minyue-webrtc
On 2015/09/25 09:48:44, minyue-webrtc wrote: Mistakenly sent an empty message, sorry, just wanted to add ...
5 years, 3 months ago (2015-09-25 09:51:45 UTC) #43
Andrew MacDonald
On 2015/09/25 09:51:45, minyue-webrtc wrote: > On 2015/09/25 09:48:44, minyue-webrtc wrote: > > Mistakenly sent ...
5 years ago (2015-11-25 19:28:07 UTC) #44
minyue-webrtc
5 years ago (2015-11-25 19:33:26 UTC) #45
Message was sent while issue was closed.
On 2015/11/25 19:28:07, Andrew MacDonald wrote:
> On 2015/09/25 09:51:45, minyue-webrtc wrote:
> > On 2015/09/25 09:48:44, minyue-webrtc wrote:
> > 
> > Mistakenly sent an empty message, sorry, just wanted to add that
> > 
> > the CL has been moved to https://codereview.chromium.org/1357013006
> 
> Minyue, I closed this one.

thank you! It should have been closed.

Powered by Google App Engine
This is Rietveld 408576698