| Index: public/web/WebSpeechRecognizer.h
|
| diff --git a/public/web/WebSpeechRecognizer.h b/public/web/WebSpeechRecognizer.h
|
| index 91ec0579a2ab5e0d445150c1b232340e5c16fe61..b79172c5c1fccc5dc532720f866606bcee6905db 100644
|
| --- a/public/web/WebSpeechRecognizer.h
|
| +++ b/public/web/WebSpeechRecognizer.h
|
| @@ -31,6 +31,7 @@
|
|
|
| namespace blink {
|
|
|
| +class WebMediaStreamTrack;
|
| class WebSpeechGrammar;
|
| class WebSpeechRecognitionParams;
|
| class WebSpeechRecognizerClient;
|
| @@ -38,6 +39,12 @@ class WebSpeechRecognizerClient;
|
| // Interface for speech recognition, to be implemented by the embedder.
|
| class WebSpeechRecognizer {
|
| public:
|
| + // Attach an audio track for recognition instead of default input
|
| + virtual void attach(const WebSpeechRecognitionHandle&, const WebMediaStreamTrack& audioTrack, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
|
| +
|
| + // Detach the audiotrack (if attached) for recognition - fall back to default input
|
| + virtual void detach(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
|
| +
|
| // Start speech recognition for the specified handle using the specified parameters. Notifications on progress, results, and errors will be sent via the client.
|
| virtual void start(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionParams&, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
|
|
|
|
|