mattdiamond / Recorderjs

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

DowsampleRate 48000 Hz to 8000 Hz #148

Open eudoprimo opened 8 years ago

eudoprimo commented 8 years ago

hello! i want dowsample of 48000 Hz to 8000 Hz and 8 bits. how to solve this ?

hkuhn42 commented 8 years ago

If you want to downsample the export, this can be done by modifiying exportWav and encodeWav methods in recorder.js

i have a working example with 16000 at https://github.com/hkuhn42/Recorderjs/tree/hkuhn4-downsample. Just find-replace the 16000 with 8000

GainSury commented 7 years ago

@hkuhn42 so... how to export example with 16000.i use your code but it is still 44100

doraddl commented 6 years ago

this demo can change output sampleRate https://www.cnblogs.com/shanshuidaoren/p/6530890.html