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

Issue 9663066: Refactoring of chrome speech recognition architecture (CL1.3) (Closed)

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

Description

speech_recognition_request - Renamed speech_recognition_request to google_one_shot_remote_engine - Audio encoder moved here (previously was in speech_recognizer). Rationale: Audio encoding is not a requirement of speech recognition. It is a need of the google_one_shot_remote_engine, due to its remote nature. speech_recognition_engine - Extracted the interface SpeechRecognitionEngine (and, accordingly, Delegate) from the former speech_recognition_request. Rationale: google_one_shot_remote_engine is just one of the possible engines (yet currently the only one) that can be exploited to recognize speech. speech_recognition_result - Added SpeechRecognitionError, encapsulating the error code and further error details (for specializing audio errors, since chrome needs them). speech_recognition_manager - Minor adaptions to the new speech_recognizer.cc - Replaced the SpeechRecognitionRequestDelegate interface with the brand new speech_recognition_event_listener BUG=116954 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128896

Patch Set 1 #

Patch Set 2 : Minor renaming nits. #

Patch Set 3 : Rebased from Speech CL1.2 (soon to be master). #

Patch Set 4 : Rebased from master. #

Total comments: 35

Patch Set 5 : Fixed according to Hans review. #

Total comments: 55

Patch Set 6 : Fixed windows compilation issues. #

Patch Set 7 : Fixed according to (partial) Satish review. #

Total comments: 46

