Back when I played with audio FFMpeg was my batch-able open source tool of choice. Terminal only, of course, but it is included within other common projects such as VLC.
You can install it in a Mac via any package manager such as HomeBrew or directly install the package from FFMpeg.org