title: Is it possible to generate WAV files using PHP?
body: <p>I want to write a small web application that generates short audio files (preferably WAV).</p>
  
  <p>Audio files will be very simple, like this:</p>
  
  <p>Eg. user input:</p>
  
  <pre><code>350 1000
  500 1000
  </code></pre>
  
  <p>Output: two-seconds WAV file, first second is a 350Hz tone, second is 500Hz tone, like in <a href="http://onlinetonegenerator.com/" rel="nofollow noreferrer">this generator</a>.</p>
  
  <p>Is it possible to do it using PHP?</p>