Patch Set 8 : Fixed according to (final) Satish review. Reverted speech_recognizer_impl (will be sent in a separa… #

Patch Set 9 : Minor nit on speech_recognition_engine comments. #

Total comments: 19

Patch Set 10 : Fixed according to last Satish comments. #

Total comments: 2

Patch Set 11 : Final review fixes. #

Total comments: 1

Patch Set 12 : Moved SpeechRecognitionError* to a separate .h file. #

Total comments: 2

Patch Set 13 : Minor fix according to Satish review. #

Total comments: 1

Patch Set 14 : Fixed nit according to jam@ review. #

Patch Set 15 : Fixed compilation issues on win #

Patch Set 16 : Still issues with win build. #

Patch Set 17 : Fixed compilation issues on windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+525 lines, -710 lines) Patch
M chrome/browser/speech/chrome_speech_recognition_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/speech/speech_input_extension_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -3 lines 0 comments Download
A content/browser/speech/google_one_shot_remote_engine.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +84 lines, -0 lines 0 comments Download
A + content/browser/speech/google_one_shot_remote_engine.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +129 lines, -57 lines 0 comments Download
A + content/browser/speech/google_one_shot_remote_engine_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +28 lines, -18 lines 0 comments Download
M content/browser/speech/speech_recognition_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/speech/speech_recognition_engine.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +92 lines, -0 lines 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/speech/speech_recognition_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +26 lines, -21 lines 0 comments Download
D content/browser/speech/speech_recognition_request.h View 1 chunk +0 lines, -90 lines 0 comments Download
D content/browser/speech/speech_recognition_request.cc View 1 chunk +0 lines, -228 lines 0 comments Download
D content/browser/speech/speech_recognition_request_unittest.cc View 1 chunk +0 lines, -112 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +32 lines, -33 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +70 lines, -66 lines 0 comments Download
M content/browser/speech/speech_recognizer_impl_unittest.cc View 1 2 3 4 5 6 7 15 chunks +20 lines, -19 lines 0 comments Download
M content/common/speech_recognition_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/speech_recognition_event_listener.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/browser/speech_recognition_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/speech_recognizer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + content/public/common/speech_recognition_error.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +20 lines, -30 lines 0 comments Download
M content/public/common/speech_recognition_result.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -20 lines 0 comments Download
M content/public/common/speech_recognition_result.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Primiano Tucci (use gerrit)
8 years, 9 months ago (2012-03-12 13:29:40 UTC) #1
Primiano Tucci (use gerrit)
I added some comments in the codereview interface in order to help the review process. ...
8 years, 9 months ago (2012-03-15 09:14:36 UTC) #2
hans
Patch looks good; as usual i just have a bunch of nits. http://codereview.chromium.org/9663066/diff/11030/content/browser/speech/google_ssfe_remote_engine.h File content/browser/speech/google_ssfe_remote_engine.h ...
8 years, 9 months ago (2012-03-16 11:12:56 UTC) #3
hans
Oh, and the description of the CL should have a header line, maybe "Speech refactoring: ...
8 years, 9 months ago (2012-03-16 13:58:03 UTC) #4
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/11030/content/browser/speech/google_ssfe_remote_engine.h File content/browser/speech/google_ssfe_remote_engine.h (right): http://codereview.chromium.org/9663066/diff/11030/content/browser/speech/google_ssfe_remote_engine.h#newcode48 content/browser/speech/google_ssfe_remote_engine.h:48: // Google Speech API 1.3.2. On 2012/03/16 11:12:56, hans ...
8 years, 9 months ago (2012-03-16 15:03:42 UTC) #5
Satish
First set of comments below, will review the rest of files next. http://codereview.chromium.org/9663066/diff/10025/content/browser/speech/google_ssfe_remote_engine.cc File content/browser/speech/google_ssfe_remote_engine.cc ...
8 years, 9 months ago (2012-03-16 17:00:35 UTC) #6
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/10025/content/browser/speech/google_ssfe_remote_engine.cc File content/browser/speech/google_ssfe_remote_engine.cc (right): http://codereview.chromium.org/9663066/diff/10025/content/browser/speech/google_ssfe_remote_engine.cc#newcode40 content/browser/speech/google_ssfe_remote_engine.cc:40: const int SPEECH_API_STATUS_NO_ERROR = 0; On 2012/03/16 17:00:35, Satish ...
8 years, 9 months ago (2012-03-20 13:14:50 UTC) #7
Satish
http://codereview.chromium.org/9663066/diff/14001/content/browser/speech/google_one_shot_remote_engine.cc File content/browser/speech/google_one_shot_remote_engine.cc (right): http://codereview.chromium.org/9663066/diff/14001/content/browser/speech/google_one_shot_remote_engine.cc#newcode35 content/browser/speech/google_one_shot_remote_engine.cc:35: const int kGoogleSSFEStatusNoError = 0; SSFE to something else? ...
8 years, 9 months ago (2012-03-21 13:29:48 UTC) #8
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/14001/content/browser/speech/google_one_shot_remote_engine.cc File content/browser/speech/google_one_shot_remote_engine.cc (right): http://codereview.chromium.org/9663066/diff/14001/content/browser/speech/google_one_shot_remote_engine.cc#newcode35 content/browser/speech/google_one_shot_remote_engine.cc:35: const int kGoogleSSFEStatusNoError = 0; On 2012/03/21 13:29:48, Satish ...
8 years, 9 months ago (2012-03-22 11:20:40 UTC) #9
Satish
Getting close.. http://codereview.chromium.org/9663066/diff/30003/content/browser/speech/speech_recognition_engine.h File content/browser/speech/speech_recognition_engine.h (right): http://codereview.chromium.org/9663066/diff/30003/content/browser/speech/speech_recognition_engine.h#newcode42 content/browser/speech/speech_recognition_engine.h:42: virtual void OnSpeechRecognitionEngineError( also add a comment ...
8 years, 9 months ago (2012-03-22 12:03:27 UTC) #10
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/30003/content/browser/speech/google_one_shot_remote_engine.cc File content/browser/speech/google_one_shot_remote_engine.cc (right): http://codereview.chromium.org/9663066/diff/30003/content/browser/speech/google_one_shot_remote_engine.cc#newcode83 content/browser/speech/google_one_shot_remote_engine.cc:83: error->code = content::SPEECH_RECOGNITION_ERROR_NONE; This was mistakenly added after the ...
8 years, 9 months ago (2012-03-22 12:39:29 UTC) #11
Satish
LGTM Please also wait for Hans to take a look before submit http://codereview.chromium.org/9663066/diff/34004/content/browser/speech/google_one_shot_remote_engine.cc File content/browser/speech/google_one_shot_remote_engine.cc ...
8 years, 9 months ago (2012-03-22 14:37:21 UTC) #12
hans
On 2012/03/22 14:37:21, Satish wrote: > LGTM > > Please also wait for Hans to ...
8 years, 9 months ago (2012-03-22 16:25:59 UTC) #13
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/34004/content/browser/speech/google_one_shot_remote_engine.cc File content/browser/speech/google_one_shot_remote_engine.cc (right): http://codereview.chromium.org/9663066/diff/34004/content/browser/speech/google_one_shot_remote_engine.cc#newcode112 content/browser/speech/google_one_shot_remote_engine.cc:112: // For now we support only single shot recognition, ...
8 years, 9 months ago (2012-03-22 17:19:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/9663066/22005
8 years, 9 months ago (2012-03-22 17:19:25 UTC) #15
commit-bot: I haz the power
Presubmit check for 9663066-22005 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-22 17:19:38 UTC) #16
jam
http://codereview.chromium.org/9663066/diff/22005/content/public/common/speech_recognition_result.h File content/public/common/speech_recognition_result.h (right): http://codereview.chromium.org/9663066/diff/22005/content/public/common/speech_recognition_result.h#newcode58 content/public/common/speech_recognition_result.h:58: struct CONTENT_EXPORT SpeechRecognitionError { please see http://www.chromium.org/developers/content-module/content-api for conventions ...
8 years, 9 months ago (2012-03-22 17:31:08 UTC) #17
Primiano Tucci (use gerrit)
http://codereview.chromium.org/9663066/diff/22008/content/public/common/speech_recognition_error.h File content/public/common/speech_recognition_error.h (right): http://codereview.chromium.org/9663066/diff/22008/content/public/common/speech_recognition_error.h#newcode30 content/public/common/speech_recognition_error.h:30: enum SpeechAudioErrorDetails { I know that the presence of ...
8 years, 9 months ago (2012-03-23 10:52:19 UTC) #18
Satish
http://codereview.chromium.org/9663066/diff/22008/content/public/common/speech_recognition_error.h File content/public/common/speech_recognition_error.h (right): http://codereview.chromium.org/9663066/diff/22008/content/public/common/speech_recognition_error.h#newcode30 content/public/common/speech_recognition_error.h:30: enum SpeechAudioErrorDetails { On 2012/03/23 10:52:19, Primiano Tucci wrote: ...
8 years, 9 months ago (2012-03-23 10:57:45 UTC) #19
Primiano Tucci (use gerrit)
> Can this be added in the next CLs where it is actually used? It ...
8 years, 9 months ago (2012-03-23 11:09:54 UTC) #20
jam
lgtm http://codereview.chromium.org/9663066/diff/24018/content/public/common/speech_recognition_error.h File content/public/common/speech_recognition_error.h (right): http://codereview.chromium.org/9663066/diff/24018/content/public/common/speech_recognition_error.h#newcode40 content/public/common/speech_recognition_error.h:40: SpeechRecognitionError(SpeechRecognitionErrorCode code_val) nit: code_value (and also below). see ...
8 years, 9 months ago (2012-03-23 15:53:29 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/9663066/25046
8 years, 9 months ago (2012-03-23 16:03:20 UTC) #22
commit-bot: I haz the power
Try job failure for 9663066-25046 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-23 16:57:25 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/9663066/24047
8 years, 9 months ago (2012-03-23 17:09:07 UTC) #24
commit-bot: I haz the power
Try job failure for 9663066-24047 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-23 18:13:34 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/9663066/41001
8 years, 9 months ago (2012-03-26 08:47:21 UTC) #26
commit-bot: I haz the power
Try job failure for 9663066-41001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 9 months ago (2012-03-26 09:38:53 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/9663066/44003
8 years, 9 months ago (2012-03-26 09:55:23 UTC) #28
commit-bot: I haz the power
8 years, 9 months ago (2012-03-26 11:56:03 UTC) #29
Change committed as 128896

Powered by Google App Engine
This is Rietveld 408576698