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

Unified Diff: Source/modules/speech/SpeechRecognitionController.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: s/WebRTC/MediaStream/ Created 6 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
« no previous file with comments | « Source/modules/speech/SpeechRecognitionClient.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechRecognitionController.h
diff --git a/Source/modules/speech/SpeechRecognitionController.h b/Source/modules/speech/SpeechRecognitionController.h
index 843d065f8ae673cff9171ddf449978fc59238a50..07a1e6eec8d67f87256bcc3c73081180cbaa6ba7 100644
--- a/Source/modules/speech/SpeechRecognitionController.h
+++ b/Source/modules/speech/SpeechRecognitionController.h
@@ -32,14 +32,16 @@
namespace blink {
+class MediaStreamTrack;
+
class SpeechRecognitionController FINAL : public NoBaseWillBeGarbageCollectedFinalized<SpeechRecognitionController>, public WillBeHeapSupplement<Page> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SpeechRecognitionController);
public:
virtual ~SpeechRecognitionController();
- void start(SpeechRecognition* recognition, const SpeechGrammarList* grammars, const String& lang, bool continuous, bool interimResults, unsigned long maxAlternatives)
+ void start(SpeechRecognition* recognition, const SpeechGrammarList* grammars, const String& lang, bool continuous, bool interimResults, unsigned long maxAlternatives, MediaStreamTrack* audioTrack)
{
- m_client->start(recognition, grammars, lang, continuous, interimResults, maxAlternatives);
+ m_client->start(recognition, grammars, lang, continuous, interimResults, maxAlternatives, audioTrack);
}
void stop(SpeechRecognition* recognition) { m_client->stop(recognition); }
« no previous file with comments | « Source/modules/speech/SpeechRecognitionClient.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698