| OLD | NEW |
| 1 <p id="classSummary"> | 1 <p id="classSummary"> |
| 2 Use the <code>chrome.ttsEngine</code> module to | 2 Use the <code>chrome.ttsEngine</code> module to |
| 3 implement a text-to-speech (TTS) engine using an extension. If your | 3 implement a text-to-speech (TTS) engine using an extension. If your |
| 4 extension registers using this API, it will receive events containing | 4 extension registers using this API, it will receive events containing |
| 5 an utterance to be spoken and other parameters when any extension or packaged | 5 an utterance to be spoken and other parameters when any extension or packaged |
| 6 app uses the | 6 app uses the |
| 7 <a href="tts.html">tts</a> | 7 <a href="tts.html">tts</a> |
| 8 module to generate speech. Your extension can then use any available | 8 module to generate speech. Your extension can then use any available |
| 9 web technology to synthesize and output the speech, and send events back | 9 web technology to synthesize and output the speech, and send events back |
| 10 to the calling function to report the status. | 10 to the calling function to report the status. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 <b>Important:</b> | 142 <b>Important:</b> |
| 143 If your extension does not register listeners for both | 143 If your extension does not register listeners for both |
| 144 <code>onSpeak</code> and <code>onStop</code>, it will not intercept any | 144 <code>onSpeak</code> and <code>onStop</code>, it will not intercept any |
| 145 speech calls, regardless of what is in the manifest.</p> | 145 speech calls, regardless of what is in the manifest.</p> |
| 146 | 146 |
| 147 <p>The decision of whether or not to send a given speech request to an | 147 <p>The decision of whether or not to send a given speech request to an |
| 148 extension is based solely on whether the extension supports the given voice | 148 extension is based solely on whether the extension supports the given voice |
| 149 parameters in its manifest and has registered listeners | 149 parameters in its manifest and has registered listeners |
| 150 for <code>onSpeak</code> and <code>onStop</code>. In other words, | 150 for <code>onSpeak</code> and <code>onStop</code>. In other words, |
| 151 there's no way for an extension to receive a speech request and | 151 there's no way for an extension to receive a speech request and |
| 152 dynamically decide whether to handle it.</p> | 152 dynamically decide whether to handle it.</p> |
| OLD | NEW |