Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

Voice Recognition!!!!

$
0
0
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
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

im trying to say apple but picturebox wont show.. can u please help me guys..???

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>