HTML5 Speech API: Difference between revisions

Jump to navigation Jump to search
Line 37: Line 37:
==== API Design -  ====
==== API Design -  ====


The API will introduce a new element &lt;tts&gt; that extends HTMLMediaElement. It will be similar to how the &lt;audio&gt; and&nbsp;and &lt;video&gt; tags are implemented.<br>A playback UI should allow the user to start, stop and disable text to speech. The current spoken word can be highlighted.<br>The developer should be able to specify the language, position, start/stop playback and handle errors programmatically. <br>The API should itself be independent of the underlying speech synthesizer. If speech synthesis is not supported, appropriate text should be displayed. <br>For speech synthesis on mac, i can use the NSSpeechSynthesizer class in their cocoa api. Windows could use its native speech SDK and linux has some open source speech engines. This hasn't been decided yet and i have to discuss this further with my mentor.
*The API will introduce a new element &lt;tts&gt; that extends HTMLMediaElement. It will be similar to how the &lt;audio&gt; and&nbsp;and &lt;video&gt; tags are implemented.<br>
*A playback UI should allow the user to start, stop and disable text to speech. The current spoken word can be highlighted.<br>
*The developer should be able to specify the language, position, start/stop playback and handle errors programmatically. <br>
*The API should itself be independent of the underlying speech synthesizer. If speech synthesis is not supported, appropriate text should be displayed. <br>
*What speech engines is yet to be decided.
Confirmed users
24

edits

Navigation menu