| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 The class to Manage both offline / online speech recognition. | 6 * @fileoverview The class to Manage both offline / online speech recognition. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 <include src="plugin_manager.js"/> | 9 <include src="plugin_manager.js"> |
| 10 <include src="audio_manager.js"/> | 10 <include src="audio_manager.js"> |
| 11 <include src="speech_recognition_manager.js"/> | 11 <include src="speech_recognition_manager.js"> |
| 12 | 12 |
| 13 cr.define('speech', function() { | 13 cr.define('speech', function() { |
| 14 'use strict'; | 14 'use strict'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * The state of speech recognition. | 17 * The state of speech recognition. |
| 18 * | 18 * |
| 19 * @enum {string} | 19 * @enum {string} |
| 20 */ | 20 */ |
| 21 var SpeechState = { | 21 var SpeechState = { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 if (this.audioManager_.state == speech.AudioState.STOPPED) | 303 if (this.audioManager_.state == speech.AudioState.STOPPED) |
| 304 this.audioManager_.start(); | 304 this.audioManager_.start(); |
| 305 this.speechRecognitionManager_.start(); | 305 this.speechRecognitionManager_.start(); |
| 306 } | 306 } |
| 307 }; | 307 }; |
| 308 | 308 |
| 309 return { | 309 return { |
| 310 SpeechManager: SpeechManager | 310 SpeechManager: SpeechManager |
| 311 }; | 311 }; |
| 312 }); | 312 }); |
| OLD | NEW |