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

Issue 2774423005: Conversational Speech tool, WavReaderAdaptor and unit test (Closed)

Created:
3 years, 8 months ago by AleBzk
Modified:
3 years, 8 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org, AleBzk, peah-webrtc, Andrew MacDonald, aleloi, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

WavReaderAdaptor is a simple adaptor of the existing class WavReader from webrtc/common_audio/wav_file.h. The adaptor was mainly needed to use dependency injection and easily test the MultiEndCall class (see https://codereview.webrtc.org/2761853002/). The unit test ConversationalSpeechTest.MultiEndCallWavReaderAdaptorSine uses CreateSineWavFile() and writes temporary wav files that are used for test (deleted only if the test passes). BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2774423005 Cr-Commit-Position: refs/heads/master@{#17608} Committed: https://chromium.googlesource.com/external/webrtc/+/36e6a8f1bd1fd91ed5d9f6c29e6e0ae77881a710

Patch Set 1 #

Total comments: 12

Patch Set 2 : comments from Karl addressed #

Total comments: 6

Patch Set 3 : final comments addressed #

Patch Set 4 : merge #

Patch Set 5 : BUILD deps fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -120 lines) Patch
M webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc View 1 2 3 4 chunks +54 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.h View 1 2 3 2 chunks +6 lines, -5 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.h View 1 2 1 chunk +0 lines, -42 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc View 1 2 1 chunk +0 lines, -58 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/wavreader_factory.cc View 1 2 1 chunk +42 lines, -1 line 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/wavreader_interface.h View 1 2 2 chunks +6 lines, -5 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 14 (6 generated)
AleBzk
Hi Karl, I finalized the implementation of an adaptor of WavReader. There is also a ...
3 years, 8 months ago (2017-03-28 16:07:06 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/2774423005/diff/1/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc File webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc (right): https://codereview.webrtc.org/2774423005/diff/1/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode36 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:36: #define _USE_MATH_DEFINES A comment on what effect this has, ...
3 years, 8 months ago (2017-03-28 17:52:45 UTC) #4
AleBzk
Thanks a lot. Everything addressed. https://codereview.webrtc.org/2774423005/diff/1/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc File webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc (right): https://codereview.webrtc.org/2774423005/diff/1/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode36 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:36: #define _USE_MATH_DEFINES On 2017/03/28 ...
3 years, 8 months ago (2017-03-29 08:56:45 UTC) #5
kwiberg-webrtc
lgtm, but see nits https://codereview.webrtc.org/2774423005/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc File webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc (right): https://codereview.webrtc.org/2774423005/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc#newcode26 webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc:26: class WavReaderAdaptor : public WavReaderInterface ...
3 years, 8 months ago (2017-03-29 09:08:28 UTC) #6
AleBzk
https://codereview.webrtc.org/2774423005/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc File webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc (right): https://codereview.webrtc.org/2774423005/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc#newcode26 webrtc/modules/audio_processing/test/conversational_speech/wavreader_adaptor.cc:26: class WavReaderAdaptor : public WavReaderInterface { On 2017/03/29 09:08:28, ...
3 years, 8 months ago (2017-03-29 09:34:43 UTC) #7
kwiberg-webrtc
lgtm!
3 years, 8 months ago (2017-03-29 10:44:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2774423005/80001
3 years, 8 months ago (2017-04-10 07:31:12 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 07:53:58 UTC) #14
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/webrtc/+/36e6a8f1bd1fd91ed5d9f6c29...

Powered by Google App Engine
This is Rietveld 408576698