i'm trying to make kiddie game and im just wondring if i can use voice recognition,
the flow is, when i say a word then a picturebox shld pop out,, .. i wonder how to do that using speech recognition,,.. anyone poease help,
the only code i know is
im trying to say apple but picturebox wont show.. can u please help me guys..???
the flow is, when i say a word then a picturebox shld pop out,, .. i wonder how to do that using speech recognition,,.. anyone poease help,
the only code i know is
Code:
Imports System.Speech.Recognition
Imports System.Speech.Recognition.SrgsGrammar
Public Class LETTERA
Private recognizer As SpeechRecognizer
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
recognizer = New SpeechRecognizer
AddHandler recognizer.SpeechRecognized, AddressOf recognizer_speechrecognized
Dim grammar As New GrammarBuilder()
grammar.Append(New Choices("Apple", " "))
recognizer.LoadGrammar(New Grammar(grammar))
End Sub
Private Sub recognizer_speechrecognized(ByVal sender As Object, ByVal e As SpeechRecognizedEventArgs)
Select e.Result.Text.ToUpper
Case Is = "Apple"
PictureBox5.Visible = True
End Select
End Sub