title: Russian language recognition in Microsoft Speech API
body: <p>I would like to play a little bit with Microsoft Speech API. I have found <a href="https://stackoverflow.com/questions/34358823/sapi-identifying-more-than-2-properties">this answer</a> and it works! I have tried to adopt it to recognize Russian language. The grammar file look like this:</p>
  
  <pre><code>&lt;GRAMMAR LANGID="419"&gt;
      &lt;DEFINE&gt;
          &lt;ID NAME="TEST" VAL="1"/&gt;
      &lt;/DEFINE&gt;
      &lt;RULE NAME="TEST" TOPLEVEL="ACTIVE"&gt;
          &lt;L&gt;
              &lt;P&gt;Привет&lt;/P&gt;
              &lt;P&gt;Пока&lt;/P&gt;
          &lt;/L&gt;
      &lt;/RULE&gt;
  &lt;/GRAMMAR&gt;
  </code></pre>
  
  <p>The code is taken from <a href="https://stackoverflow.com/questions/34358823/sapi-identifying-more-than-2-properties">the mentioned answer</a>. But I get an error: the line</p>
  
  <pre><code>HRESULT hr = cpRecoGram-&gt;LoadCmdFromFile(L"D:\\data\\test\\reco_ru.cfg", SPLO_STATIC);
  </code></pre>
  
  <p>returns <strong>0x80045052</strong> (-2147200942): <code>An attempt to load a CFG grammar with a LANGID different than other loaded grammars.</code></p>
  
  <p>Is it possible to set up a program and/or an environment to use grammar files for Russian?</p>
  
  <p>Environment: Windows 10 Home, Visual Studio 2017</p>