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

Issue 2750353002: Conversational speech tool: timing model with data access. (Closed)

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

Conversational speech tool: timing model with data access. The conversational_speech::Timing class models a list of turns. Each turn, is identified by a speaker, the audiotrack name, and an offset in milliseconds. The unit test checks that an instance of Timing is correctly populated and that save/reload leads to the same data. BUG=webrtc:7218 Review-Url: https://codereview.webrtc.org/2750353002 Cr-Commit-Position: refs/heads/master@{#17346} Committed: https://chromium.googlesource.com/external/webrtc/+/ce302b82c919182887784eff6e6aca7716c6c9c1

Patch Set 1 #

Total comments: 32

Patch Set 2 : comments from Karl addressed #

Total comments: 26

Patch Set 3 : comments from Karl addressed #

Patch Set 4 : minor changes #

Total comments: 6

Patch Set 5 : final comments addressed #

Patch Set 6 : minor fix #

Patch Set 7 : deps fixed #

Messages

Total messages: 22 (10 generated)
kwiberg-webrtc
See comments below. Most importantly, I don't think you should use unique_ptr here---using Turn directly ...
3 years, 9 months ago (2017-03-16 14:10:09 UTC) #2
AleBzk
Thanks for your comments Karl. I addressed most of them and asked questions for a ...
3 years, 9 months ago (2017-03-20 14:25:28 UTC) #3
kwiberg-webrtc
https://codereview.webrtc.org/2750353002/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/2750353002/diff/1/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode24 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:24: typedef conversational_speech::Timing::Turn Turn; On 2017/03/20 14:25:27, AleBzk wrote: > ...
3 years, 9 months ago (2017-03-21 22:35:16 UTC) #4
AleBzk
Everything addressed, now much simpler. Compare PS#2 to PS#4. https://codereview.webrtc.org/2750353002/diff/20001/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/2750353002/diff/20001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode46 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:46: ...
3 years, 9 months ago (2017-03-22 10:07:22 UTC) #5
kwiberg-webrtc
lgtm, but see remaining nits https://codereview.webrtc.org/2750353002/diff/60001/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/2750353002/diff/60001/webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc#newcode57 webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:57: } This test should ...
3 years, 9 months ago (2017-03-22 12:06:39 UTC) #6
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/2750353002/80001
3 years, 9 months ago (2017-03-22 13:47:22 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios32_sim_ios9_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios32_sim_ios9_dbg/builds/2794) ios64_sim_ios10_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 9 months ago (2017-03-22 13:49:14 UTC) #11
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/2750353002/120001
3 years, 9 months ago (2017-03-22 14:09:32 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_more_configs on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_more_configs/builds/4157)
3 years, 9 months ago (2017-03-22 14:33:17 UTC) #16
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/2750353002/120001
3 years, 9 months ago (2017-03-22 15:15:57 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/external/webrtc/+/ce302b82c919182887784eff6e6aca7716c6c9c1
3 years, 9 months ago (2017-03-22 15:23:51 UTC) #21
AleBzk
3 years, 9 months ago (2017-03-22 15:26:22 UTC) #22
Message was sent while issue was closed.
https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
File
webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc
(right):

https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
webrtc/modules/audio_processing/test/conversational_speech/generator_unittest.cc:57:
}
On 2017/03/22 12:06:39, kwiberg-webrtc wrote:
> This test should have a different name now. Also, you can probably remove it,
> since it's rather easy to see that expected_timing has size >0.

Done.

https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
File webrtc/modules/audio_processing/test/conversational_speech/timing.cc
(right):

https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
webrtc/modules/audio_processing/test/conversational_speech/timing.cc:32: auto
parse_line_ = [](const std::string& line) {
On 2017/03/22 12:06:39, kwiberg-webrtc wrote:
> No trailing underscore, since this isn't a member variable.

Done.

https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
File webrtc/modules/audio_processing/test/conversational_speech/timing.h
(right):

https://codereview.webrtc.org/2750353002/diff/60001/webrtc/modules/audio_proc...
webrtc/modules/audio_processing/test/conversational_speech/timing.h:38: const
std::vector<Turn>& timing);
On 2017/03/22 12:06:39, kwiberg-webrtc wrote:
> The second argument could be ArrayView<const Turn>. Then the caller could hold
> the Turns in any array, not just a std::vector.

Done.

Powered by Google App Engine
This is Rietveld 408576698