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

Issue 448163003: Support for providing media stream audio track to speech recognition (Closed)

Created:
6 years, 4 months ago by burnik
Modified:
6 years, 2 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Support for providing media stream audio track to speech recognition - Blink implementation. [ WebKit CL ] Renderer CL : http://crrev.com/499233003 Browser CL : http://crrev.com/549373003 Introduces |webkitSpeechRecognition.audioTrack| attribute. Set to null by default. When the attribute is set to null, SR is done by default implementation (getting audio from the audio input device on the browser). When the attribute is set to a MediaStreamTrack it should get audio data from that track after |start()|. The track is utilized once |start()| is called. For unsupported tracks (e.g. from a file rather than a microphone) the chromium implementation should bubble up the error once |start()| is called. Changing of the attribute after |start()| is called should have no effect on the running session. This is the same behavioral pattern as for the other attributes. Design doc: http://goo.gl/9Ot3PC Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/G2lRTzZXmW4 BUG=408940 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182851

Patch Set 1 : early attempt - setAudioTrack method #

Patch Set 2 : #

Patch Set 3 : @audioTrack, setAudioTrack, clearAudioTrack #

Total comments: 12

Patch Set 4 : Rename methods and remove clearAudioTrack from inner layers #

Total comments: 2

Patch Set 5 : Rebased on master #

Patch Set 6 : Remove attach/detach - using overloaded start #

Total comments: 10

Patch Set 7 : Wrap WebMediaStreamTrack into WebSpeechRecognitionParams #

Total comments: 6

Patch Set 8 : Add RuntimeEnabled flag. #

Total comments: 1

Patch Set 9 : Include WebMediaStreamTrack to enable build. #

Patch Set 10 : Add experimental WebRTCSpeech RuntimeEnabled flag #

