Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi,

I want to improve the speech recongnition in C#. Currently i'm using a custom Grammar with some commands, but when i speak some words, the recognition engine confuses those words with the commands stored in custom grammar.

In Speech Recongnition, is it possible to define your own customer grammar using a wav file? My idea is if I can record commands with my own accent in the Custom grammar, then SpeechRecognitionEngine would recognize my commands more accurately by comparing my commands words with the those stored in the custom grammar.

Or if there is a way to tell Recognition Engine how i would pronounce the commands, so that it doesn't confuse them with other similar sounding words?

Thank You

Kaur
Posted
Comments
Sergey Alexandrovich Kryukov 10-Jun-11 12:22pm    
I don't think so. The idea of engine is not using any teach data.
--SA

1 solution

You can use SpeechSynthesizer Class for how to pronounce a word.

Sample C# Code
C#
System.Speech.Synthesis.SpeechSynthesizer sp= new SpeechSynthesizer();
sp.Speak("Hello");


Sample VB Code

VB
Dim sp as new System.Speech.Synthesis.SpeechSynthesizer
sp.Speak("Hello")
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900