title: How to embed audio file in HTML if it's being sent as octet-stream?
body: <p>I'm trying to write a Greasemonkey script that will convert all "Play" links on a page to embedded audio (using the <code>&lt;embed&gt;</code> tag).</p>
  
  <p>When I use a link that I get from a GMail attachment, it works like a charm.</p>
  
  <p>When I use a link from another site (Digium Switchvox), the HTTP response header has <code>ContentType</code> set to "application/octet-stream" instead of "audio/x-wav" (like GMail's link). This confuses Firefox, which decides that I don't have the right plugin installed. If I set the <code>type</code> attribute in the <code>&lt;embed&gt;</code> tag to "audio/x-wav", Firefox uses Quicktime to load the file. Quicktime gets confused, however, and won't play the file.</p>
  
  <p>Does anyone know of a clever way to solve this problem?</p>