title: How to setup codec, samplerate and bitrate on an audio blob in javascript?
body: <p>I just created a blob:</p>
  
  <pre><code>const audioBlob = new Blob(audioChunks, { 'type' : 'audio/wav; codecs=0' });
  </code></pre>
  
  <p>and sent it to the backend in base64 format. I saved this into a file named "test.wav" using the following code:</p>
  
  <pre><code>await writeFile('./temp/test.wav', Buffer.from(filename.replace('data:audio/wav; codecs=0;base64,', ''), 'base64'), 'base64');
  </code></pre>
  
  <p>On the output "test.wav" file, I get the codec as opus, bitrate=N/A and sample rate=48000. I want to change these values to codec=wav, bitrate=256kbps and sample rate=16000. How to achieve it in node(or angular)?</p>
  
  <p><a href="https://stackblitz.com/edit/angular-umqjpf" rel="noreferrer">Here</a> is a link for my frontend code.</p>