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

Unified Diff: Source/modules/speech/SpeechRecognition.h

Issue 448163003: Support for providing media stream audio track to speech recognition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename methods and remove clearAudioTrack from inner layers Created 6 years, 4 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: 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;
« no previous file with comments | « no previous file | Source/modules/speech/SpeechRecognition.cpp » ('j') | Source/modules/speech/SpeechRecognition.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698