import librosa
import glob
path=glob.glob('E:/...*/*.wav')
for i in range(len(path)) :
y, sr = librosa.load(path[i], sr=16000)
z=librosa.get_duration(y)
return average(z)
How to find the average of all z values also can I find the max and min duration of audio files.