Chromium Code Reviews| 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 uses the |
|
Mihai Parparita -not on Chrome
2012/09/16 04:55:02
Platform apps can use the tts module, this referen
| |
| 6 app uses the | |
| 7 <a href="tts.html">tts</a> | 6 <a href="tts.html">tts</a> |
| 8 module to generate speech. Your extension can then use any available | 7 module to generate speech. Your extension can then use any available |
| 9 web technology to synthesize and output the speech, and send events back | 8 web technology to synthesize and output the speech, and send events back |
| 10 to the calling function to report the status. | 9 to the calling function to report the status. |
| 11 </p> | 10 </p> |
| 12 | 11 |
| 13 | 12 |
| 14 <h2 id="overview">Overview</h2> | 13 <h2 id="overview">Overview</h2> |
| 15 | 14 |
| 16 <p>An extension can register itself as a speech engine. By doing so, it | 15 <p>An extension can register itself as a speech engine. By doing so, it |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 If your extension does not register listeners for both | 142 If your extension does not register listeners for both |
| 144 <code>onSpeak</code> and <code>onStop</code>, it will not intercept any | 143 <code>onSpeak</code> and <code>onStop</code>, it will not intercept any |
| 145 speech calls, regardless of what is in the manifest.</p> | 144 speech calls, regardless of what is in the manifest.</p> |
| 146 | 145 |
| 147 <p>The decision of whether or not to send a given speech request to an | 146 <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 | 147 extension is based solely on whether the extension supports the given voice |
| 149 parameters in its manifest and has registered listeners | 148 parameters in its manifest and has registered listeners |
| 150 for <code>onSpeak</code> and <code>onStop</code>. In other words, | 149 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 | 150 there's no way for an extension to receive a speech request and |
| 152 dynamically decide whether to handle it.</p> | 151 dynamically decide whether to handle it.</p> |
| OLD | NEW |