lamejs
lamejs copied to clipboard
Setting lower sample rate producing slow motion
I need to encode an mp3 file with bitrate 8kbps and sample rate 8000 Hz.
Here is an ffmpeg command that produces the desirable quality:
ffmpeg -i in.mp3 -codec:a libmp3lame -b:a 8k -ar 8000 out.mp3
Modifying worker-realtime.js
for mic.html
example on line 22 produces the result that sounds like slow motion.
mp3Encoder = new lamejs.Mp3Encoder(1, 44100/2, config.bitRate || 123);
Update: I found out that there was a related pull request from 2015 that was never merged https://github.com/zhuker/lamejs/pull/11
@zhuker are you still maintaining this great library?