I'm using RecorderJS to record a microphone stream from the user. The default export is a WAV file at 44.1 kHz, 16bit. Is there anyway I can downsample this to 11kHz or 16kHz without it sounding weird? Is there anyway I can get a 16bit 16khz WAV file out of a Web Audio API getUserMedia stream, by using only javascript?
I'm trying to reduce the file size, thus saving a lot of bandwidth for the users. Thanks.
Edit : one more thing, you can also, send only one channel instead of both...
I am not sure if this is the right way, but I did by doing interpolation of the data received from microphone, I am guess, you are capturing your data from microphone something like this,
now modify it into