title: Grammar with dictation using Sphinx-4
body: <p>I'm using Sphinx-4 to convert voice to text, but I need that the application recognizes a grammar and then a sequence of words dictated.</p>
  
  <p>For example, having the following grammar:</p>
  
  <pre><code>public &lt;greet&gt; = (Good morning | Hello);
  </code></pre>
  
  <p>If I say "Hello" and then Joan (or any other name) I intend to return the text "Hello Joan"</p>
  
  <p>I saw the topic <a href="https://stackoverflow.com/questions/8727389/dictation-application-using-sphinx4">Dictation Application using Sphinx4</a> but if I change the settings will always return <code>&lt;unk&gt;</code>. This is the right step? If yes, what am I doing wrong?</p>