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

Side by Side Diff: content/public/browser/speech_recognizer.h

Issue 9663066: Refactoring of chrome speech recognition architecture (CL1.3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compilation issues on windows. Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 28 matching lines...) Expand all
39 const std::string& hardware_info, 39 const std::string& hardware_info,
40 const std::string& origin_url); 40 const std::string& origin_url);
41 41
42 virtual ~SpeechRecognizer() {} 42 virtual ~SpeechRecognizer() {}
43 43
44 // Starts audio recording and the recognition process. The same 44 // Starts audio recording and the recognition process. The same
45 // SpeechRecognizer instance can be used multiple times for speech recognition 45 // SpeechRecognizer instance can be used multiple times for speech recognition
46 // though each recognition request can be made only after the previous one 46 // though each recognition request can be made only after the previous one
47 // completes (i.e. after receiving 47 // completes (i.e. after receiving
48 // SpeechRecognitionEventListener::OnRecognitionEnd). 48 // SpeechRecognitionEventListener::OnRecognitionEnd).
49 virtual bool StartRecognition() = 0; 49 virtual void StartRecognition() = 0;
50 50
51 // Stops recording audio and cancels recognition. Any audio recorded so far 51 // Stops recording audio and cancels recognition. Any audio recorded so far
52 // gets discarded. 52 // gets discarded.
53 virtual void AbortRecognition() = 0; 53 virtual void AbortRecognition() = 0;
54 54
55 // Stops recording audio and finalizes recognition, possibly getting results. 55 // Stops recording audio and finalizes recognition, possibly getting results.
56 virtual void StopAudioCapture() = 0; 56 virtual void StopAudioCapture() = 0;
57 57
58 // Checks wether the recognizer is active, that is, either capturing audio 58 // Checks wether the recognizer is active, that is, either capturing audio
59 // or waiting for a result. 59 // or waiting for a result.
60 virtual bool IsActive() const = 0; 60 virtual bool IsActive() const = 0;
61 61
62 // Checks wether the recognizer is capturing audio. 62 // Checks wether the recognizer is capturing audio.
63 virtual bool IsCapturingAudio() const = 0; 63 virtual bool IsCapturingAudio() const = 0;
64 }; 64 };
65 65
66 } // namespace content 66 } // namespace content
67 67
68 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_ 68 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognition_manager_delegate.h ('k') | content/public/common/speech_recognition_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698