Make Your Computer Talk to You

Hello Readers , Happy Diwali to all reading this post ..


I am going to post after a very long time, because I am very busy these days ... Today I am going to tell you how to make your computer speak to you once you log in to your PC ...


Yes, I know I sounds very Interesting so I am not going to gossip more ... I am starting the tutorial, I am going to attach a screenshot to show how to use it ...

Friends This is based on a simple code that is written in VBS (VBS means Visual Basic Script)
You must be thinking that You will have to install VBS before running this , my answer is no because Windows itself uses VBS to perform many tasks so once you install windows to your machine , you are free to run VBS scripts/..

How and Where to write the code
Hmm You will not need any compiler or anything to write it . We are going to use Notepad...

Steps are very simple .. Hmm In fact there is only one step
Open the notepad , write the code and save it as name.vbs


code
------------------------------------------------------------------------------------------------------------
dim speaks, voice

message="Your message here"
set voice=CreateObject("sapi.spvoice")

voice.speak message
------------------------------------------------------------------------------------------------------------

You may refer to the above picture if you get any error . Error is caused if you apply spaces where they are not required you may get something like this, If you get any error try to rectify it .




Example- See my script to get some Ideas ..
------------------------------------------------------------------------------------------------------------
dim speaks, voice

message="Hello Vikrant, Welcome to yamataxic"
mesg0="Your PC is running on 116.33 degrees "
mesg1="Your FAN is running at 600 RPM"
mesg2="Connecting user to KERNEL for via MD5 encryption"
mesg3="Generated Session ID is 1154d7h8u4"
mesg4="Realtime Virus detection working"
mesg5="Thank you, Now you can do your work"

set voice=CreateObject("sapi.spvoice")

voice.speak message
voice.speak mesg0
voice.speak mesg1
voice.speak mesg2
voice.speak mesg3
voice.speak mesg4
voice.speak mesg5
------------------------------------------------------------------------------------------------------------
You need to put this vbs to the startup so that it can automatically run when your computer starts, Put the vbs in -
C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup


You can also use Taskschd.msc to do something innovative using this vbs script
Enjoy ......
Please share your script with others by doing comments

Thanks for reading .......

If you have any problem ask me for help,  I will be happy to help you .You can use comments option or contact us page to send your query. . .. ... . .. 

1 comment:

Please share your Views

Powered by Blogger.