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

Unified Diff: chrome/browser/speech/tts_platform.h

Issue 102263005: Automatically trigger installation of high-quality speech synthesis extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix debug assertion Created 7 years 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 | « chrome/browser/speech/tts_extension_loader_chromeos.cc ('k') | chrome/browser/speech/tts_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/tts_platform.h
diff --git a/chrome/browser/speech/tts_platform.h b/chrome/browser/speech/tts_platform.h
index 4b57fd49e46bf735b14ff4139446e22096cb9a83..bce9693604f3273f64d6c13009f56d6bb15a7ec3 100644
--- a/chrome/browser/speech/tts_platform.h
+++ b/chrome/browser/speech/tts_platform.h
@@ -18,13 +18,6 @@ class TtsPlatformImpl {
// Returns true if this platform implementation is supported and available.
virtual bool PlatformImplAvailable() = 0;
- // Some platforms may provide a built-in TTS extension. Returns true
- // if the extension was not previously loaded and is now loading, and
- // false if it's already loaded or if there's no extension to load.
- // Will call TtsController::RetrySpeakingQueuedUtterances when
- // the extension finishes loading.
- virtual bool LoadBuiltInTtsExtension(Profile* profile);
-
// Speak the given utterance with the given parameters if possible,
// and return true on success. Utterance will always be nonempty.
// If rate, pitch, or volume are -1.0, they will be ignored.
@@ -56,6 +49,11 @@ class TtsPlatformImpl {
// Resume speaking the current utterance, if it was paused.
virtual void Resume() = 0;
+ // Allows the platform to monitor speech commands and the voices used
+ // for each one.
+ virtual void WillSpeakUtteranceWithVoice(const Utterance* utterance,
+ const VoiceData& voice_data);
+
virtual std::string error();
virtual void clear_error();
virtual void set_error(const std::string& error);
« no previous file with comments | « chrome/browser/speech/tts_extension_loader_chromeos.cc ('k') | chrome/browser/speech/tts_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698