This post will teach you how convert the input text to speech using Microsoft’s inbuilt speech software by importing it using notepad. This is a really simple notepad trick. Its pretty fun.
How To Convert Text Into Audio Using Notepad:
1: Open Notepad. You can do this by searching for Notepad in the windows search
Or Press Win+R and type Notepad and Press Enter.
2: Now, Copy following program and paste it in Notepad–
Dim message, sapi message = InputBox(“A Best Text to Audio converter”+vbcrlf+”From – https://hexcode.in”,”Text to Audio converter”) Set sapi = CreateObject(“sapi.spvoice”) sapi.Speak message
3: Now lets save the code we entered above. The code has to be saved in .vbsformat rather than standard .txt format.
4:Now navigate yourself to the location where the code is stored. in my case it was stored on the desktop so i will just go to the desktop and check for it. You can see that the file we saved was in the Visual Studio Script ( vbs ) format.
5: Now just double click on the saved file and Enter the text you want to hear in the text box. The moment you click OK , You can hear the text you entered as Audio.