Wednesday, 1 February 2012

Fun @Computer: Computer Gender


Hi Friends!

It's been a long time since I had a word with you all. I guess you all are fine- hacking computers( not cracking it).

My this trick is rather unknown, but a very funny one.

It's about knowing the gender of your computer. You can know if your computer responds to you in a male or a female voice. The trick is simple. So let's start.

Step 1: Open Notepad (Window + R -> (type) notepad )

Step 2: Type CreateObject("SAPI.SpVoice").Speak"I love you"

Step 3: Save the file as "Computer_gender.vbs" 


Step 4: Run this file.

If the "I Love you" message comes to you in a male voice, then your system is Male! or if the message is said by some lady (Microsoft Anna - English (United States)), then your system is a lady... he he he
(other narrators include- Microsoft Mike, Microsoft Marry)

                       

Let's deep dive into this SAPI class. The SAPI object brings the text-to-speech(TTS) capabilities to applications using SAPI automation. An application can create numerous SpVoice objects, each independent of and capable of interacting with the others. The SpVoice object is created with default setting and can be used as soon as it is created.(Refer msdn)

The Speak method initiates the speaking of a text string, a text file, an XML file, or a wave file by the voice.
(Refer msdn)

So, here we are, with a more knowledge on what our computer is.

Catch you guys later. Feel free to post a comment.




1 comment: