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

Issue 2790933002: Conversational speech tool, simualtor + unit tests (Closed)

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

The simulator puts into action the schedule of speech turns encoded in a MultiEndCall instance. The output is a set of audio track pairs. There is one set for each speaker and each set contains one near-end and one far-end audio track. The tracks are directly written into wav files instead of creating them in memory. To speed up the creation of the output wav files, *all* the source audio tracks (i.e., the atomic speech turns) are pre-loaded. The ConversationalSpeechTest.MultiEndCallSimulator unit test defines a conversational speech sequence and creates two wav files (with pure tones at 440 and 880 Hz) that are used as atomic speech turn tracks. This CL also patches MultiEndCall in order to allow input audio tracks with same sample rate and single channel only. BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2790933002 Cr-Commit-Position: refs/heads/master@{#18480} Committed: https://chromium.googlesource.com/external/webrtc/+/6b648c4697cede14605fd2b89425866eec5f7c79

Patch Set 1 #

Patch Set 2 : Using AppendFolder() to build paths to folders #

Total comments: 34

Patch Set 3 : merge AND comments from Minyue addressed #

Patch Set 4 : map iterators simplified #

Total comments: 40

Patch Set 5 : comments from Minyue addressed #

Patch Set 6 : SpeakerOutputFilePaths ctor fixed #

Patch Set 7 : var name fixed #

Patch Set 8 : fix after merge #

Patch Set 9 : win trybot failure isolated #

Patch Set 10 : debugging DeleteFolderAndContents #

Patch Set 11 : file del win error #

Patch Set 12 : UT workaround due to webrtc:7769 bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -44 lines) Patch
M webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +164 lines, -11 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/multiend_call.h View 1 2 3 4 2 chunks +12 lines, -7 lines 0 comments Download
M webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc View 1 2 3 4 3 chunks +21 lines, -26 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/simulator.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A webrtc/modules/audio_processing/test/conversational_speech/simulator.cc View 1 2 3 4 5 6 1 chunk +221 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 30 (12 generated)
AleBzk
PTAL
3 years, 8 months ago (2017-04-03 13:22:54 UTC) #3
minyue-webrtc
I may missed some details. But take a look at my comments so far. https://codereview.webrtc.org/2790933002/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc ...
3 years, 8 months ago (2017-04-07 13:24:31 UTC) #4
AleBzk
Thanks Minyue. My apologies for the additional changes due to a merge that I have ...
3 years, 8 months ago (2017-04-10 08:24:49 UTC) #5
AleBzk
Hi Minyue, I added two missing corrections. The CL is now ready for the second ...
3 years, 7 months ago (2017-05-15 10:13:23 UTC) #6
minyue-webrtc
https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc#newcode74 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc:74: if (it != audiotrack_readers_.end()) If this is supposed to ...
3 years, 7 months ago (2017-05-16 15:05:18 UTC) #7
AleBzk
Hi Minyue, Thanks for your comments! PTAL https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc#newcode74 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc:74: if (it ...
3 years, 7 months ago (2017-05-17 12:49:38 UTC) #8
kwiberg-webrtc
https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.h File webrtc/modules/audio_processing/test/conversational_speech/simulator.h (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.h#newcode29 webrtc/modules/audio_processing/test/conversational_speech/simulator.h:29: : near_end(std::move(new_near_end)), On 2017/05/17 12:49:38, AleBzk wrote: > On ...
3 years, 7 months ago (2017-05-18 13:28:50 UTC) #9
minyue-webrtc
https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc File webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc#newcode97 webrtc/modules/audio_processing/test/conversational_speech/multiend_call.cc:97: audiotrack_readers_.emplace( On 2017/05/17 12:49:37, AleBzk wrote: > On 2017/05/16 ...
3 years, 7 months ago (2017-05-18 13:35:13 UTC) #10
AleBzk
As discussed offline, let's just get a const&.
3 years, 7 months ago (2017-05-19 12:37:38 UTC) #11
minyue-webrtc
lgtm only a nit https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.cc File webrtc/modules/audio_processing/test/conversational_speech/simulator.cc (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.cc#newcode78 webrtc/modules/audio_processing/test/conversational_speech/simulator.cc:78: WavWriter near_end_; On 2017/05/17 12:49:38, ...
3 years, 7 months ago (2017-05-19 12:46:51 UTC) #12
AleBzk
https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.cc File webrtc/modules/audio_processing/test/conversational_speech/simulator.cc (right): https://codereview.webrtc.org/2790933002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/simulator.cc#newcode78 webrtc/modules/audio_processing/test/conversational_speech/simulator.cc:78: WavWriter near_end_; On 2017/05/19 12:46:51, minyue-webrtc wrote: > On ...
3 years, 7 months ago (2017-05-19 15:45:05 UTC) #13
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/2790933002/140001
3 years, 6 months ago (2017-06-01 10:53:19 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_dbg/builds/9482)
3 years, 6 months ago (2017-06-01 11:05:32 UTC) #18
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/2790933002/160001
3 years, 6 months ago (2017-06-01 12:39:14 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_dbg/builds/19408)
3 years, 6 months ago (2017-06-01 13:16:11 UTC) #23
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/2790933002/220001
3 years, 6 months ago (2017-06-07 17:44:02 UTC) #26
commit-bot: I haz the power
Committed patchset #12 (id:220001) as https://chromium.googlesource.com/external/webrtc/+/6b648c4697cede14605fd2b89425866eec5f7c79
3 years, 6 months ago (2017-06-07 18:04:42 UTC) #29
charujain
3 years, 6 months ago (2017-06-07 18:58:51 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.webrtc.org/2925123003/ by charujain@webrtc.org.

The reason for reverting is: Compile Error..

Powered by Google App Engine
This is Rietveld 408576698