I created a basic speech recognition program, but I want to make it so once it recognizes the word "Apple", it will enter a mode where
if in the next 10 seconds a certain command is recognized - like "internet" or "log off" - it will do that command, otherwise
after the 10 seconds it will stop this mode and back to the normal mode where it only recognizes the word apple.
This is a piece of my code (Googling examples for speech recognition
Private Sub OnRecognition(ByVal StreamNumber As Integer, ByVal StreamPosition As Object, ByVal RecognitionType As SpeechRecognitionType, ByVal Result As ISpeechRecoResult) Handles RecoContext.Recognition
Dim strText As String
strText = Result.PhraseInfo.GetText
Select Case strText
Case "Apple"
[B][In the next 10 seconds, Check for other commands][/B]
(case "internet")
Process.Start("http://www.google.com/")
[B][After 10 seconds are over, exit this 'check'][/B]
I tried everything, I'm a newbie, so I have no idea how to do that.

New Topic/Question
Reply



MultiQuote



|