import librosa import soundfile as sf audio_path = "outlander_s01e14.flac" y, sr = librosa.load(audio_path, sr=None) Extract features tempo, _ = librosa.beat.beat_track(y=y, sr=sr) spectral_centroids = librosa.feature.spectral_centroid(y=y, sr=sr) rms = librosa.feature.rms(y=y) mfccs = librosa.feature.mfcc(y=y, sr=sr, n_mfcc=13)
It looks like you’re asking for a related to the file: "outlander s01e14 flac"
print(f"Sample rate: {sr} Hz") print(f"Estimated tempo: {tempo:.2f} BPM") print(f"Mean spectral centroid: {spectral_centroids.mean():.2f} Hz") print(f"Mean RMS energy: {rms.mean():.6f}")