diff options
| author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 18:38:36 +0000 |
|---|---|---|
| committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-01 18:38:36 +0000 |
| commit | 3b283d6e8c6285efde6a1a34273a3bdb9061bd44 (patch) | |
| tree | 9c221cc4d11dacf4f20e9c05287fde698d6721c6 /chrome/browser/speech/speech_input_bubble_controller.h | |
| parent | 229fa74de71e0771f734cc788063515da62f30b4 (diff) | |
| download | chromium_src-3b283d6e8c6285efde6a1a34273a3bdb9061bd44.zip chromium_src-3b283d6e8c6285efde6a1a34273a3bdb9061bd44.tar.gz chromium_src-3b283d6e8c6285efde6a1a34273a3bdb9061bd44.tar.bz2 | |
Add a noise indicator to the speech bubble volume indicator.
The noise indicator is drawn as a light blue area at the beginning and if there
was clipping that is denoted with a red area at the end of the meter. The noise
level comes from the endpointer -> SpeechRecognizer -> SpeechInputBubbleController -> SpeechInputBubble
hence a bunch of volume setting methods are updated with the new parameter.
I have also added a new utility method to SpeechInputManager to invoke the platform
provided microphone settings UI, this will be used in the next CL which contains
windows, mac and linux specific UI changes.
BUG=69886
TEST=manual, invoke speech input and check the bubble volume indicator to see background noise and clipping.
Review URL: http://codereview.chromium.org/6597071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76395 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/speech/speech_input_bubble_controller.h')
| -rw-r--r-- | chrome/browser/speech/speech_input_bubble_controller.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/speech/speech_input_bubble_controller.h b/chrome/browser/speech/speech_input_bubble_controller.h index 04c92b5..cdfe5c3 100644 --- a/chrome/browser/speech/speech_input_bubble_controller.h +++ b/chrome/browser/speech/speech_input_bubble_controller.h @@ -68,7 +68,7 @@ class SpeechInputBubbleController void SetBubbleMessage(int caller_id, const string16& text); // Updates the current captured audio volume displayed on screen. - void SetBubbleInputVolume(int caller_id, float volume); + void SetBubbleInputVolume(int caller_id, float volume, float noise_volume); void CloseBubble(int caller_id); @@ -102,7 +102,8 @@ class SpeechInputBubbleController void ProcessRequestInUiThread(int caller_id, RequestType type, const string16& text, - float volume); + float volume, + float noise_volume); // Called whenever a bubble was added to or removed from the list. If the // bubble was being added, this method registers for close notifications with |
