tts_base.js revision cedac228d2dd51db4b79ea1e72c7f249408ee061
1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5/** 6 * @fileoverview A base class for Tts living on Chrome platforms. 7 * 8 */ 9 10goog.provide('cvox.ChromeTtsBase'); 11 12goog.require('cvox.AbstractTts'); 13 14 15/** 16 * @constructor 17 * @extends {cvox.AbstractTts} 18 */ 19cvox.ChromeTtsBase = function() { 20 goog.base(this); 21 this.propertyDefault['pitch'] = 1; 22 this.propertyMin['pitch'] = 0.2; 23 this.propertyMax['pitch'] = 2.0; 24 25 this.propertyDefault['rate'] = 1; 26 this.propertyMin['rate'] = 0.2; 27 this.propertyMax['rate'] = 5.0; 28 29 this.propertyDefault['volume'] = 1; 30 this.propertyMin['volume'] = 0.2; 31 this.propertyMax['volume'] = 1.0; 32}; 33goog.inherits(cvox.ChromeTtsBase, cvox.AbstractTts); 34