Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Text to Speech</title>
- <script>
- var droid = new Android();
- var speak = function() {
- droid.postEvent("say", document.getElementById("say").value);
- }
- </script>
- </head>
- <body>
- <form onsubmit="speak(); return false;">
- <label for="say">What would you like to say?</label>
- <input type="text" id="say" />
- <input type="submit" value="Speak" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement