Locations of visitors to this page


Onteora Software - Speech

Onteora Software

Ken Tucker's Blog

About the author

Author Name is someone.
E-mail me Send mail

Recent posts

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Speech Recognition

The dot net framework 3.0 added the system.speech namespace.  One of the new classes they added is the SpeechRecognizer.  The speech recognizer class has a SpeechRecognized event which you can use to make your application accept dictation.

 

For this example you need to create a .net 3.0 or .net 3.5 windows forms app.  Place a multi-line textbox on the form. 

 

 

Imports System.Speech
Imports System.Speech.Recognition

Public Class Form1
    Dim recognizer As New SpeechRecognizer

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler recognizer.SpeechRecognized, AddressOf SpeechRecognized
    End Sub

    Private Sub SpeechRecognized(ByVal sender As Object, ByVal e As SpeechRecognizedEventArgs)
        TextBox1.Text &= e.Result.Text
    End Sub
End Class

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: VB | Speech
Posted by Ken Tucker on Tuesday, December 11, 2007 9:53 PM
Permalink | Comments (0) | Post RSSRSS comment feed