How it works…

SoX is used for reading and writing audio files. The libsox library is the heart of the SoX tool. The play command is used to play the audio files. To play all mp3 files, we used *mp3. To play a specific file, just write filename with the extension after the play command.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.