Index: chrome/browser/resources/access_chromevox/audio/common/abstract_tts_manager.js |
=================================================================== |
--- chrome/browser/resources/access_chromevox/audio/common/abstract_tts_manager.js (revision 0) |
+++ chrome/browser/resources/access_chromevox/audio/common/abstract_tts_manager.js (revision 0) |
@@ -0,0 +1,77 @@ |
+// Copyright (c) 2011 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. |
+ |
+/** |
+ * @fileoverview This is the base class responsible managing TTS engines. |
+ */ |
+ |
+goog.provide('cvox.AbstractTtsManager'); |
+ |
+goog.require('cvox.AbstractTts'); |
+ |
+/** |
+ * This is the base class responsible for spoken feedback. |
+ * |
+ * @constructor |
+ * @extends {cvox.AbstractTts} |
+ */ |
+cvox.AbstractTtsManager = function() { |
+ //Inherit AbstractTts |
+ cvox.AbstractTts.call(this); |
+}; |
+goog.inherits(cvox.AbstractTtsManager, cvox.AbstractTts); |
+ |
+/** |
+ * Switch to the next TTS engine and optionally announce its name. |
+ * |
+ * @param {boolean} announce If true, will announce the name of the |
+ * new TTS engine. |
+ */ |
+cvox.AbstractTtsManager.prototype.nextTtsEngine = function(announce) { |
+ if (this.logEnabled()) { |
+ this.log('[' + this.getName() + '] nextTtsEngine(' + announce + ')'); |
+ } |
+}; |
+ |
+/** |
+ * Increases a TTS speech property. |
+ * @param {string} property_name The name of the property to increase. |
+ */ |
+cvox.AbstractTtsManager.prototype.increaseProperty = function( |
+ property_name) { |
+ if (this.logEnabled()) { |
+ this.log('[' + this.getName() + '] increaseProperty(' + |
+ property_name + ')'); |
+ } |
+}; |
+ |
+/** |
+ * Decreases a TTS speech property. |
+ * @param {string} property_name The name of the property to decrease. |
+ */ |
+cvox.AbstractTtsManager.prototype.decreaseProperty = function( |
+ property_name) { |
+ if (this.logEnabled()) { |
+ this.log('[' + this.getName() + '] decreaseProperty(' + |
+ property_name + ')'); |
+ } |
+}; |
+ |
+/** |
+ * TTS rate property. |
+ * @type {string} |
+ */ |
+cvox.AbstractTtsManager.TTS_PROPERTY_RATE = 'Rate'; |
+ |
+/** |
+ * TTS pitch property. |
+ * @type {string} |
+ */ |
+cvox.AbstractTtsManager.TTS_PROPERTY_PITCH = 'Pitch'; |
+ |
+/** |
+ * TTS volume property. |
+ * @type {string} |
+ */ |
+cvox.AbstractTtsManager.TTS_PROPERTY_VOLUME = 'Volume'; |
Property changes on: chrome/browser/resources/access_chromevox/audio/common/abstract_tts_manager.js |
___________________________________________________________________ |
Added: svn:executable |
+ * |
Added: svn:eol-style |
+ LF |