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 Base class for Text-to-Speech engines that actually transform | 6 * @fileoverview Base class for Text-to-Speech engines that actually transform |
7 * text to speech. | 7 * text to speech. |
8 * | 8 * |
9 */ | 9 */ |
10 | 10 |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 413 |
414 | 414 |
415 /** | 415 /** |
416 * Flag indicating if the TTS is being debugged. | 416 * Flag indicating if the TTS is being debugged. |
417 * @type {boolean} | 417 * @type {boolean} |
418 */ | 418 */ |
419 cvox.AbstractTts.DEBUG = true; | 419 cvox.AbstractTts.DEBUG = true; |
420 | 420 |
421 | 421 |
422 /** | 422 /** |
423 * Speech queue mode that interrupts the current utterance. | |
424 * @type {number} | |
425 */ | |
426 cvox.AbstractTts.QUEUE_MODE_FLUSH = 0; | |
427 | |
428 | |
429 /** | |
430 * Speech queue mode that does not interrupt the current utterance. | |
431 * @type {number} | |
432 */ | |
433 cvox.AbstractTts.QUEUE_MODE_QUEUE = 1; | |
434 | |
435 | |
436 /** | |
437 * Speech queue mode that flushes all utterances of the same category | |
438 * (as set by properties['category']). | |
439 * @type {number} | |
440 */ | |
441 cvox.AbstractTts.QUEUE_MODE_CATEGORY_FLUSH = 2; | |
442 | |
443 | |
444 /** | |
445 * Character dictionary. These symbols are replaced with their human readable | 423 * Character dictionary. These symbols are replaced with their human readable |
446 * equivalents. This replacement only occurs for single character utterances. | 424 * equivalents. This replacement only occurs for single character utterances. |
447 * @type {Object.<string, string>} | 425 * @type {Object.<string, string>} |
448 */ | 426 */ |
449 cvox.AbstractTts.CHARACTER_DICTIONARY = { | 427 cvox.AbstractTts.CHARACTER_DICTIONARY = { |
450 ' ': 'space', | 428 ' ': 'space', |
451 '`': 'backtick', | 429 '`': 'backtick', |
452 '~': 'tilde', | 430 '~': 'tilde', |
453 '!': 'exclamation', | 431 '!': 'exclamation', |
454 '@': 'at', | 432 '@': 'at', |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 .format({'COUNT': count}) + ' '; | 585 .format({'COUNT': count}) + ' '; |
608 }; | 586 }; |
609 | 587 |
610 | 588 |
611 /** | 589 /** |
612 * @override | 590 * @override |
613 */ | 591 */ |
614 cvox.AbstractTts.prototype.getDefaultProperty = function(property) { | 592 cvox.AbstractTts.prototype.getDefaultProperty = function(property) { |
615 return this.propertyDefault[property]; | 593 return this.propertyDefault[property]; |
616 }; | 594 }; |
OLD | NEW |