mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.18k stars 1.46k forks source link

AudioContext sampleRate #62

Open ewolfman opened 10 years ago

ewolfman commented 10 years ago

Hi,

Thanks for your great work. I noticed that the AudioContext on my machine always has a sampleRate of 48000. However when I use Silverlight to record on the same machine. I have around 23 supported formats that I can easily choose from (e.g. 1-2 channels, 8000/44100/48000 etc.)

Is there anyway to record using a different sample rate?

Thanks.

cwilso commented 10 years ago

The Web Audio API does not currently have a way to request a different sample rate. You'd have to change your sound output default device settings.

kmturley commented 10 years ago

This answer solved it for me: http://stackoverflow.com/questions/16296645/decrease-bitrate-on-wav-file-created-with-recorderjs/26245260#26245260