I need to merge 400 pairs of audio files into 400 output files. The pairs are in one folder with names like this:
- 001-filename-beg.mp3,
- 001-filename-end.mp3,
- 002-filename-beg.mp3,
- 002-filename-end.mp3,
- etc.
The second file in each pair should be appended to the first creating a new file for each pair. I'm experimenting with sox and mp3wrap in for loops but my knowledge is lacking. I'm doing this manually in the shell. Example:
sox 001-Red-Throated-Diver-bird.mp3 001-Red-Throated-Diver-espeak.mp3 001-Red-Throated-Diver.mp3
and it works fine. I would like to automate it for all pairs.