soxi
Display audio file format information
TLDR
Show file info
$ soxi [audio.wav]
Show durationcopy
$ soxi -D [audio.wav]
Show sample ratecopy
$ soxi -r [audio.wav]
Show channelscopy
$ soxi -c [audio.wav]
Show bit depthcopy
$ soxi -b [audio.wav]
Show encodingcopy
$ soxi -e [audio.wav]
Show file typecopy
$ soxi -t [audio.wav]
Show total duration of multiple filescopy
$ soxi -T [file1.wav] [file2.wav]
copy
SYNOPSIS
soxi [-D] [-r] [-c] [-b] [options] files
DESCRIPTION
soxi displays audio file information. It's part of SoX (Sound eXchange).Duration shows file length. Seconds or time format available.Technical parameters show format details. Sample rate, bit depth, channels.Multiple files can be queried. Summary totals available.Output is scriptable. Individual values returned for parsing.
PARAMETERS
-D
Duration in seconds.-d
Duration in time format.-r
Sample rate.-c
Channel count.-b
Bits per sample.-e
Encoding type.-t
File type.-s
Sample count.-V[level]
Set verbosity level.-T
Total duration when multiple files are given.
CAVEATS
Part of SoX suite. Not all formats supported. Metadata limited to audio properties.
HISTORY
soxi is the info utility from SoX (Sound eXchange), the Swiss Army knife of audio processing. Created by Chris Bagwell and others.