Hi there @chrisstaite! Thank you for all the work put into this library!
I was wondering if you'd be open to a PR that exposes the --resample flag?
I have some audio I need to have converted from WAV to 32kbps bit rate and a 44.1khz sample rate mp3 and as is, with the code below LAME is automatically resampling the audio to a lower sample rate (22.05khz)
From some documentation, it looks as though this is expected and you have to resample the audio in LAME to get the desired output sample rate:
If not specified, LAME may sometimes resample automatically
when faced with extreme compression conditions (like encoding
a 44.1 kHz input file at 32 kbps). To disable this automatic
resampling, you have to use --resample to set the output samplerate
equal to the input samplerate. In that case, LAME will not
perform any extra computations.
Hi there @chrisstaite! Thank you for all the work put into this library! I was wondering if you'd be open to a PR that exposes the
--resample
flag? I have some audio I need to have converted from WAV to 32kbps bit rate and a 44.1khz sample rate mp3 and as is, with the code below LAME is automatically resampling the audio to a lower sample rate (22.05khz)From some documentation, it looks as though this is expected and you have to resample the audio in LAME to get the desired output sample rate: