I have over a thousand audio files, and I want to check if their sample rate is 16kHz. To do it manually would take me forever. Is there a way to check the sample rate using python?
!pip install pydub

from pydub.utils import mediainfo
info=mediainfo("abc.wav")
print(info)
Check audio's sample rate using python