title: CMUsphinx add words to existing dictionary
body: <p>I've created and tested the C hello world application for pocketSphinx and it works very well. I've then downloaded a french model language, and all was also great except that brands that are not French (as Spotify) where not recognized by the decoder.</p>
  
  <p>It was normal, they where not in the <code>french.dic</code> file, so I've added an entry in the <code>french.dic</code> file:</p>
  
  <pre><code>spotify ss pp oo tt ii ff aa yy
  </code></pre>
  
  <p>But nothing changed, pocketSphinx don't recognize Spotify.</p>
  
  <p>I've also created a little custom dictionary and a little grammar with only 3 words, but "Spotify" is never recognized contrary to the 2 others.</p>
  
  <p>Do have I to do something else to make pocketSphinx recognize new words ?</p>
  
  <p>EDIT:</p>
  
  <p>The little grammar I made:</p>
  
  <pre><code>#JSGF V1.0;
  /**
   * JSGF test grammar
   */
  
  grammar test;
  
  &lt;launch&gt; = lance | ouvre;
  &lt;application&gt; = spotify;
  public &lt;command&gt; = &lt;launch&gt; &lt;application&gt;;
  </code></pre>
  
  <p>and the little dictionary:</p>
  
  <pre><code>lance ll aa nn ss ee
  lance(2) ll aa nn ss ee
  ouvre ou vv rr
  ouvre(2) ou vv rr ee
  spotify ss pp oo tt ii ff aa yy
  </code></pre>
  
  <p>Link to the voice recording: <a href="https://www.dropbox.com/sh/j3qj13vps5bw0ni/AAAR2ELJLDAadMptMPmLZ4jna?dl=0" rel="nofollow">https://www.dropbox.com/sh/j3qj13vps5bw0ni/AAAR2ELJLDAadMptMPmLZ4jna?dl=0</a></p>