How to Make a Text-to-speech Program (Windows)

by Future Software in Circuits > Microsoft

5 Views, 0 Favorites, 0 Comments

How to Make a Text-to-speech Program (Windows)

Screenshot (17).png
Screenshot (18).png

In this tutorial, you will learn how to make a program that will speak whatever text you put into the box! Made with the Visual Basic coding language, this program will easily be your best read-aloud helper!

Make the File

Screenshot (19).png
Screenshot (20).png
Screenshot (21).png
Screenshot (22).png

To start, open File Explorer, and select View > Show > File Name Extention. Then choose View > Details. Then create a new text file in the location of your choice, and rename it to a name. When renaming it, use the > arrow to go over to the .txt intention and replace it with .vbs. If your file was named file then it should look like this: file.vbs

When you rename it a message will come up saying that if you change the file name extension the file may become unusable. Click yes. Now, right-click on the file and click "Edit In Notepad." Notepad will open, and in notepad, paste in the following code:

Dim Message, Speak

Message=InputBox("Enter text","Speak")

Set Speak=CreateObject("sapi.spvoice")

Speak.Speak Message

Now save the file in Notepad, and open it. You now have a Text-to-speech program!


Hope you enjoyed it!

Made by Future Software Development Group


Our YouTube channel: https://www.youtube.com/channel/UCSeRNeR8Nq9zffVffkc3UMw

Our GitHub Repository: https://github.com/furure-software/Future-Software-Database

Our Subredit: https://www.reddit.com/r/Future_Software/

Our Discord server: https://discord.gg/QuAUeBJAE4

Our Roblox profile: https://www.roblox.com/users/2682987485/profile