How to create text to speech Convert using HTML and JAVASCRIPT
<html>
<head>
<title>Text To Speech</title>
<script>
function speakLoud() {
var Obj = new ActiveXObject("Sapi.SpVoice");
var string = document.getElementById("t1").value;
alert("You have entered" + string);
Obj.Speak(string, 1);
}
</script>
<body>
<input type="text" id="t1" placeholder="Enter you text" />
<input type="button" id="bt1" name="Speek " value="Speak " onclick="speakLoud()" />
</body>
</html>
<head>
<title>Text To Speech</title>
<script>
function speakLoud() {
var Obj = new ActiveXObject("Sapi.SpVoice");
var string = document.getElementById("t1").value;
alert("You have entered" + string);
Obj.Speak(string, 1);
}
</script>
<body>
<input type="text" id="t1" placeholder="Enter you text" />
<input type="button" id="bt1" name="Speek " value="Speak " onclick="speakLoud()" />
</body>
</html>
Comments
Post a Comment