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

Unified Diff: chrome/browser/speech/endpointer/endpointer.h

Issue 3341020: Speech input: Do environment estimation and detect the no-speech case. (Closed)
Patch Set: . Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/speech/endpointer/endpointer.h
diff --git a/chrome/browser/speech/endpointer/endpointer.h b/chrome/browser/speech/endpointer/endpointer.h
index 79b316d0283a28a23f743c1853c49dce3f282bdd..e83aed50f9c09a2accf45c821ca6142d92da84f5 100644
--- a/chrome/browser/speech/endpointer/endpointer.h
+++ b/chrome/browser/speech/endpointer/endpointer.h
@@ -65,6 +65,16 @@ class Endpointer {
// Get the status of the endpointer.
EpStatus Status(int64 *time_us);
+ // Returns true if the endpointer detected reasonable audio levels above
+ // background noise which could be user speech, false if not.
+ bool DidStartReceivingSpeech() const {
+ return speech_previously_detected_;
+ }
+
+ bool IsEstimatingEnvironment() const {
+ return energy_endpointer_.estimating_environment();
+ }
+
void set_speech_input_complete_silence_length(int64 time_us) {
speech_input_complete_silence_length_us_ = time_us;
}
« no previous file with comments | « no previous file | chrome/browser/speech/endpointer/energy_endpointer.h » ('j') | chrome/browser/speech/speech_input_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698