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

Issue 9835049: Speech refactoring: Reimplemented speech_recognizer as a FSM. (CL1.5) (Closed)

Created:
8 years, 9 months ago by Primiano Tucci (use gerrit)
Modified:
8 years, 8 months ago
Reviewers:
hans, bulach, Satish, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, stuartmorgan
Visibility:
Public.

Description

Speech refactoring: Reimplemented speech_recognizer as a FSM (CL1.5) BUG=116954 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132179

Patch Set 1 : #

Patch Set 2 : Rebased from master. #

Total comments: 92

Patch Set 3 : Fixed according to Satish review + rebase. #

Patch Set 4 : Rebased with Issue 9791070 (soon to be master). #

Patch Set 5 : Rewrote FSM according to Satish indications. #

Patch Set 6 : Minor style fixes. #

Total comments: 22

Patch Set 7 : Reverted switch-style FSM and fixed according to Hans comments. #

Patch Set 8 : Rebased from master due to renames in media:: package. #

Total comments: 36

Patch Set 9 : Fixed according to Bulach review. #

Total comments: 6

Patch Set 10 : Fixed according to Satish review. #

Total comments: 10

Patch Set 11 : Fixed according to Bulach review (+ win compile error). #

Total comments: 1

Patch Set 12 : Added CONTENT_EXPORT on GoogleOneShotRemoteEngineConfig to address compilation issues on win. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -253 lines) Patch
M content/browser/speech/google_one_shot_remote_engine.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_recognizer_impl.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +87 lines, -38 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +462 lines, -180 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl_unittest.cc View 1 2 3 4 5 6 7 8 20 chunks +103 lines, -34 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Primiano Tucci (use gerrit)
8 years, 9 months ago (2012-03-23 11:41:53 UTC) #1
Satish
Great start. http://codereview.chromium.org/9835049/diff/3001/content/browser/speech/speech_recognizer_impl.cc File content/browser/speech/speech_recognizer_impl.cc (right): http://codereview.chromium.org/9835049/diff/3001/content/browser/speech/speech_recognizer_impl.cc#newcode19 content/browser/speech/speech_recognizer_impl.cc:19: #define UNREACHABLE_CONDITION() do { NOTREACHED(); return state_; ...
8 years, 9 months ago (2012-03-27 09:47:42 UTC) #2
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9835049/diff/3001/content/browser/speech/speech_recognizer_impl.cc File content/browser/speech/speech_recognizer_impl.cc (right): http://codereview.chromium.org/9835049/diff/3001/content/browser/speech/speech_recognizer_impl.cc#newcode19 content/browser/speech/speech_recognizer_impl.cc:19: #define UNREACHABLE_CONDITION() do { NOTREACHED(); return state_; } while(0) ...
8 years, 9 months ago (2012-03-28 13:24:44 UTC) #3
Primiano Tucci (use gerrit)
Reminder: need to slightly refine the FSM adding WAIT_AUDIO_CLOSURE state, in order to deal with ...
8 years, 8 months ago (2012-03-30 17:19:02 UTC) #4
Primiano Tucci (use gerrit)
- Minor style fixes - Added a comment in the code regarding to recent changes ...
8 years, 8 months ago (2012-04-02 09:03:00 UTC) #5
hans
I just have some style comments. Also, I'm not that keen on having a state-transition ...
8 years, 8 months ago (2012-04-02 16:05:58 UTC) #6
Satish
Just one reply to Hans's comment earlier.. will review in detail once this is agreed ...
8 years, 8 months ago (2012-04-02 21:57:09 UTC) #7
Primiano Tucci (use gerrit)
On 2012/04/02 21:57:09, Satish wrote: > On 2012/04/02 16:05:59, hans wrote: > > i liked ...
8 years, 8 months ago (2012-04-03 08:05:35 UTC) #8
Primiano Tucci (use gerrit)
Reverted to switch-style FSM, using always FSMEventArgs (now it embeds also the event in order ...
8 years, 8 months ago (2012-04-03 10:16:39 UTC) #9
hans
lgtm
8 years, 8 months ago (2012-04-03 14:14:15 UTC) #10
bulach
drive-by comments: I'm not 100% familiar with it though, so I'm not sure if it ...
8 years, 8 months ago (2012-04-04 15:38:17 UTC) #11
Primiano Tucci (use gerrit)
Thanks for the review. http://codereview.chromium.org/9835049/diff/23012/content/browser/speech/speech_recognizer_impl.cc File content/browser/speech/speech_recognizer_impl.cc (right): http://codereview.chromium.org/9835049/diff/23012/content/browser/speech/speech_recognizer_impl.cc#newcode20 content/browser/speech/speech_recognizer_impl.cc:20: #define NOT_FEASIBLE() do { NOTREACHED(); ...
8 years, 8 months ago (2012-04-11 10:05:41 UTC) #12
Satish
LGTM from me with the below nits. Happy to have this land once Marcus approves ...
8 years, 8 months ago (2012-04-12 08:58:33 UTC) #13
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9835049/diff/35001/content/browser/speech/speech_recognizer_impl.h File content/browser/speech/speech_recognizer_impl.h (right): http://codereview.chromium.org/9835049/diff/35001/content/browser/speech/speech_recognizer_impl.h#newcode30 content/browser/speech/speech_recognizer_impl.h:30: // TODO(primiano) Next CL: Remove the Impl suffix and ...
8 years, 8 months ago (2012-04-12 12:56:48 UTC) #14
bulach
lgtm thanks! just some nits, feel free to go after addressing them.. http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.cc File content/browser/speech/speech_recognizer_impl.cc ...
8 years, 8 months ago (2012-04-12 16:20:15 UTC) #15
jam
http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl_unittest.cc File content/browser/speech/speech_recognizer_impl_unittest.cc (right): http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl_unittest.cc#newcode110 content/browser/speech/speech_recognizer_impl_unittest.cc:110: // SpeechRecognizerImpl takes ownership of sr_engine. On 2012/04/12 16:20:16, ...
8 years, 8 months ago (2012-04-12 16:21:50 UTC) #16
jam
http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.h File content/browser/speech/speech_recognizer_impl.h (right): http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.h#newcode32 content/browser/speech/speech_recognizer_impl.h:32: // /content/public/browser/speech_recognizer.h interface since this class should that'd be ...
8 years, 8 months ago (2012-04-12 16:22:59 UTC) #17
bulach
http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl_unittest.cc File content/browser/speech/speech_recognizer_impl_unittest.cc (right): http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl_unittest.cc#newcode110 content/browser/speech/speech_recognizer_impl_unittest.cc:110: // SpeechRecognizerImpl takes ownership of sr_engine. On 2012/04/12 16:21:50, ...
8 years, 8 months ago (2012-04-12 16:26:50 UTC) #18
Primiano Tucci (use gerrit)
On 2012/04/12 16:22:59, John Abd-El-Malek wrote: > http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.h > File content/browser/speech/speech_recognizer_impl.h (right): > > http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.h#newcode32 ...
8 years, 8 months ago (2012-04-12 16:44:47 UTC) #19
jam
On Thu, Apr 12, 2012 at 9:44 AM, <primiano@chromium.org> wrote: > On 2012/04/12 16:22:59, John ...
8 years, 8 months ago (2012-04-12 16:57:20 UTC) #20
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.cc File content/browser/speech/speech_recognizer_impl.cc (right): http://codereview.chromium.org/9835049/diff/41001/content/browser/speech/speech_recognizer_impl.cc#newcode380 content/browser/speech/speech_recognizer_impl.cc:380: float rms = 0; On 2012/04/12 16:20:16, bulach wrote: ...
8 years, 8 months ago (2012-04-12 17:38:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/9835049/45002
8 years, 8 months ago (2012-04-12 20:17:53 UTC) #22
commit-bot: I haz the power
Try job failure for 9835049-45002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-12 21:10:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/9835049/48003
8 years, 8 months ago (2012-04-13 07:51:39 UTC) #24
commit-bot: I haz the power
Try job failure for 9835049-48003 (retry) on mac_rel for steps "browser_tests, unit_tests". It's a second ...
8 years, 8 months ago (2012-04-13 10:25:38 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/9835049/48003
8 years, 8 months ago (2012-04-13 11:36:18 UTC) #26
commit-bot: I haz the power
8 years, 8 months ago (2012-04-13 13:06:42 UTC) #27
Change committed as 132179

Powered by Google App Engine
This is Rietveld 408576698