Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[VB.NET] Speech Recognition [/VB.NET]

Hello guys, this is my first tut so please dont flame =_=

Okay, today i am going to show you guys how to use Speech Recognition in VB.NET.
What Do You Need:
Have Speech Recognition (Win7, WinVista, WinXP)
Visual Basic/Studio 2005/2008/2010
Microsoft Speech Object Library (if you update your machine, you will have it, else you have to google it)
A file i uploaded with a virus scan, if you dont trust me cause i got low posts, please gtfo. i'm trying to help you so if you dont trust gtfo. thank you.

its a verry small file.

Download: http://www.mediafire.com/?h6ktkqqgla9xerr

Virus Scan:

http://www.virustotal.com/file-scan/repo...1303717546

Quote:File name: SpeechLibrary.rar
Submission date: 2011-04-25 07:45:46 (UTC)
Current status: finished
Result: 0 /41 (0.0%)
VT Community

not reviewed
Safety score: -
Compact
Print results
Antivirus Version Last Update Result
AhnLab-V3 2011.04.25.02 2011.04.25 -
AntiVir 7.11.7.4 2011.04.25 -
Antiy-AVL 2.0.3.7 2011.04.25 -
Avast 4.8.1351.0 2011.04.24 -
Avast5 5.0.677.0 2011.04.24 -
AVG 10.0.0.1190 2011.04.24 -
BitDefender 7.2 2011.04.25 -
CAT-QuickHeal 11.00 2011.04.24 -
ClamAV 0.97.0.0 2011.04.25 -
Commtouch 5.3.2.6 2011.04.25 -
Comodo 8468 2011.04.25 -
DrWeb 5.0.2.03300 2011.04.25 -
eSafe 7.0.17.0 2011.04.24 -
eTrust-Vet 36.1.8286 2011.04.22 -
F-Prot 4.6.2.117 2011.04.25 -
F-Secure 9.0.16440.0 2011.04.25 -
Fortinet 4.2.257.0 2011.04.24 -
GData 22 2011.04.25 -
Ikarus T3.1.1.103.0 2011.04.25 -
Jiangmin 13.0.900 2011.04.24 -
K7AntiVirus 9.98.4458 2011.04.23 -
Kaspersky 7.0.0.125 2011.04.25 -
McAfee 5.400.0.1158 2011.04.25 -
McAfee-GW-Edition 2010.1D 2011.04.24 -
Microsoft 1.6802 2011.04.25 -
NOD32 6068 2011.04.25 -
Norman 6.07.07 2011.04.25 -
Panda 10.0.3.5 2011.04.24 -
PCTools 7.0.3.5 2011.04.21 -
Prevx 3.0 2011.04.25 -
Rising 23.54.06.06 2011.04.24 -
Sophos 4.64.0 2011.04.25 -
SUPERAntiSpyware 4.40.0.1006 2011.04.25 -
Symantec 20101.3.2.89 2011.04.25 -
TheHacker 6.7.0.1.182 2011.04.24 -
TrendMicro 9.200.0.1012 2011.04.25 -
TrendMicro-HouseCall 9.200.0.1012 2011.04.25 -
VBA32 3.12.16.0 2011.04.22 -
VIPRE 9112 2011.04.25 -
ViRobot 2011.4.25.4427 2011.04.25 -
VirusBuster 13.6.319.2 2011.04.24 -




Ok, open up Visual Basic/Studio..

New Project> name it whatever you want.

Project>Add Existing Item > Browse > SpeechLibrary.vb(the file you downloaded)

than

Project> Add References... > COM > Microsoft Speech Object Library


ok, now to enable the Speech Recognition, Add a button OR add the following code in the main form (form1).Load;

Quote:SpeechLibrary_StartSpeechRecognition()


'this code will enable the speech recognition

double click the Speechlibrary.vb ( IN YOUR PROJECT )

scroll down until you see
Quote:Private Sub SpeechLibrary_COMMAND_LIST()


now i've already added an example for you guys;

If (program hears; Speech ) Then
GOTO GOOGLE=D


Quote: If SpeechLibrary_ResultToString = "speech" Then
Process.Start("http://www.google.nl")
Else
MsgBox("speak more clearly")
End If



SpeechLibrary_ResultToString = "speech" = What you say, what the program hears

Process.Start("http://www.google.nl") = what the program does after it hears it.

MsgBox("speak more clearly") = a messagebox that pops up if you dont speak clearly enough.

now open Speech Recognition then debug the application you made.
enable the speech recognition and say; Speech.



NOTE: if you dont know how to get to Speech Recognition, or if you have never done it before

Start Menu> Control Panel > type in the searchbox; Speech Recognition, and start the tutorial.


I DID NOT MAKE THE SPEECHLIBRARY.VB ITS MADE BY
Copyrighted Ashley M Begley

i hope it helped
this is my first tutorial on this forum
🤝



Thanks for the share m8! :D, i can't get my mic to work Thougth.
wow, this is very nice. thanks for this share!
Thank you so much guys:D

-Siy
Really nice share. Haven't thought about this in VB.net.
Hmm... I made to start on a click of a button, but a second after I clicked the button, I get this:
Spoiler (Click to View)
(Apr 25, 2011 07:21 AM)Slayer Wrote:  Hmm... I made to start on a click of a button, but a second after I clicked the button, I get this:
Spoiler (Click to View)

Uhm, could you show me the code of the button, try adding it to the main form, make sure you added the COM reference , and make sure you added the listen code under
Private Sub SpeechLibrary_COMMAND_LIST()

(Apr 25, 2011 08:05 AM)Siy Wrote:  Uhm, could you show me the code of the button, try adding it to the main form, make sure you added the COM reference , and make sure you added the listen code under
Private Sub SpeechLibrary_COMMAND_LIST()

Reference was added, 5.0. And the code was added. >.<
make sure you have configured your "Voice Recognition option" from your computers "control panel" for this to work.

(Apr 25, 2011 08:05 AM)Siy Wrote:  Uhm, could you show me the code of the button, try adding it to the main form, make sure you added the COM reference , and make sure you added the listen code under
Private Sub SpeechLibrary_COMMAND_LIST()
CoInitializeSecurity may causes this exception.
(Apr 25, 2011 07:21 AM)Slayer Wrote:  Hmm... I made to start on a click of a button, but a second after I clicked the button, I get this:
Spoiler (Click to View)

Remove class
RecoContext = New SpSharedRecoContextClass
Should be
RecoContext = New SpSharedRecoContext
This looks pretty awesome, thanks a lot for the share.
thank you so freaking much guys:O 9 posts and 3 rep:O! <33
(Apr 25, 2011 08:47 AM)Siy Wrote:  thank you so freaking much guys:O 9 posts and 3 rep:O! <33

Don't shit yourself, it's just a number.
(Apr 25, 2011 09:30 AM)Deceptive Wrote:  Don't shit yourself, it's just a number.

too late i shat myself.. ò.Ó'
thx so much.
Any bright sparks out there thinking of using this for solving audio captchas?
:)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by FreddieXxJun 15, 2022 12:46 AM 6 300 Jun 15, 2022 12:46 AM
Last Post: FreddieXx
[.NET] by I cry bloodOct 3, 2020 05:36 AM 6 367 Oct 3, 2020 05:36 AM
Last Post: adelforever4
[Python] by CryptAug 13, 2020 04:02 AM 16 354 Aug 13, 2020 04:02 AM
Last Post: Crypt