Notepad tricks for Audio Application

23/08/2011 12:40

Here are some of the notepad tricks with VB script:

#Trick1
Do you want to check your computer is male or female.This will find out by voice output from your system .
how can you get this..No problem.here is the solution available.

1.Open the Notepad.
2.Type "CreateObject("SAPI.SpVoice").Speak"Hello my friend.......... Good morning"
3.Save it as filename.vbs e.g chekvoice.vbs
4.Open the file and you will get some male or female voice saying the mentioned msg("Hello my friend.......... Good morning")

 

#Trick2

This is also related with audio Application for converting the text information into audio .
1.open the notepad and type
Dim msg,sapi
msg=InputBox("Enter some text for conversion to audio","Notepad tricks")
set sapi=CreateObject("sapi.spvoice")
sapi.Speak msg

2.save it as filename.vbs e.g  txttoaudio.vbs
3.you will get a prompt  box with one text box where you will asked to enter some text data for converting the same into voice information.

 

Note: For all these two tricks you have to install Microsoft visual studio .