Friday, December 5, 2014

Make your computer talk whatever you type


Hello Reader!!! Hope you all learning well. Now I will share you magic trick with your computer. Its also useful for you to, how to pronounce a English word. This trick will work with small sample of code which is going to share with in the below steps.

This trick will useful when we need to record a pages of text with out any gaps and we may mis-pronounce some words while we recording manually with our voce. so if you use this trick, you can easily record lots of pages of text without any disturbance (If you use pauses and punctuation then the recording will come with better quality)  

Step 1:  Open notepad and copy the below line and paste.

Dim Message, Speak
Message=InputBox("Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Messag
e


Step 2: Save this file with .vbs extension (while saving the file put all Save as type as 'All files' - if you don't put this also it will work)


Step 3: Double click on the saved file, then it will show a dialogue box to enter the text. Enter your text and click OK. Now you will listen a sound from the computer like what you type. 



Thanks for Reading!!!!

Happy Learning!!!!!