How to Make Your Computer Talk?
All the methods here (except the last one) make use of a simple scripting language called Visual Basic aka VB.
Don’t worry!
You don’t have to learn the language from scratch as I am going to share the exact script with you. The only step then remains copy-paste.
Also Read: – Best iOS Emulator for Windows to run iOS apps
How to Make Your Computer Talk Back to You? {Simple Message}
I am going to share a simple script with you to enable your computer’s tongue to say ‘Hello Master.’
Unlike most of the other programming language, you don’t need a software compiler for VB scripting. The in-house notepad is enough here.
Just follow the steps given below to hear hello from your computer.
Step 1: Open notepad. If you don’t know where you can find it, just hit the Start button and search for the same. (You can also follow Start>> Programs>> Accessories>> Notepad on earlier Windows versions).
Step 2: Now, you have to enter a short code snippet into the notepad window. Just follow the code given below and paste it there.
dim speechobjectset speechobject=createobject(“sapi.spvoice”)speechobject.speak “Hello Master”
Step 3: In case you want to change the speaking phrase, just replace hello master in the code. And, press Ctrl+ S simultaneously or follow File>> Save to get save dialogue box.
Give a name with .vbs extension (for example, hello.vbs). And, hit Enter.
There you go! You can open the file (not an ordinary text file as you can see in the image) anytime to hear your computer say ‘Hello Master’ or the phrase you typed.
How to Make Your Computer Say the Time?
What if you want to hear the time from your computer? The above trick does not work as the time keeps on changing.
In such a situation, you can use the script given below. All the other steps are the same. You only have to replace the above script with the one given below.
Set Sapi = Wscript.CreateObject(“SAPI.SpVoice”)Sapi.speak “The current time is”if hour(time) > 12 thenSapi.speak hour(time)-12elseif hour(time) = 0 thenSapi.speak “12”elseSapi.speak hour(time)end ifend ifif minute(time) < 10 thenSapi.speak “o”if minute(time) < 1 thenSapi.speak “clock”elseSapi.speak minute(time)end ifelseSapi.speak minute(time)end ifif hour(time) > 12 thenSapi.speak “P.M.”elseif hour(time) = 0 thenif minute(time) = 0 thenSapi.speak “Midnight”elseSapi.speak “A.M.”end ifelseif hour(time) = 12 thenif minute(time) = 0 thenSapi.speak “Noon”elseSapi.speak “P.M.”end ifelseSapi.speak “A.M.”end ifend ifend if
Don’t forget to save the file with a .vbs extension. Or else, you can’t hear anything.
How to Make Your Computer Talk what You Type?
Say you need a text-to-speech solution. Being a Windows user, you can create a small app with the help of a Visual Basic script.
Just open notepad and paste the following script into it. Don’t forget to save it with .vbs extension here too.
Dim message, sapimessage=InputBox(“What do you want me to talk?”,”I talk what you type.”)Set sapi=CreateObject(“sapi.spvoice”)sapi.Speak message
Now, open the file you saved.
How to Make Your Computer Talk on Startup?
Let’s say you want your computer to greet you on every startup. Then, what do you do? You can use the script I have prepared for you.
Along with the greeting, it will say time as well.
Set Sapi = Wscript.CreateObject(“SAPI.SpVoice”)dim strif hour(time) < 12 thenSapi.speak “Good Morning Master”elseif hour(time) > 12 thenif hour(time) > 16 thenSapi.speak “Good evening Master”elseSapi.speak “Good afternoon Master”end ifend ifend ifSapi.speak “The time now is”if hour(time) > 12 thenSapi.speak hour(time)-12elseif hour(time) = 0 thenSapi.speak “12”elseSapi.speak hour(time)end ifend ifif minute(time) < 10 thenSapi.speak “o”if minute(time) < 1 thenSapi.speak “clock”elseSapi.speak minute(time)end ifelseSapi.speak minute(time)end ifif hour(time) > 12 thenSapi.speak “P.M.”elseif hour(time) = 0 thenif minute(time) = 0 thenSapi.speak “Midnight”elseSapi.speak “A.M.”end ifelseif hour(time) = 12 thenif minute(time) = 0 thenSapi.speak “Noon”elseSapi.speak “P.M.”end ifelseSapi.speak “A.M.”end ifend ifend if
Save the file with .vbs extension just like you in all the processes above.
Now that you have created the script, the next job is to activate it on startup. You can do the same by following the steps below.
Step 1: Copy the file using Ctrl+ C. And, go to Start>> All Programs>> Startup.
Step 2: You will see a folder there. Paste the copied VBS file there without any hesitation.
There you go! Restart the computer and you will hear the greeting along with current time.
In case you use Windows 10, chances are you can’t find Startup folder. Then, you need to open File Explorer and enterC:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup into the location bar.
That’s all! You will get Startup folder now. Paste the VBS file here.
Also Read:- Best Free Movie Streaming Sites For Computer
How to Make Your Computer Talk on a Mac?
I recommend using a specific tool if you are using a Mac machine.
You can use the free app called eSpeak as it has own voice engine to entice you up in case you are bored with OS’s default engine.
Wrapping Up
Now you know how to make your computer talk in notepad. I chose Notepad because it comes preloaded with every Windows PC.
Moreover, you can use Narrator tool as well.
I know there are dedicated speaking apps available on the market. But for fun purposes, the above methods are enough.
What are you waiting for? Just make your computer a Jarvis now.
Don’t forget to share this trick with all your friends (of course after making them jealous of you).
No comments:
Post a Comment