Hacking - Hack PC to Speak

Hacking - Hack PC to Speak

How to train your PC to speak a Welcome Message

  • Everybody will definitely be curious to know how to do this for our own PC. This is a the tutorial to create and consume such an option. On end of this tutorial, a computerized voice will say "Welcome to your PC, [User]." 
  • The same methodology can be applied to identify the gender of the user. This is achieved using the option selected in Microsoft Text to Speech options. Now follow the below steps:

 1. Click on Start -> All Programs -> Notepad.

 2. Enter the below code into it:

Sample Code:

Dim speaks, speech
speaks="Welcome to your WikiTechy Website"
Set speech=CreateObject("sapi.spvoice")
speech.Speak speaks

3. Click on File Menu -> Save As -> select “All Types” in Save as Type option, and save the file as Welcome.vbs or "*.vbs".

4. Copy the saved file. 

5. if C drive is available in your system, go to C:\Users\ {User-Name}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (in Windows 10, Windows 8, Windows 7 and Windows Vista). 

6. Paste the file.

  • AppData is a hidden folder. So, select View menu option and check the options to show hidden folders under “Folder options”.

Code Explanation:

   The line of code Dim speaks, speech declares two variables speaks and speech.

    The code speaks="Welcome to your WikiTechy Website" initializes the variable speaks with the value ="Welcome to your WikiTechy Website".

    Set speech=CreateObject("sapi.spvoice") assigns the variable speech with a voice object “sapi.spvoice”.

    speech.Speak speaks makes the computer to speak the welcome message in the speech’s preset voice tone.

  • Place the file in desktop, switch on the speaker and double click the vbs file. You are able to hear the text which you’ve provided in the code. Enjoy it.
  • Placing in the startup folder makes you to hear it every time, once you start your computer.