| 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 Dummy implementation of TTS for testing. | 6 * @fileoverview Dummy implementation of TTS for testing. |
| 7 * | 7 * |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 goog.provide('cvox.TestTts'); | 10 goog.provide('cvox.TestTts'); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 cvox.TestTts.prototype.getUtteranceList = function() { | 89 cvox.TestTts.prototype.getUtteranceList = function() { |
| 90 var result = []; | 90 var result = []; |
| 91 for (var i = 0; i < this.utterances_.length; i++) { | 91 for (var i = 0; i < this.utterances_.length; i++) { |
| 92 result.push(this.utterances_[i].text); | 92 result.push(this.utterances_[i].text); |
| 93 } | 93 } |
| 94 return result; | 94 return result; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 /** | 97 /** |
| 98 * Return a list of strings of what was spoken by tts.speak(). | 98 * Return a list of strings of what was spoken by tts.speak(). |
| 99 * @return {Array.<{text: string, queueMode: number}>} | 99 * @return {Array.<{text: string, queueMode: cvox.QueueMode}>} |
| 100 * A list of info about all utterances spoken since | 100 * A list of info about all utterances spoken since |
| 101 * initialization or the last call to clearUtterances. | 101 * initialization or the last call to clearUtterances. |
| 102 */ | 102 */ |
| 103 cvox.TestTts.prototype.getUtteranceInfoList = function() { | 103 cvox.TestTts.prototype.getUtteranceInfoList = function() { |
| 104 return this.utterances_; | 104 return this.utterances_; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 /** @override */ | 107 /** @override */ |
| 108 cvox.HostFactory.ttsConstructor = cvox.TestTts; | 108 cvox.HostFactory.ttsConstructor = cvox.TestTts; |
| OLD | NEW |