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

Issue 2781573002: Conversational Speech tool, MultiEndCall::CheckTiming() and tests (Closed)

Created:
3 years, 8 months ago by AleBzk
Modified:
3 years, 8 months ago
Reviewers:
hlundin-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

MultiEndCall::CheckTiming() verifies that a set of audio tracks and timing information is valid to simulate conversational speech. Unordered turns are rejected. Self cross-talk and cross-talk with 3 or more speakers are not permitted since it would require mixing at the simulation step. This CL includes extensive tests to match accept or reject decisions on several different timing setups. The setups are simulated using mocks (by far more light-weight than using actual timing and audio track files). The client code, the unit tests in this case, passes information about the fake audio tracks to MockWavReaderFactory. MockWavReader instances are then created using the parameters defined in the client code. To improve the readability of the tests, generator_unittest.cc includes a docstring explaining how each MultiEndCallSetup* test is documented. Run tests as follows: $ out/Default/modules_unittests --gtest_filter=ConversationalSpeechTest.* BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2781573002 Cr-Commit-Position: refs/heads/master@{#17592} Committed: https://chromium.googlesource.com/external/webrtc/+/8d23c050f2d25e625f16b98e5cb6ada42529b23e

Patch Set 1 #

Patch Set 2 : all test pass #

Patch Set 3 : minor fixes #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Total comments: 1

Patch Set 6 : merge #

Patch Set 7 : refactoring in view of coming CLs #

Patch Set 8 : final refactoring #

Total comments: 62

Patch Set 9 : 1st round comments addressed #

Patch Set 10 : comments from Henrik addressed #

Total comments: 1

Patch Set 11 : final comments addressed #

Patch Set 12 : missing include to get std::back_inserter working on win targets #

Messages

Total messages: 23 (9 generated)
AleBzk
Hi Henrik, This CL follows https://codereview.webrtc.org/2761853002. Alessio
3 years, 8 months ago (2017-03-28 12:06:59 UTC) #3
AleBzk
https://codereview.webrtc.org/2781573002/diff/70001/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/2781573002/diff/70001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode89 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:89: {"t1000", kMockWavReaderFactoryParams1000ms}, t300, t500 and t1000 will be used ...
3 years, 8 months ago (2017-03-28 13:11:10 UTC) #4
hlundin-webrtc
This is very nice. I have a few comments inline. https://codereview.webrtc.org/2781573002/diff/130001/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/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode75 ...
3 years, 8 months ago (2017-04-06 08:10:04 UTC) #5
kwiberg-webrtc
Drive-by explanation. :-) https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h (right): https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h#newcode38 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h:38: : speaker_name(std::move(new_speaker_name)), On 2017/04/06 08:10:04, hlundin-webrtc ...
3 years, 8 months ago (2017-04-06 08:35:32 UTC) #6
aleloi
https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn File webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn (right): https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn#newcode70 webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn:70: "//webrtc/test:test_support", tldr: replace '//webrtc/base' and test with '../../<maybe a ...
3 years, 8 months ago (2017-04-06 08:37:04 UTC) #7
AleBzk
Thanks a lot for your comments. There are still a couple of unsolved points, I ...
3 years, 8 months ago (2017-04-06 16:42:43 UTC) #8
hlundin-webrtc
https://codereview.webrtc.org/2781573002/diff/130001/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/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode76 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:76: const std::map<std::string, const MockWavReaderFactory::Params> On 2017/04/06 16:42:41, AleBzk wrote: ...
3 years, 8 months ago (2017-04-07 10:24:09 UTC) #9
AleBzk
Everything addressed. Thanks for your additional comments. https://codereview.webrtc.org/2781573002/diff/130001/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/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode98 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:98: rtc::LogMessage::LogToDebug(rtc::LS_VERBOSE); On ...
3 years, 8 months ago (2017-04-07 11:37:06 UTC) #10
hlundin-webrtc
LGTM with suggestions (as discussed offline, too). https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc File webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc (right): https://codereview.webrtc.org/2781573002/diff/130001/webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc#newcode35 webrtc/modules/audio_processing/test/conversational_speech/mock_wavreader_factory.cc:35: audiotrack_names_params_.insert(params.begin(), params.end()); ...
3 years, 8 months ago (2017-04-07 11:54:19 UTC) #11
AleBzk
Done.
3 years, 8 months ago (2017-04-07 12:14:40 UTC) #12
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/2781573002/190001
3 years, 8 months ago (2017-04-07 12:27:45 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_clang_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_clang_rel/builds/12609)
3 years, 8 months ago (2017-04-07 12:38:40 UTC) #17
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/2781573002/210001
3 years, 8 months ago (2017-04-07 18:39:36 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 19:05:13 UTC) #23
Message was sent while issue was closed.
Committed patchset #12 (id:210001) as
https://chromium.googlesource.com/external/webrtc/+/8d23c050f2d25e625f16b98e5...

Powered by Google App Engine
This is Rietveld 408576698