soxi1
Sound exchange information, display sound file metadata
Part of soxi_ng(1).
Usage
soxi_ng [-V
[level]]
[-T]
[{-t | -r | -c | -s | -d | -D | -b | -B | -p | -e | -a}]
infile1 ...
Overview
Displays information from the header of a given audio file or files. Supported audio file types are listed and described in soxformat_ng(7). Note however, that soxi_ng is intended for use only with audio files with a self-describing header.
By default, as much information as is available is shown. An option may be given to select just a single piece of information (perhaps for use in a script or batch file).
Options
-
-V -
Set verbosity. See sox_ng(1) for details.
-
-T -
Used with multiple files; changes the behavior of
-s,-dand-Dto display the total across all given files. Note that when used with-swith files with different sampling rates, this is of questionable value.
-
-t -
Show detected file type.
-
-r -
Show sample-rate.
-
-c -
Show number of channels.
-
-s -
Show number of samples (0 if unavailable).
-
-d -
Show duration in hours, minutes and seconds (0 if unavailable). Equivalent to number of samples divided by the sample-rate.
-
-D -
Show duration in seconds (0 if unavailable).
-
-b -
Show number of bits per sample (0 if not applicable).
-
-B -
Show the average bitrate of the audio data (0 if unavailable). For Ogg and Opus files, it will be slightly higher than reality as the size of the file header is not easily discovered.
-
-p -
Show estimated sample precision in bits.
-
-e -
Show the name of the audio encoding.
-
-a -
Show file comments (annotations) if available.
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie) to Debian 10 (Buster)
- Debian 9 (Stretch) to Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)
-p since Debian 10 (Buster).