Skip to content

Make your computer speak what you type using notepad

30/04/2017

I’ve just found a site that has applications coded in Notepad.  The applications are really fun to use.  I’d recommend that you check out this site.

https://errorcode401.blogspot.co.uk/2013/07/Make-your-computer-speak-what-you-ype-using-notepad.html

Create Application using notepad to make computer speak what you type

Here is one interesting code created by us to make your computer speak what you type.

Let’s Start.

Step 1 : Open your notepad. [start >> run >> Type “notepad” >> Enter]

Step 2 : Copy the following code in notepad then save it with .hta extension [e.g MSG-Speaker.hta]

<html><head><title>Message Speaker – ErrorCode 401</title><HTA:APPLICATION
APPLICATIONNAME=”Message Speaker – ErrorCode 401″
ID=”Mesage Speaker – ErrorCode 401″
VERSION=”1.0″
MAXIMIZEBUTTON=”no”
SCROLL=”no”/></head>
<style> td { color: Black; }
caption { color: Black; }

body { font-family: Arial; background-color: #388A9F; color: #808080; }
input { background-color: #202020; color: #808080; }
textarea { background-color: #22374B; color: #D6E1EC; font-style:bold; }
</style>

Sub Window_OnLoad
Dim width,height
width=470
height=400
self.ResizeTo width,height
End Sub

Function Listen
Dim message
message = tamsg.value
If (message = null) Then
X = MsgBox(“Enter your message”, 48, “Error Message”)
Else
Set sapi=CreateObject(“sapi.spvoice”)
sapi.Speak message
End If
End Function

<body bgcolor=”white”>
<span title=”Visit our blog for more http://www.errorcode401.blogspot.in”&gt; <marquee color=”white” bgcolor=”black” style=”font-family= Book Antiqua;”>This code is uploaded on <font color=”cyan”>http://www.errorcode401.blogspot.in</font></marquee&gt;
</span> <table align=”center” width=”400″> <caption style=”font-family:Book Antiqua; font-size:20;”><hr color=”black”><b>Message Speaker</b><hr color=”black”></caption>
<tr> <td align=”center”> <span title=”Enter your Full message here”><textarea id=”tamsg” cols=”50″ rows=”10″></textarea></span> </td> </tr>
<td align=”right” color=”black” style=”font-family: Book Antiqua; font-size:18;”> <hr color=”black”> <span title=”Click here to listen your message”>
<input style=”width: 130px; height:25px; color: white; background-color: #203040; font-family:Book Antiqua; font-size:15;” type=”button” Value=”Listen” id=”btnsp” onClick=”Listen()” onmouseover=”btnsp.style.background=’#102030′” onmouseout=”btnsp.style.background=’#203040′”> </span> </td> </tr> <tr>
<td align=”right”><hr color=”black”> <span title=”All rights reserved by Attract Tech” style=”font-size: 13px; font-family:Book Antiqua;”>&copy; 2013 Attract Tech – All rights reserved.</span> </td> </tr> </table> </body> </html>

Step 3 : Now Open that file by double click then you will see one window.

Write your in text-box which you want to listen then click on listen button.

Reference:

https://errorcode401.blogspot.co.uk/2013/07/Make-your-computer-speak-what-you-ype-using-notepad.html

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: