Create a simple Text to Speech converter with Notepad/Notepad++
Dim message, sapi
message=InputBox("What do you want me to say?","Text to Speech")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message
Notepad and Notepad++ are most commonly used text editors. And there some really simple yet amazing things you can do with these tools.
Here we will be creating a simple text to speech converter on using notepad, without adding any additional plugin or software, and its offline.
This also be fun for your children and even help you in teaching them something, if you use it right.
Open notepad or notepad++, whichever text editor you like to use.
Copy and Paste below code in editor.
Dim message, sapi
message=InputBox("What do you want me to say?","Text to Speech")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message
Now, save this text file with any name, but only with .vbs extension, for example you can save as TextToSpeech.vbs
Close notepad.
When you double click on file, it will open a message popup like below with a text field.
Just type-in the text and hit Enter key or Click on OK button in popup.
Make sure the volume on your PC/Laptop are at correct levels. 😃
Now you can use your creativity to extend this and make a good use of it. 👍
If you like this post, share it on social media and subscribe to our blog.
If you also have some tips and tricks, feel free to share with us on our Contact Us page, and we will post them here on this blog.
Do you know what is the Best way to remove PDF password offline without any new paid tools ?
Comments
Post a Comment