1

I am using the recorder.js library to output a WAV file in Chrome, but it's currently a 32-bit WAV file. I'm looking at this code here, but am not sure what to change to output a 16-bit WAV file. The audio file is mono (single-channel). I've read that I need to scale the values by 32,767 and then cast to 16-bit integer?

Unlike this question, I am not trying to downsample, or change the number of audio channels. I want to change the bit depth.

Community
  • 1
  • 1
skunkwerk
  • 2,920
  • 2
  • 37
  • 55
  • Where you read that? – T30 Feb 23 '16 at 01:40
  • Possible duplicate of [Decrease bitrate on WAV file created with recorderjs](http://stackoverflow.com/questions/16296645/decrease-bitrate-on-wav-file-created-with-recorderjs) – T30 Feb 23 '16 at 02:06

1 Answers1

0

recorder.js actually does output a 16-bit WAV file, as can be seen from the code here. I didn't realize this because I was opening the files in Audacity, which automatically changed it to 32-bit WAV format. But opening in VLC and selecting Media Information showed the correct results.

skunkwerk
  • 2,920
  • 2
  • 37
  • 55