Resample 8000Hz s16le for use in Bumblebee whisper model (16000Hz 32f)

you should use our FFmpeg SWResample plugin. The docs contain an example of a thing similar to what you want to do, except for the fact that the input is a file instead of a in-memory binary. Let me know if you have any trouble!