soxi
Displays information from the header of a given audio file or files.[1]
Documentation
- man 1 'soxi' [EN]
Syntax
soxi [PARAMETER ...] [FILE ...]
Parameters
- -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).
- -t
- Show detected file-type.
Examples
- Get file length in seconds
soxi -D "${HOME}/tmp/alex.wav"
References
- ↑ man 1 'soxi'