Make Your Computer Speak Using Notepad
Hello everyone, hope you are doing great.
In this tutorial, you will learn how to create a simple Text-to-Speech script using Notepad. With this trick, your computer can speak any text you enter using the built-in voice engine available in Microsoft Windows.
The best part is that this method works on most Windows operating systems and does not require any programming experience.
Step 1: Open Notepad
Open Notepad on your computer and copy the following code:
Dim message, sapi
message = InputBox("What would you like me to say?","Speak to Me")
Set sapi = CreateObject("sapi.spvoice")
sapi.Speak message
Step 2: Save the File
Save the file on your desktop with the name:
speak.vbs
While saving, select All Files in the “Save as type” option to ensure the file is saved correctly with the .vbs extension.
Step 3: Run the Script
Locate the speak.vbs file on your desktop and double-click it.
A small input box will appear. Type any message you want your computer to speak and click OK. Your computer will instantly read the text aloud.
How It Works
This script uses the Microsoft Speech API (SAPI), a built-in Windows feature that converts text into spoken audio.
Final Words
This is a simple yet interesting Windows trick that demonstrates how powerful built-in scripting features can be. It is also a great beginner-friendly example for anyone interested in learning basic automation using VBScript.
Hope you enjoyed this tutorial.
Comments
Post a Comment