title: Chrome extension, play sound in background script
body: <p>I want to play a sound from a Chrome Extension, but I read that Content Scripts cannot play sounds.  So I put this code in my background script:</p>
  
  <pre><code>var audio = new Audio("alert.ogg");
  audio.play();
  </code></pre>
  
  <p>but still no sound.  From the Console of the _generated_backgound_page.html  I was able to inspect the Network tab and see that the sound file is loaded successfully, but I hear nothing.</p>
  
  <p>Also, in another HTML page, I could load another Javascript, which has the above code, and it works (I can hear the sound.)</p>
  
  <p>The fact that it is in the background script seems to have made it fail.  Also, note that I do not have a background PAGE associated with the background SCRIPT.  Does that matter？</p>
  
  <p>edit:  <strong>problem solved</strong>.  The above code works but I forgot to listen to the right sound output channel.    </p>