How do I get an audio file sample rate using sox?

just use: soxi <filename> or sox –i <filename> to produce output such as: Input File : ‘final.flac’ Channels : 4 Sample Rate : 44100 Precision : 16-bit Duration : 00:00:11.48 = 506179 samples = 860.849 CDDA sectors File Size : 2.44M Bit Rate : 1.70M Sample Encoding: 16-bit FLAC Comment : ‘Comment=Processed by SoX’ The … Read more