OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview Defines a Tts interface. | 6 * @fileoverview Defines a Tts interface. |
7 * | 7 * |
8 * All TTS engines in ChromeVox conform to the this interface. | 8 * All TTS engines in ChromeVox conform to the this interface. |
9 * | 9 * |
10 */ | 10 */ |
11 | 11 |
| 12 goog.provide('cvox.TtsCapturingEventListener'); |
| 13 goog.provide('cvox.TtsCategory'); |
12 goog.provide('cvox.TtsInterface'); | 14 goog.provide('cvox.TtsInterface'); |
13 goog.provide('cvox.TtsCapturingEventListener'); | 15 |
| 16 /** |
| 17 * Categories for a speech utterance. This can be used with the |
| 18 * CATEGORY_FLUSH queue mode, which flushes all utterances from a given |
| 19 * category but not other utterances. |
| 20 * |
| 21 * NAV: speech related to explicit navigation, or focus changing. |
| 22 * |
| 23 * @enum {string} |
| 24 */ |
| 25 cvox.TtsCategory = { |
| 26 LIVE: 'live', |
| 27 NAV: 'nav' |
| 28 }; |
14 | 29 |
15 /** | 30 /** |
16 * @interface | 31 * @interface |
17 * An interface for clients who want to get notified when an utterance | 32 * An interface for clients who want to get notified when an utterance |
18 * starts or ends from any source. | 33 * starts or ends from any source. |
19 */ | 34 */ |
20 cvox.TtsCapturingEventListener = function() { }; | 35 cvox.TtsCapturingEventListener = function() { }; |
21 | 36 |
22 /** | 37 /** |
23 * Called when any utterance starts. | 38 * Called when any utterance starts. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 cvox.TtsInterface.prototype.increaseOrDecreaseProperty = | 89 cvox.TtsInterface.prototype.increaseOrDecreaseProperty = |
75 function(propertyName, increase) { }; | 90 function(propertyName, increase) { }; |
76 | 91 |
77 | 92 |
78 /** | 93 /** |
79 * Returns the default properties of the first tts that has default properties. | 94 * Returns the default properties of the first tts that has default properties. |
80 * @param {string} property Name of property. | 95 * @param {string} property Name of property. |
81 * @return {?number} The default value. | 96 * @return {?number} The default value. |
82 */ | 97 */ |
83 cvox.TtsInterface.prototype.getDefaultProperty = function(property) { }; | 98 cvox.TtsInterface.prototype.getDefaultProperty = function(property) { }; |
OLD | NEW |