I am doing speech recognition in c# and using this code every thing is fine but
private void Form1_Load(object sender, EventArgs e)
{
Choices commands = new Choices();
GrammarBuilder gb = new GrammarBuilder();
commands.Add(new string[] { "red", "blue", "green" ,"meantime","transmit","harvest","consecutive","coordinate","spy","slot","riot","nutrient","citizenship","severely","sovereignty","ridge","brave","lighting","specify","contributor","frustrate","articulate","importantly","transit","dense","seminar","electronics","sunny","shorts","swell","accusation","soften","straighten","terribly","cue","bride","biography","hazard","compelling","seldom","tile","economically","honestly","troubled","twentieth","balanced","foreigner","convenience","delight","weave","timber","till","accurately","plea","bulb","flying","sustainable","devil","bolt","cargo","spine","seller","skilled","managing","marine","dock","organized","fog","diplomat","boring","sometime","summary","missionary","epidemic","fatal","trim","warehouse","accelerate","butterfly","bronze","drown","inherent","nationwide","spit","kneel","vacuum","selected","dictate"});
gb.Append(commands);
Grammar grammar = new Grammar(gb);
recEngine.LoadGrammarAsync(grammar);
recEngine.SetInputToDefaultAudioDevice();
recEngine.SpeechRecognized+=recEngine_SpeechRecognized;
recEngine.RecognizeAsync(RecognizeMode.Multiple);
}
void recEngine_SpeechRecognized(object sender,SpeechRecognizedEventArgs e)
{
switch(e.Result.Text){
case "red":
textBox1.Text += "red ";
break;
}<pre>
but the efficiency is not so good can you help me how to improve it...