Custom phrases using speech/sound recognition RRS feed

  • Question

  • I have a speech impairment that makes completing the speech recognition training wizard impossible.  I’m trying to develop a program which would allow me to map letters/words/phrases to specific sounds.

    I tried adding to the speech dictionary in the speech recognition program (I’m using Windows 7) and recording a pronunciation (ex. "cat" as "dog"), but it’s not working.

    Short of creating a customized recognition engine (which would be a nightmare for me), how do I go about this? What references/namespaces should I use?

    I’m currently using VB2008 Express


    Imports System.Speech.Recognition

    Public Class MainForm

          Dim WithEvents speechRecognizer As New SpeechRecognitionEngine

          Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

                Dim grammarBuilder As New GrammarBuilder

                Dim choices As New Choices("cat")


                speechRecognizer.LoadGrammar(New Grammar(grammarBuilder))


          End Sub


          Private Sub speechRecognizer_SpeechRecognized(ByVal sender As Object, ByVal e As System.Speech.Recognition.SpeechRecognizedEventArgs) Handles speechRecognizer.SpeechRecognized

                Label1.Text = e.Result.Text

          End Sub

    End Class

    Monday, March 22, 2010 6:57 AM