How to fix the fact that not work Russian language in Microsoft Speech Platform?

Hi all. The problem with the Microsoft Speech Platform with the Russian language. English works without problems. Gives an error on sre.LoadGrammar(g); (The language for the grammar does not match the language of the speech recognizer.)
String voice_lang;
 if (lang == "rus") voice_lang = "EN-us";
 else { voice_lang = "en-US"; }

 System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(voice_lang);
 SpeechRecognitionEngine sre = new SpeechRecognitionEngine(ci);

sre.SetInputToDefaultAudioDevice();

 sre.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(SayStart);

 Start_ Choices = new Choices();
 if (lang == "eng") { start_.Add(new string[] { "start" }); }
 else { start_.Add(new string[] { "begin" }); }

 GrammarBuilder gb = new GrammarBuilder();
gb.Append(start_);
 Grammar g = new Grammar(gb);
sre.LoadGrammar(g);

 sre.RecognizeAsync(RecognizeMode.Multiple);


static void SayStart(object sender, SpeechRecognizedEventArgs e)
{
 if (e.Result.Confidence > 0.82) { b.PerformClick(); }
 }
March 23rd 20 at 19:01
1 answer
March 23rd 20 at 19:03
Solution
gb.Culture = sre.RecognizerInfo.Culture;
Added after
GrammarBuilder gb = new GrammarBuilder();
Everything works

Find more questions by tags C#