Confirmed users
24
edits
| Line 37: | Line 37: | ||
==== API Design - ==== | ==== API Design - ==== | ||
The API will introduce a new element <tts> that extends HTMLMediaElement. It will be similar to how the <audio> and and <video> 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> | *The API will introduce a new element <tts> that extends HTMLMediaElement. It will be similar to how the <audio> and and <video> 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. | |||