This example shows how to setup a Play button that speaks pre-determined text.
This is example code to add anywhere in a page where you want the Play button to appear.
1 2 |
<button onclick="responsiveVoice.speak('The Internet is a series of tubes!');" type="button" value="Play">Play</button> |
Keywords: play button, click for text to speech