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

Issue 551823005: [Hotword] Adding audio parameters to handle audio coming from the DSP. (Closed)

Created:
6 years, 3 months ago by rpetterson
Modified:
6 years ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Hotword] Adding audio parameters to handle audio coming from the DSP. BUG=403138 Committed: https://crrev.com/605d12b7a480a6f1b2fc479f7aa87a579bcbef42 Cr-Commit-Position: refs/heads/master@{#308487}

Patch Set 1 #

Patch Set 2 : add cancelable closure #

Patch Set 3 : fix up calling order, start unittest #

Patch Set 4 : using new api #

Patch Set 5 : a little cleanup #

Total comments: 18

Patch Set 6 : respond to comments #

Patch Set 7 : change parameter name to hotword #

Patch Set 8 : put call to add stream in else statement #

Total comments: 2

Patch Set 9 : move destroy #

Patch Set 10 : disable callback on Stop() #

Patch Set 11 : unify stream, add hotword flag #

Patch Set 12 : remove unnecessary changes (easier to diff) #

Patch Set 13 : remove extra line #

Patch Set 14 : moving test to audio_input_unittest #

Patch Set 15 : remove old test #

Patch Set 16 : remove duplicated code #

Patch Set 17 : remove test #

Patch Set 18 : actually remove test #

Total comments: 4

Patch Set 19 : update stream type #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M media/audio/audio_parameters.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/cras/cras_input.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +6 lines, -1 line 2 comments Download

Messages

