import audioread with audioread.audio_open('audiofile.wav') as f: print("Sample rate:", f.samplerate) print("Channels:", f.channels)