OLD | NEW |
1 <table class="intro"> | |
2 <tr> | |
3 <th scope="col"></th> | |
4 <th scope="col"></th> | |
5 </tr> | |
6 <tr> | |
7 <td><strong>Description:</strong></td> | |
8 <td>Use the <code>chrome.tts</code> module to play synthesized | |
9 text-to-speech (TTS). | |
10 See also the related | |
11 <a href="http://developer.chrome.com/extensions/ttsEngine.html">ttsEngine</a
> | |
12 module, which allows an extension to implement a speech engine.</td> | |
13 </tr> | |
14 <tr> | |
15 <td><strong>Availability:</strong></td> | |
16 <td>Google Chrome 14</td> | |
17 </tr> | |
18 <tr> | |
19 <td><strong>Permissions:</strong></td> | |
20 <td><code>"tts"</code></td> | |
21 </tr> | |
22 <tr> | |
23 <td><strong>Learn more:</strong></td> | |
24 <td><a href="https://developers.google.com/live/shows/7320022-7001/">Chrome
Office Hours: Text to Speech API</a></td> | |
25 </tr> | |
26 </table> | |
27 | |
28 <p id="classSummary"> | 1 <p id="classSummary"> |
29 | 2 |
30 </p> | 3 </p> |
31 | 4 |
32 | 5 |
33 <h2 id="overview">Overview</h2> | 6 <h2 id="overview">Overview</h2> |
34 | 7 |
35 <p>Chrome provides native support for speech on Windows (using SAPI | 8 <p>Chrome provides native support for speech on Windows (using SAPI |
36 5), Mac OS X, and Chrome OS, using speech synthesis capabilities | 9 5), Mac OS X, and Chrome OS, using speech synthesis capabilities |
37 provided by the operating system. On all platforms, the user can | 10 provided by the operating system. On all platforms, the user can |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 function(voices) { | 169 function(voices) { |
197 for (var i = 0; i < voices.length; i++) { | 170 for (var i = 0; i < voices.length; i++) { |
198 console.log('Voice ' + i + ':'); | 171 console.log('Voice ' + i + ':'); |
199 console.log(' name: ' + voices[i].voiceName); | 172 console.log(' name: ' + voices[i].voiceName); |
200 console.log(' lang: ' + voices[i].lang); | 173 console.log(' lang: ' + voices[i].lang); |
201 console.log(' gender: ' + voices[i].gender); | 174 console.log(' gender: ' + voices[i].gender); |
202 console.log(' extension id: ' + voices[i].extensionId); | 175 console.log(' extension id: ' + voices[i].extensionId); |
203 console.log(' event types: ' + voices[i].eventTypes); | 176 console.log(' event types: ' + voices[i].eventTypes); |
204 } | 177 } |
205 });</pre> | 178 });</pre> |
OLD | NEW |