Total messages: 37 (4 generated)
dgreid
https://codereview.chromium.org/551823005/diff/80001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/audio_parameters.h#newcode54 media/audio/audio_parameters.h:54: HARDWARE_INPUT = 0x8, Can HARDWARE_INPUT have a different name? ...
6 years, 3 months ago (2014-09-17 21:16:23 UTC) #3
rpetterson
https://codereview.chromium.org/551823005/diff/80001/media/audio/audio_parameters.h File media/audio/audio_parameters.h (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/audio_parameters.h#newcode54 media/audio/audio_parameters.h:54: HARDWARE_INPUT = 0x8, On 2014/09/17 21:16:22, dgreid wrote: > ...
6 years, 3 months ago (2014-09-17 21:32:01 UTC) #4
dgreid
https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode198 media/audio/cras/cras_input.cc:198: On 2014/09/17 21:32:00, rpetterson wrote: > On 2014/09/17 21:16:23, ...
6 years, 3 months ago (2014-09-17 21:36:33 UTC) #5
rpetterson
https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode198 media/audio/cras/cras_input.cc:198: On 2014/09/17 21:36:33, dgreid wrote: > On 2014/09/17 21:32:00, ...
6 years, 3 months ago (2014-09-17 21:40:20 UTC) #6
dgreid
This looks like it can work, I'll try to get the CRAS side change it ...
6 years, 3 months ago (2014-09-17 22:03:00 UTC) #7
rpetterson
https://codereview.chromium.org/551823005/diff/130001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/130001/media/audio/cras/cras_input.cc#newcode207 media/audio/cras/cras_input.cc:207: cras_client_stream_params_destroy(stream_params); On 2014/09/17 22:03:00, dgreid wrote: > move stream_params_destory ...
6 years, 3 months ago (2014-09-17 22:10:46 UTC) #8
DaleCurtis
https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode248 media/audio/cras/cras_input.cc:248: me->ReadAudio(frames, single_sample, sample_ts); On 2014/09/17 21:32:00, rpetterson wrote: > ...
6 years, 3 months ago (2014-09-17 22:29:22 UTC) #9
rpetterson
I've also added the line to cancel the callback in Stop(). https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): ...
6 years, 3 months ago (2014-09-22 22:24:40 UTC) #10
DaleCurtis
https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode248 media/audio/cras/cras_input.cc:248: me->ReadAudio(frames, single_sample, sample_ts); On 2014/09/22 22:24:40, rpetterson wrote: > ...
6 years, 3 months ago (2014-09-22 23:49:44 UTC) #11
rpetterson
I've removed the test since there's been a lot of debate about the best way ...
6 years, 1 month ago (2014-10-27 21:16:30 UTC) #12
DaleCurtis
I defer to Dylan, there's not enough here for me to say anything about the ...
6 years, 1 month ago (2014-10-27 21:18:27 UTC) #13
dgreid
I think this will work with the constant changed. I'm doing a build now to ...
6 years ago (2014-12-10 00:23:35 UTC) #14
rpetterson
On 2014/12/10 00:23:35, dgreid wrote: > I think this will work with the constant changed. ...
6 years ago (2014-12-10 00:37:43 UTC) #15
dgreid
https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode248 media/audio/cras/cras_input.cc:248: me->ReadAudio(frames, single_sample, sample_ts); ignore that comment. it must have ...
6 years ago (2014-12-10 00:54:50 UTC) #16
dgreid
On 2014/12/10 00:54:50, dgreid wrote: > https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc > File media/audio/cras/cras_input.cc (right): > > https://codereview.chromium.org/551823005/diff/80001/media/audio/cras/cras_input.cc#newcode248 > ...
6 years ago (2014-12-13 00:39:22 UTC) #17
rpetterson
https://codereview.chromium.org/551823005/diff/330001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/330001/media/audio/cras/cras_input.cc#newcode18 media/audio/cras/cras_input.cc:18: static const uint32_t kHotwordParam = 1; On 2014/12/10 00:54:50, ...
6 years ago (2014-12-13 01:04:00 UTC) #18
rpetterson
On 2014/12/13 01:04:00, rpetterson wrote: > https://codereview.chromium.org/551823005/diff/330001/media/audio/cras/cras_input.cc > File media/audio/cras/cras_input.cc (right): > > https://codereview.chromium.org/551823005/diff/330001/media/audio/cras/cras_input.cc#newcode18 > ...
6 years ago (2014-12-13 01:21:25 UTC) #19
dgreid
that looks right. I'm not sure why this issue was private to begin with.
6 years ago (2014-12-13 01:24:08 UTC) #20
rpetterson
ping to dalecurtis
6 years ago (2014-12-13 03:16:41 UTC) #21
rpetterson
ping to dalecurtis
6 years ago (2014-12-13 03:17:00 UTC) #22
DaleCurtis
lgtm % some questions: - Is the DSP buffer now returned in the format requested ...
6 years ago (2014-12-15 18:12:02 UTC) #23
dgreid
On 2014/12/15 18:12:02, DaleCurtis wrote: > lgtm % some questions: > > - Is the ...
6 years ago (2014-12-15 18:23:01 UTC) #24
rpetterson
On 2014/12/15 18:12:02, DaleCurtis wrote: > - Where's the other end of the code which ...
6 years ago (2014-12-15 19:26:05 UTC) #25
DaleCurtis
I don't believe there's any way for an extension (definitely not in JS, I don't ...
6 years ago (2014-12-15 19:36:23 UTC) #26
Anand Mistry (off Chromium)
On 2014/12/15 19:36:23, DaleCurtis wrote: > I don't believe there's any way for an extension ...
6 years ago (2014-12-15 23:27:44 UTC) #27
DaleCurtis
I'm just saying there's no HOTWORD flag there, so it needs to be plumbed.
6 years ago (2014-12-15 23:36:52 UTC) #28
rpetterson
It sounds like the PPAPI stuff is in a different chunk of code, so I'll ...
6 years ago (2014-12-16 00:10:15 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/551823005/350001
6 years ago (2014-12-16 00:11:40 UTC) #31
commit-bot: I haz the power
Committed patchset #19 (id:350001)
6 years ago (2014-12-16 01:06:30 UTC) #32
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/605d12b7a480a6f1b2fc479f7aa87a579bcbef42 Cr-Commit-Position: refs/heads/master@{#308487}
6 years ago (2014-12-16 01:07:26 UTC) #33
Steve McKay
https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_input.cc#newcode165 media/audio/cras/cras_input.cc:165: flags = HOTWORD_STREAM; This is still broken for me. ...
6 years ago (2014-12-17 17:41:29 UTC) #35
dgreid
https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_input.cc File media/audio/cras/cras_input.cc (right): https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_input.cc#newcode165 media/audio/cras/cras_input.cc:165: flags = HOTWORD_STREAM; On 2014/12/17 17:41:29, Steve McKay wrote: ...
6 years ago (2014-12-17 17:44:20 UTC) #36
hellner1
6 years ago (2014-12-17 23:28:09 UTC) #37
Message was sent while issue was closed.
On 2014/12/17 17:44:20, dgreid wrote:
>
https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_i...
> File media/audio/cras/cras_input.cc (right):
> 
>
https://codereview.chromium.org/551823005/diff/350001/media/audio/cras/cras_i...
> media/audio/cras/cras_input.cc:165: flags = HOTWORD_STREAM;
> On 2014/12/17 17:41:29, Steve McKay wrote:
> > This is still broken for me. Where is this value defined?
> 
> in cras_types.h, you'll need an up to date libcras from a recent chromeos
> checkout.

What about simple chrome
(http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/building-chro...

Powered by Google App Engine
This is Rietveld 408576698