C # speech recognition

Where can I find links and complete documentation for the C # speech recognition namespace. MSDN provides only a very brief description of the participants and nothing else that I can find. Is there an absolute resource for these kinds of things. Basically, all I'm learning is other lessons or snippets on the forums.

+7
source share
3 answers

Intro: Speech Recognition

Code examples covering most of the basics:

Getting started with speech recognition

The main operations in which speech recognition applications perform: - Launching a speech recognizer.

  • Create grammar recognition.

  • Loading grammar into a speech recognizer.

  • Registration for speech recognition event notification.

  • Creating a speech recognition event handler.

+2
source

I found that the last MSDN pages in System.Speech.Recognition for .NET 4 are very poor in detail, but older pages for .NET 3.5 contain more detailed information. For quick comparison, I just took these two pages:

against.

.NET 3.5 docs have detailed comments and examples. There are definitions in versions of .NET 4.0.

I found the help file that comes with the Server Speech Platform SDK contains information that the MSDN.NET 4.0 pages are not working - http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1b1604d3-4f66- 4241-9a21-90a294a5c9a4 .

To get started with .NET speech, there is a very good article that was published several years ago at http://msdn.microsoft.com/en-us/magazine/cc163663.aspx . This is probably the best introductory article I've found so far. This is a bit outdated, but very helfpul. (The AppendResultKeyValue method has been reset after the beta and probably other changes are changing.)

+1
source

First, you add a library for speech recognition.

using System.Speech.Recognition 

If you cannot load the library, you can add it using the add link. Go

Project> Add Link> Overview

Typically, System.Speech.dll is located in the folder C: \ Program Files \ Reference Assemblies \ Microsoft \ Framework \ v3.0

Here is an example code that recognizes Yes, No, B, Output, below:

 namespace SpeechRecognition { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { SpeechRecognizer sr = new SpeechRecognizer(); Choices ch = new Choices(); ch.Add(new string[] { "yes", "no","in","out" }); GrammarBuilder gb = new GrammarBuilder(); gb.Append(ch); Grammar gr = new Grammar(gb); sr.LoadGrammar(gr); sr.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(sr_SpeechRecognition); } private void sr_SpeechRecognition(object sender, SpeechRecognizedEventArgs e) { MessageBox.Show(e.Result.Text); } } } 
0
source

All Articles