Friends ! Now you can create your own text to speech engine!
What you need ?
1. A Notepad
2. Audio output device to listen to the result.
What you need to do ?
1. Open Notepad.
2. Copy paste the code i have given below
4. Now open the file by direct double clicking it.
5. Type what you want to hear in the text box that appear.
6. Click OK.
Your a mega mind now!!!
How it works ?
What you need ?
1. A Notepad
2. Audio output device to listen to the result.
What you need to do ?
1. Open Notepad.
2. Copy paste the code i have given below
Dim message, sapi3. Save the File with any name but extension as .vbs (strictly vbs!!!)
message=InputBox("What do I need to Speak ?","Your Speech Engine")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message
4. Now open the file by direct double clicking it.
5. Type what you want to hear in the text box that appear.
6. Click OK.
Your a mega mind now!!!
How it works ?
- vbs is Visual Basic Script File.
- VBScript uses the Component Object Model to access elements of the environment within which it is running; for example, the File System Object (FSO) is used to create, read, update and delete files.
- VBScript has been installed by default in every desktop release of Microsoft Windows since Windows 98; in Windows Server since Windows NT 4.0 Option Pack; and optionally with Windows CE (depending on the device it is installed on).
- So A VBScript script must be executed within a host environment, of which there are several provided with Microsoft Windows, including: Windows Script Host (WSH), Internet Explorer (IE), and Internet Information Services (IIS). Additionally, the VBScript hosting environment is embeddable in other programs, through technologies such as the Microsoft Script Control (msscript.ocx).
- Any file saved with an extension type as vbs with suitable message content coding can automatically execute itself in windows environment.
Enjoy with us.
Support the blog, Click on Ads
Comments
Post a Comment