|
You last visited: Today at 10:20
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.
09/21/2013, 10:06
|
#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
|
|
|
09/21/2013, 14:31
|
#2
|
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.
|
|
|
09/25/2013, 15:27
|
#3
|
elite*gold: 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?
|
|
|
09/26/2013, 20:27
|
#4
|
elite*gold: 1000
Join Date: Apr 2012
Posts: 1,003
Received Thanks: 208
|
Nothing I guess.
|
|
|
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.
|
|
|
 |
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.
|
|