title: Multiple problems with annyang
body: <p>For my school, we have been given the task to make a 'Decision Room', much like the one in the George W. Bush Decision Room in the SMU library. For the decision room I have been creating, I have chosen to make it voice activated using annyang (kind of a cheat code it is so easy).</p>
  
  <p>BUT! I have been problems getting it to understand two different words individually. When I say '2', it redirects me to the next decision, but 1 will not work.</p>
  
  <p>Also, I am trying to play a little tone that I have after it registers your speech, before the redirect.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;script&gt;
  window.onload = function(){
  if (annyang) {
      var commands = {
          '1': function() {document.getElementById('Turn.mp3').play();
              window.location = "room1a.html";
          }
      };
      annyang.addCommands(commands);
      annyang.start();
  }
  }
  &lt;/script&gt;
  
  &lt;script&gt;
  window.onload = function(){
  if (annyang) {
      var commands = {
          '2': function() {document.getElementById('Turn.mp3').play();
              window.location = "room1b.html";
          }
      };
      annyang.addCommands(commands);
      annyang.start();
  }
  }
  &lt;/script&gt;
  </code></pre>