title: Firefox won't play .WAV files using the HTML5 <audio> tag?
body: <p>I'm building a page that will allow a user to upload an MP3 file.  That MP3 file is converted in the back end to a .WAV file using LAME.</p>
  
  <p>The lame execution script is here:</p>
  
  <pre><code>LAME --resample 44.1 -decode myDirectoryPath/Master.mp3 myDirectoryPath/Master.wav
  </code></pre>
  
  <p>However, when I use the HTML5 audio tag to create a player for that audio file in Firefox, it doesn't work.</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;audio controls&gt;
          &lt;source src="myDirectoryPath/Master.mp3"&gt;
          &lt;source src="myDirectoryPath/Master.wav"&gt;
      &lt;/audio&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Everything I've read says that Firefox supports .wav files... and I can't find a simple .mp3 to .ogg command line tool to use that will convert the master.mp3 to .ogg format.  Can someone offer some suggestions on what to try next?</p>
  
  <p>I've posted code that works in Safari and Chrome here:
  <a href="http://www.wgbh.org/byers/Audio/index.html" rel="noreferrer">http://www.wgbh.org/byers/Audio/index.html</a></p>
  
  <p>For whatever reason, FF doesn't like it.</p>
  
  <p><strong>UPDATE</strong>
  (With accompanying facepalm)  The issue lies with my LAME decode.  The correct syntax is --decode with two dashes instead of one.  The system was actually encoding it from mp3 to mp3, naming it wav and Safari / Chrome on the Mac was assuming the file type.</p>