Hi ! in this tutorial I gonna show you how to make your Personal Speaking assistant
to do this you just need Notepad no any softwear of any hardware.
The notepad is already install in the windows .
The Only thing you have to do is program the script of your assistant
"""
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
set wshshell = wscript.CreateObject("wscript.shell")
dim Input
wshshell.run "%windir%\Speech\Common\sapisvr.exe -SpeechUX"
Sapi.speak "Please speak, or type, what you want to open?"
Input=inputbox ("Please speak, or type, what you want to open.")
if Input = "youtube" OR Input = "Youtube"then
Sapi.speak "Opening youtube"
wshshell.run "www.youtube.com"
else
if Input = "instructables" OR Input = "Instructables" then
Sapi.speak "Opening instructables"
wshshell.run "www.instructables.com"
else
if Input = "google" OR Input = "Google" then
Sapi.speak "Opening google"
wshshell.run "www.google.com"
else
if Input = "command prompt" OR Input = "Command prompt" then
Sapi.speak "Opening command prompt"
wshshell.run "cmd"
else
if Input = "calculator" OR Input = "Calculator" then
Sapi.speak "Opening calculator"
wshshell.run "calc"
"""
You are able to change the script. Add or remove the text or sound
Note... At the end you have to save it in the form of "name.vbs"
you hae to save it in the form of vbs extension .
With out vbs your assistant is not working
This is the simple code/Program for your Personal Assistant For Computer
to do this you just need Notepad no any softwear of any hardware.
The notepad is already install in the windows .
The Only thing you have to do is program the script of your assistant
The Program Example
"""
Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
set wshshell = wscript.CreateObject("wscript.shell")
dim Input
wshshell.run "%windir%\Speech\Common\sapisvr.exe -SpeechUX"
Sapi.speak "Please speak, or type, what you want to open?"
Input=inputbox ("Please speak, or type, what you want to open.")
if Input = "youtube" OR Input = "Youtube"then
Sapi.speak "Opening youtube"
wshshell.run "www.youtube.com"
else
if Input = "instructables" OR Input = "Instructables" then
Sapi.speak "Opening instructables"
wshshell.run "www.instructables.com"
else
if Input = "google" OR Input = "Google" then
Sapi.speak "Opening google"
wshshell.run "www.google.com"
else
if Input = "command prompt" OR Input = "Command prompt" then
Sapi.speak "Opening command prompt"
wshshell.run "cmd"
else
if Input = "calculator" OR Input = "Calculator" then
Sapi.speak "Opening calculator"
wshshell.run "calc"
"""
You are able to change the script. Add or remove the text or sound
Note... At the end you have to save it in the form of "name.vbs"
you hae to save it in the form of vbs extension .
With out vbs your assistant is not working
This is the simple code/Program for your Personal Assistant For Computer
No comments:
Post a Comment