title: RecordRTC Error: MediaRecorder API seems unable to record mimeType: audio/wav
body: <p><code>MediaRecorder API seems unable to record mimeType: audio/wav</code> getting this error although I'm giving the type as audio/wav below is the code i'm trying to implement, actually I'm trying to record my voice and upload it to server for which i need to send in wave PCM format but in the browser console it show me this below image warning.</p>
  
  <pre><code>startRecording() {
    const mediaConstraints = {
      audio: true
    };
    navigator.mediaDevices
      .getUserMedia(mediaConstraints)
      .then(this.successCallback.bind(this));
  }
  
  successCallback(stream: MediaStream) {
    const options = {
      mimeType: 'audio/wav'
        };
        this.stream = stream;
        this.recordRTC = RecordRTC(stream, options);
        this.recordRTC.startRecording();
  }
  
  stopRecording() {
    const recordRTC = this.recordRTC;
    recordRTC.stopRecording(this.processVideo.bind(this));
    const stream = this.stream;
    stream.getAudioTracks().forEach(track =&gt; track.stop());
    stream.getVideoTracks().forEach(track =&gt; track.stop());
  }
  
  processVideo(audioVideoWebMURL) {
    const recordRTC = this.recordRTC;
    const recordedBlob = recordRTC.getBlob();     
  }
  </code></pre>
  
  <p>here is the console report, although i'm able to record but the mimetype of the file is always audio/webm</p>
  
  <p><a href="https://i.stack.imgur.com/VqLSJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VqLSJ.png" alt="enter image description here"></a></p>
  
  <p>And also tried passing recordtype as <code>StereoAudioRecorder</code>,but it says in angular <code>Cannot find name 'StereoAudioRecorder'</code>, here is screenshot of it.</p>
  
  <p><a href="https://i.stack.imgur.com/H84eD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H84eD.png" alt="enter image description here"></a></p>
  
  <p>Please any help on this would be highly appreciated, did try searching a lot but unfortunately dint find any solution for this.</p>