10.2 Audio Combine

20241029

The simplest and quickest is to use sox. This will processes the audio and undertake any conversions required for the final output format (from the filename extension) and so can take a little time to accomplish the combination.

sox cha*.ogg mybook.mp3

Another approach is to use mp3wrap which creates an mp3 container that contains the other original mp3 files. The resulting mp3 filename includes the string MP3WRAP to identify it as a container. The following tags are also added, identifying mp3wrap: title, artist, album, and comment.. There is a companion mp3splt to recover the original mp3 files.

mp3wrap mybook.mp3 cha*.mp3

We can also use ffmpeg to concatenate audio files with different encodings even.

ffmpeg -i "concat:cha01.mp3|cha02.mp3|cha03.mp3" -acodec copy mybook.mp3 


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0