Patch Set 11 : s/WebRTC/MediaStream/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -8 lines) Patch
M Source/modules/speech/SpeechRecognition.h View 1 2 3 4 5 6 4 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognition.cpp View 1 2 3 4 5 6 7 4 chunks +4 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognition.idl View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/speech/SpeechRecognitionClient.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/speech/SpeechRecognitionController.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/SpeechRecognitionClientProxy.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/SpeechRecognitionClientProxy.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M public/web/WebSpeechRecognitionParams.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 38 (5 generated)
no longer working on chromium
Some thoughts and comments. https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp#newcode60 Source/modules/speech/SpeechRecognition.cpp:60: m_controller->clearAudioTrack(this); you don't need clearAudioTrack, ...
6 years, 4 months ago (2014-08-14 15:41:34 UTC) #1
burnik
Initial proposal to support WebMediaStreamTrack for SR.
6 years, 4 months ago (2014-08-14 16:05:47 UTC) #2
burnik
https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp#newcode60 Source/modules/speech/SpeechRecognition.cpp:60: m_controller->clearAudioTrack(this); On 2014/08/14 15:41:34, xians1 wrote: > you don't ...
6 years, 4 months ago (2014-08-14 16:35:15 UTC) #3
burnik
https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/448163003/diff/40001/Source/modules/speech/SpeechRecognition.cpp#newcode183 Source/modules/speech/SpeechRecognition.cpp:183: , m_stopping(false) On 2014/08/14 15:41:34, xians1 wrote: > initialize ...
6 years, 4 months ago (2014-08-14 16:38:44 UTC) #4
no longer working on chromium
Glen, could you please take a look at this CL? Many thanks, SX https://codereview.chromium.org/448163003/diff/60001/Source/modules/speech/SpeechRecognition.cpp File ...
6 years, 4 months ago (2014-08-15 10:22:56 UTC) #5
burnik
https://codereview.chromium.org/448163003/diff/60001/Source/modules/speech/SpeechRecognition.cpp File Source/modules/speech/SpeechRecognition.cpp (right): https://codereview.chromium.org/448163003/diff/60001/Source/modules/speech/SpeechRecognition.cpp#newcode57 Source/modules/speech/SpeechRecognition.cpp:57: m_controller->start(this, m_grammars.get(), m_lang, m_continuous, m_interimResults, m_maxAlternatives); I've gone through ...
6 years, 4 months ago (2014-08-15 11:29:41 UTC) #6
gshires1
On 2014/08/15 11:29:41, burnik wrote: > https://codereview.chromium.org/448163003/diff/60001/Source/modules/speech/SpeechRecognition.cpp > File Source/modules/speech/SpeechRecognition.cpp (right): > > https://codereview.chromium.org/448163003/diff/60001/Source/modules/speech/SpeechRecognition.cpp#newcode57 > ...
6 years, 3 months ago (2014-09-02 16:41:22 UTC) #7
burnik
This is the only change proposed for the API to support WebRTC processing: https://codereview.chromium.org/448163003/patch/60001/70003 I ...
6 years, 3 months ago (2014-09-02 19:54:28 UTC) #8
burnik
On 2014/09/02 19:54:28, burnik wrote: > This is the only change proposed for the API ...
6 years, 3 months ago (2014-09-15 08:48:46 UTC) #10
burnik
Remove attach/detach - using overloaded start
6 years, 3 months ago (2014-09-15 11:01:59 UTC) #11
no longer working on chromium
nice. lgtm
6 years, 3 months ago (2014-09-17 09:29:26 UTC) #12
no longer working on chromium
Jochen, could you please review the details of this blink code change? Thanks, SX
6 years, 3 months ago (2014-09-17 09:30:27 UTC) #13
Mike West
A few drive-by comments. Hope they're helpful. https://codereview.chromium.org/448163003/diff/100001/Source/modules/speech/SpeechRecognition.h File Source/modules/speech/SpeechRecognition.h (right): https://codereview.chromium.org/448163003/diff/100001/Source/modules/speech/SpeechRecognition.h#newcode31 Source/modules/speech/SpeechRecognition.h:31: #include "modules/mediastream/MediaStreamTrack.h" ...
6 years, 3 months ago (2014-09-17 10:20:27 UTC) #15
burnik
Thanks for observations, Mike! Could you also look at the previous patchset and tell me ...
6 years, 3 months ago (2014-09-17 11:17:21 UTC) #16
Mike West
On 2014/09/17 11:17:21, burnik wrote: > Could you also look at the previous patchset and ...
6 years, 3 months ago (2014-09-17 11:30:47 UTC) #17
no longer working on chromium
On 2014/09/17 11:30:47, Mike West wrote: > On 2014/09/17 11:17:21, burnik wrote: > > Could ...
6 years, 3 months ago (2014-09-17 11:38:20 UTC) #18
burnik
Ok. Wrapped into WebSpeechRecognition params and removed overloads. Please take a look now. https://codereview.chromium.org/448163003/diff/120001/Source/web/SpeechRecognitionClientProxy.h File ...
6 years, 3 months ago (2014-09-17 13:47:54 UTC) #19
Mike West
LGTM, thanks for taking another pass. I'd recommend doing the same struct packing for SpeechRecognitionClientProxy::start, ...
6 years, 3 months ago (2014-09-17 14:32:02 UTC) #20
Mike West
(You'll still need a content OWNER to stamp the CL, of course)
6 years, 3 months ago (2014-09-17 14:32:21 UTC) #21
burnik
+hans as reviewer.
6 years, 3 months ago (2014-09-17 15:54:02 UTC) #23
hans
lgtm, and I like this new functionality! https://codereview.chromium.org/448163003/diff/120001/Source/modules/speech/SpeechRecognitionController.h File Source/modules/speech/SpeechRecognitionController.h (right): https://codereview.chromium.org/448163003/diff/120001/Source/modules/speech/SpeechRecognitionController.h#newcode30 Source/modules/speech/SpeechRecognitionController.h:30: #include "modules/mediastream/MediaStreamTrack.h" ...
6 years, 3 months ago (2014-09-17 16:07:58 UTC) #24
jochen (gone - plz use gerrit)
who's maintaining the speech module btw? We should have somebody in the owner file there ...
6 years, 3 months ago (2014-09-18 18:22:59 UTC) #25
jochen (gone - plz use gerrit)
i'm also not sure whether we should add new features to a prefixed api just ...
6 years, 3 months ago (2014-09-18 18:23:56 UTC) #26
no longer working on chromium
On 2014/09/18 18:22:59, jochen wrote: > who's maintaining the speech module btw? We should have ...
6 years, 3 months ago (2014-09-19 07:36:17 UTC) #27
burnik
On 2014/09/18 18:23:56, jochen (slow for reviews) wrote: > i'm also not sure whether we ...
6 years, 3 months ago (2014-09-22 07:16:19 UTC) #28
haraken
LGTM in terms of oilpan.
6 years, 3 months ago (2014-09-22 08:05:58 UTC) #29
burnik
Patchset added. https://codereview.chromium.org/448163003/diff/120001/Source/modules/speech/SpeechRecognition.idl File Source/modules/speech/SpeechRecognition.idl (right): https://codereview.chromium.org/448163003/diff/120001/Source/modules/speech/SpeechRecognition.idl#newcode38 Source/modules/speech/SpeechRecognition.idl:38: attribute MediaStreamTrack audioTrack; On 2014/09/18 18:22:58, jochen ...
6 years, 3 months ago (2014-09-22 08:35:24 UTC) #30
burnik
Include WebMediaStreamTrack to enable build.
6 years, 3 months ago (2014-09-22 14:28:15 UTC) #32
burnik
Temporarily added include of WebMediaStreamTrack in WebSpeechRecognitionParams to be able to land without depending on ...
6 years, 3 months ago (2014-09-22 14:29:46 UTC) #33
jochen (gone - plz use gerrit)
in general, cross modules dependencies are not desirable. however, webrtc should probably move to core ...
6 years, 2 months ago (2014-09-26 19:43:44 UTC) #34
burnik
s/WebRTC/MediaStream/
6 years, 2 months ago (2014-09-29 12:15:52 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/448163003/220001
6 years, 2 months ago (2014-09-29 14:03:39 UTC) #37
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 17:00:34 UTC) #38
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as 182851

Powered by Google App Engine
This is Rietveld 408576698