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

Issue 3124009: Adds SpeechRecognizer which provides a simple interface to record and recognize speech. (Closed)

Created:
10 years, 4 months ago by Satish
Modified:
9 years, 7 months ago
Reviewers:
joth, Paweł Hajdan Jr.
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adds SpeechRecognizer which provides a simple interface to record and recognize speech. Also added a unit test for checking the callbacks fire as expected. TEST=unit_tests --gtest_filter=SpeechRecognizerTest.* BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55918

Patch Set 1 #

Total comments: 25

Patch Set 2 : Address review comments #

Total comments: 14

Patch Set 3 : Address joth and phajdan's comments #

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -0 lines) Patch
A chrome/browser/speech/speech_recognizer.h View 1 2 1 chunk +99 lines, -0 lines 0 comments Download
A chrome/browser/speech/speech_recognizer.cc View 1 2 1 chunk +180 lines, -0 lines 0 comments Download
A chrome/browser/speech/speech_recognizer_unittest.cc View 1 2 3 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Satish
10 years, 4 months ago (2010-08-11 10:11:16 UTC) #1
joth
LG - couple suggestions http://codereview.chromium.org/3124009/diff/1/2 File chrome/browser/speech/speech_recognizer.cc (right): http://codereview.chromium.org/3124009/diff/1/2#newcode41 chrome/browser/speech/speech_recognizer.cc:41: AudioManager::AUDIO_PCM_LINEAR, 1, AudioManager::kTelephoneSampleRate, 16, comment ...
10 years, 4 months ago (2010-08-11 11:30:40 UTC) #2
Satish
Thanks for the quick review, the comments were very helpful. Some replies below, and the ...
10 years, 4 months ago (2010-08-11 15:15:25 UTC) #3
Paweł Hajdan Jr.
Drive-by with some test nits. Please let me take another look before committing. http://codereview.chromium.org/3124009/diff/7001/8003 File ...
10 years, 4 months ago (2010-08-11 17:03:06 UTC) #4
Satish
http://codereview.chromium.org/3124009/diff/7001/8003 File chrome/browser/speech/speech_recognizer_unittest.cc (right): http://codereview.chromium.org/3124009/diff/7001/8003#newcode47 chrome/browser/speech/speech_recognizer_unittest.cc:47: result_received_ = false; On 2010/08/11 17:03:06, Paweł Hajdan Jr. ...
10 years, 4 months ago (2010-08-11 17:06:36 UTC) #5
joth
LG. Just one design question on whether there's a specific need to make callbacks from ...
10 years, 4 months ago (2010-08-12 13:27:11 UTC) #6
Paweł Hajdan Jr.
http://codereview.chromium.org/3124009/diff/7001/8003 File chrome/browser/speech/speech_recognizer_unittest.cc (right): http://codereview.chromium.org/3124009/diff/7001/8003#newcode47 chrome/browser/speech/speech_recognizer_unittest.cc:47: result_received_ = false; On 2010/08/11 17:06:37, Satish wrote: > ...
10 years, 4 months ago (2010-08-12 20:26:08 UTC) #7
Satish
10 years, 4 months ago (2010-08-12 20:34:18 UTC) #8
http://codereview.chromium.org/3124009/diff/7001/8003
File chrome/browser/speech/speech_recognizer_unittest.cc (right):

http://codereview.chromium.org/3124009/diff/7001/8003#newcode47
chrome/browser/speech/speech_recognizer_unittest.cc:47: result_received_ =
false;
On 2010/08/12 20:26:08, Paweł Hajdan Jr. wrote:
> On 2010/08/11 17:06:37, Satish wrote:
> > On 2010/08/11 17:03:06, Paweł Hajdan Jr. wrote:
> > > nit: Why not do the initializations in the ctor's initializer list?
> > 
> > Constructor gets invoked only once, Setup() gets invoked at the start of
each
> > test (5 tests in this file) and these variables need to be initialised for
> each
> > test
> 
> Not true. The test fixture is recreated for each individual test. Please refer
> to the gtest documentation.

You're correct, is it ok if I make this change in a future CL?

Powered by Google App Engine
This is Rietveld 408576698