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

Unified Diff: ios/chrome/browser/voice/text_to_speech_parser.h

Issue 2449593002: [ios] Adds support for parsing Text-to-Speech search results. (Closed)
Patch Set: Disabled Created 4 years, 2 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: ios/chrome/browser/voice/text_to_speech_parser.h
diff --git a/ios/chrome/browser/voice/text_to_speech_parser.h b/ios/chrome/browser/voice/text_to_speech_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..c0e0294153c4dba3112772369ab96a2dbd2e7268
--- /dev/null
+++ b/ios/chrome/browser/voice/text_to_speech_parser.h
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
+#define IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
+
+#import <Foundation/Foundation.h>
+
+namespace web {
+class WebState;
+}
+
+// Extracts TTS audio data from |webState|'s HTML using the start and end tags
+// for Google Voice Search result pages.
+typedef void (^TextToSpeechCompletion)(NSData*);
+void ExtractVoiceSearchAudioDataFromWebState(web::WebState* webState,
+ TextToSpeechCompletion completion);
+
+#endif // IOS_CHROME_BROWSER_VOICE_TEXT_TO_SPEECH_PARSER_H_
« no previous file with comments | « ios/chrome/browser/voice/text_to_speech_listener_unittest.mm ('k') | ios/chrome/browser/voice/text_to_speech_parser.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698