Linux command
soxi 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show file info
soxi [audio.wav]
Show duration
soxi -D [audio.wav]
Show sample rate
soxi -r [audio.wav]
Show channels
soxi -c [audio.wav]
Show bit depth
soxi -b [audio.wav]
Show encoding
soxi -e [audio.wav]
Show file type
soxi -t [audio.wav]
Show total duration of multiple files
soxi -T [file1.wav] [file2.wav]
说明
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.
参数
- -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.
FAQ
What is the soxi command used for?
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.
How do I run a basic soxi example?
Run `soxi [audio.wav]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -D do in soxi?
Duration in seconds.