Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 10:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HowTo] Make a J.A.R.V.I.S System [VB.NET]

Discussion on [HowTo] Make a J.A.R.V.I.S System [VB.NET] within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
[HowTo] Make a J.A.R.V.I.S System [VB.NET]

J.A.R.V.I.S



You will need to create a text document and put all your commands !


1) Imports

Quote:
Imports System.Speech.Recognition
Imports System.Speech.Recognition.SrgsGrammar
Imports System.Runtime.InteropServices
Imports System.IO
Imports System.Reflection
2) Declare

Quote:
Private recognizer As SpeechRecognizer
Dim QuestionEvent As String
Dim Jarvis = CreateObject("Sapi.spvoice")
3) Settings

Quote:
Public Sub New()

InitializeComponent()

recognizer = New SpeechRecognizer()
AddHandler recognizer.SpeechDetected, AddressOf recognizer_SpeechDetected
AddHandler recognizer.SpeechRecognitionRejected, AddressOf recognizer_SpeechRecognitionRejected
AddHandler recognizer.SpeechRecognized, AddressOf recognizer_SpeechRecognized

Dim grammar As New GrammarBuilder()
grammar.Append(New Choices(System.IO.File.ReadAllLines("Commands.txt" )))
recognizer.LoadGrammar(New Grammar(grammar))

End Sub
4) A small Code

Quote:
Private Sub recognizer_SpeechRecognized(ByVal sender As Object, ByVal e As SpeechRecognizedEventArgs)
Dim Random As New Random
Dim Number As Integer = Random.Next(1, 10)
Select Case e.Result.Text.ToUpper
Case Is = "SPEAKING" ' Here you must put the text in capitals letter!
Jarvis.speak("And i can answer you sir !") 'Now J.AR.V.I.S is speaking ... Amazing !
End Select
End Sub
_________________________

Now you can turn on J.A.R.V.I.S
If you get any problem please say it here. Good luck !

-NoCheatImPGM
NoCheatImPGM is offline  
Old 09/21/2013, 14:31   #2
 
Jay Niize's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 4,851
Received Thanks: 3,417
This is not a tutorial. This is just a Sourcecode. Please tell something about the code. Otherwise this thread will be closed.
Jay Niize is offline  
Old 09/25/2013, 15:27   #3



 
Shawak's Avatar
 
elite*gold: 0
The Black Market: 259/0/0
Join Date: Apr 2010
Posts: 10,289
Received Thanks: 3,613
Code:
Private Sub recognizer_SpeechRecognized(ByVal sender As Object, ByVal e As SpeechRecognizedEventArgs)
Dim Random As New Random
Dim Number As Integer = Random.Next(1, 10)
Select Case e.Result.Text.ToUpper
Case Is = "SPEAKING" ' Here you must put the text in capitals letter!
Jarvis.speak("And i can answer you sir !") 'Now J.AR.V.I.S is speaking ... Amazing !
End Select
End Sub
So what is 'random' and 'number' for?
Shawak is offline  
Old 09/26/2013, 20:27   #4
 
elite*gold: 1000
Join Date: Apr 2012
Posts: 1,003
Received Thanks: 208
Nothing I guess.
qkuh is offline  
Old 10/02/2013, 20:59   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,997
Received Thanks: 3,422
Sorry, it was a small option with a random answer.

Regards, PGM.
NoCheatImPGM is offline  
Reply


Similar Threads Similar Threads
[350.Beitrags-HowTo]PwA System
08/31/2012 - Metin2 PServer Guides & Strategies - 13 Replies
Hallo Liebe Epvpler/innen, Da ich heute den 350. Beitrag geknackt hab, zeige ich, euch heute, wie ihr das PwA System in eure Hp einbaut. Um die PwA (lf. Paymentwall Api) zu installieren benötigt ihr - eine aktuelle Brain.exe - n++
How can i make e-pin system?
03/09/2012 - SRO Private Server - 2 Replies
Can anyone help me? How can i make e-pin system for silkroad server?
[HOWTO] Monarchen System Fix 1
04/14/2011 - Metin2 PServer Guides & Strategies - 56 Replies
Hallo, Ich zeige euch heute wie ihr das Monarchen System fixxen könnt. Allerdings ist es diesmal komplizierter. Einige von euch werden schon bemerkt haben. Das in den Syserr dateien des DB server manchmal sowas steht wie field 'name' in field list is ambigious das kommt daher das Ymir bei dem Query einen Fehler gemacht hat. Ihr müsst einen Hex Editor nehmen und die Prefixe richtig setzen. Da ich jetzt keine db datei habe die gefixt ist hier mal wie wie es aussehen soll nachher....
Howto bypass Anti Bot system?
06/16/2010 - Lineage 2 - 2 Replies
How can i paypass antibot system of click? I want to use l2walker If you know which system they are using it would help alot^^ Edit: Or maybe somebody knows a programm like ManorHelper? Or script for l2net for manor crops sale?
How to make own system.mrs?
03/21/2008 - GunZ - 4 Replies
Hello. I want create my own system.mrs. I know tutorial maked by Privc , but i mean: system.mrs without injecting crc like http://www.elitepvpers.com/forum/gunz/120656-new-pa tch-means-new-hax-3-2008-a.html this. Thx , and sorry for english.



All times are GMT +1. The time now is 10:21.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.