sampling_rate()¶
- audiofile.sampling_rate(file)[source]¶
Sampling rate of audio file.
- Parameters:
file (
str|IOBase) – file name of input audio file or file-like object- Return type:
- Returns:
sampling rate of audio file
- Raises:
FileNotFoundError – if mediainfo binary is needed, but cannot be found
RuntimeError – if
fileis missing, broken or format is not supported
Examples
>>> audiofile.sampling_rate("stereo.wav") 8000