2 * Copyright (c) 2012, Intel Corporation.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
9 var mySpeechObj = tizen.speech;
11 $(document).ready(function()
13 $('#speakButton').click(function() {
15 var text = $('#inputArea').val();
19 mySpeechObj.vocalizeString(text);
22 $('#inputArea').val("");
25 $('#inputArea').keyup(function(event) {
26 if (event.keyCode === 13) {
27 $('#speakButton').click();