| Index: Source/modules/speech/SpeechRecognition.h
|
| diff --git a/Source/modules/speech/SpeechRecognition.h b/Source/modules/speech/SpeechRecognition.h
|
| index d39abd856b6718c3bd1dbaf225c5c172af13a02a..ac0c03bd79de21589f8940cf62d87fe8c3114970 100644
|
| --- a/Source/modules/speech/SpeechRecognition.h
|
| +++ b/Source/modules/speech/SpeechRecognition.h
|
| @@ -28,6 +28,7 @@
|
|
|
| #include "core/dom/ActiveDOMObject.h"
|
| #include "modules/EventTargetModules.h"
|
| +#include "modules/mediastream/MediaStreamTrack.h"
|
| #include "modules/speech/SpeechGrammarList.h"
|
| #include "modules/speech/SpeechRecognitionResult.h"
|
| #include "platform/heap/Handle.h"
|
| @@ -59,6 +60,8 @@ public:
|
| void setInterimResults(bool interimResults) { m_interimResults = interimResults; }
|
| unsigned long maxAlternatives() { return m_maxAlternatives; }
|
| void setMaxAlternatives(unsigned long maxAlternatives) { m_maxAlternatives = maxAlternatives; }
|
| + MediaStreamTrack* audioTrack() { return m_audioTrack; }
|
| + void setAudioTrack(MediaStreamTrack* audioTrack) { m_audioTrack = audioTrack; }
|
|
|
| // Callable by the user.
|
| void start(ExceptionState&);
|
| @@ -104,6 +107,7 @@ private:
|
| explicit SpeechRecognition(ExecutionContext*);
|
|
|
| Member<SpeechGrammarList> m_grammars;
|
| + Member<MediaStreamTrack> m_audioTrack;
|
| String m_lang;
|
| bool m_continuous;
|
| bool m_interimResults;
|
|
|