Usage: soxi [-V[level]] [-T] [-t|-r|-c|-s|-d|-D|-b|-B|-p|-e|-a] infile1 ...
-V[n] Increment or set verbosity level (default is 2)
soxi FAYUAN60000_0000000.wav
Input File : 'FAYUAN60000_0000000.wav'
Channels : 2
Sample Rate : 16000
Precision : 16-bit
Duration : 00:00:04.15 = 66400 samples ~ 311.25 CDDA sectors
File Size : 266k
Bit Rate : 512k
Sample Encoding: 16-bit Signed Integer PCM
soxi -V4 FAYUAN60000_0000000.wav
soxi INFO formats: detected file format type `wav'
soxi DBUG wav: Searching for 66 6d 74 20
soxi DBUG wav: WAV Chunk fmt
soxi DBUG wav: Searching for 64 61 74 61
soxi DBUG wav: WAV Chunk data
soxi DBUG wav: Reading Wave file: Microsoft PCM format, 2 channels, 16000 samp/sec
soxi DBUG wav: 64000 byte/sec, 4 block align, 16 bits/samp, 265600 data bytes
soxi DBUG wav: 66400 Samps/chans
soxi DBUG wav: Searching for 4c 49 53 54
Input File : 'FAYUAN60000_0000000.wav'
Channels : 2
Sample Rate : 16000
Precision : 16-bit
Duration : 00:00:04.15 = 66400 samples ~ 311.25 CDDA sectors
File Size : 266k
Bit Rate : 512k
Sample Encoding: 16-bit Signed Integer PCM
-T With -s, -d or -D, display the total across all given files
当-s, -d, -D一起使用的时候,显示的是最后一个参数的值
soxi -T FAYUAN60000_0000000.wav FAYUAN80001_0000000.wav
soxi -T -s FAYUAN60000_0000000.wav FAYUAN80001_0000000.wav
soxi -T -D FAYUAN60000_0000000.wav FAYUAN80001_0000000.wav
soxi -T -s -D FAYUAN60000_0000000.wav FAYUAN80001_0000000.wav
# -T
Input File : 'FAYUAN60000_0000000.wav'
Channels : 2
Sample Rate : 16000
Precision : 16-bit
Duration : 00:00:04.15 = 66400 samples ~ 311.25 CDDA sectors
File Size : 266k
Bit Rate : 512k
Sample Encoding: 16-bit Signed Integer PCM
Input File : 'FAYUAN80001_0000000.wav'
Channels : 2
Sample Rate : 16000
Precision : 16-bit
Duration : 00:00:03.90 = 62400 samples ~ 292.5 CDDA sectors
File Size : 250k
Bit Rate : 512k
Sample Encoding: 16-bit Signed Integer PCM
Total Duration of 2 files: 00:00:08.05
# -T -s
128800.000000
# -T -d
00:00:08.05
# -T -D
8.050000
# -T -s -D
8.050000
-t Show detected file-type
soxi -t FAYUAN60000_0000000.wav
wav
-r Show sample-rate
soxi -r FAYUAN60000_0000000.wav
16000
-c Show number of channels
soxi -c FAYUAN60000_0000000.wav
2
-s Show number of samples (0 if unavailable)
soxi -s FAYUAN60000_0000000.wav
66400
-d Show duration in hours, minutes and seconds (0 if unavailable)
soxi -d FAYUAN60000_0000000.wav
00:00:04.15
-D Show duration in seconds (0 if unavailable)
soxi -D FAYUAN60000_0000000.wav
4.150000
-b Show number of bits per sample (0 if not applicable)
soxi -b FAYUAN60000_0000000.wav FAYUAN80001_0000000.wav
16
16
-B Show the bitrate averaged over the whole file (0 if unavailable)
soxi -B FAYUAN60000_0000000.wav
512K
-p Show estimated sample precision in bits
soxi -p FAYUAN60000_0000000.wav
16
-e Show the name of the audio encoding
soxi -e FAYUAN60000_0000000.wav
Signed Integer PCM
-a Show file comments (annotations) if available
soxi -a FAYUAN60000_0000000.wav
# 我的音频文件没有这个注释