Flipkart.com
$1.99/mo Web Hosting
Save some Cold, Hard Cash! $7.49/yr domains

Tuesday, March 15, 2011

Is your computer Male or Female ???

Hi Friends. Well if you are wondering if there is any catch to the above line. I must say not. Basically every computer is given a gender along with other specifications. The inbuilt voice in the computer determines the gender of your computer.It is basically attributed with Microsoft Windows and I am not sure if you can find it out on other OS. So if you want to know what gender your computer is then here is a code for you...

  •   Open Notepad.
  •   Type or copy-paste: CreateObject("SAPI.SpVoice").Speak"I am Computer"
  •   Save as saycomputer.vbs
  •   Run the file.
Guess what...???!!
If you hear a male voice, you have a boy;
If you hear a female voice, you have a girl


lol..

it's really funny and new stuff.. 

now apart from fun let's see Technical Reason behind it..

it just use windows default speech to text converter voice. it's not about male or female..;-)
you can get settings from
Control Panel -> Speech
see the following image..






now one more interesting stuff..

------------------------------------------------------------------------------


strMessage =Inputbox("Enter your message","Input Required")
CreateObject("SAPI.SpVoice").Speak strMessage


------------------------------------------------------------------------------

Save file as mycustommessage.vbs
Double click it to run.
when you run.. it ask for the input.. and will play according to input text of that message box.. 
it's just VB-Script fun.. 
Enjoy.. :-)

No comments:

Post a Comment