title: How to capture audio in javascript?
body: <p>I am currently using <code>getUserMedia()</code>, which is only working on Firefox and Chrome, yet it got deprecated and works only on https (in Chrome). Is there any other/better way to get the speech input in javascript that works on all platforms?</p>
  
  <p>E.g. how do websites like web.whatsapp.com app record audio? <code>getUserMedia()</code> prompts first-time-users to permit audio recording, whereas the Whatsapp application doesn't require the user's permission.</p>
  
  <p>The <code>getUserMedia()</code> I am currently using looks like this:</p>
  
  <pre><code>navigator.getUserMedia(
      {
          "audio": {
              "mandatory": {
                  "googEchoCancellation": "false",
                  "googAutoGainControl": "false",
                  "googNoiseSuppression": "false",
                  "googHighpassFilter": "false"
              },
              "optional": []
          },
      }, gotStream, function(e) {
          console.log(e);
      });
  </code></pre>