I think this tool does what you want using sox;
https://forum.renoise.com/t/new-tool-3-0-dbatchprocess/42213