I'm trying to add background audio to a primary wav file.
sox -m primary.wav background.wav output.wav
I have about 5s of background chatter in background.wav and I'd like the output to always be at the length of primary. How can I make sox loop and trim background.wav to the length of primary for mixing in shell?