Skip to content

Instantly share code, notes, and snippets.

View relativeflux's full-sized avatar

relativeflux

  • PRiSM (Practice and Research in Science and Music, RNCM)
  • Manchester, UK
View GitHub Profile
@relativeflux
relativeflux / Audio Feature Extraction.py
Created October 18, 2021 21:54 — forked from gvyshnya/Audio Feature Extraction.py
Audio Feature Extraction from Audio Files using Librosa
def extract_feature_means(audio_file_path: str) -> pd.DataFrame:
# config settings
number_of_mfcc = c.NUMBER_OF_MFCC
# 1. Importing 1 file
y, sr = librosa.load(audio_file_path)
# Trim leading and trailing silence from an audio signal (silence before and after the actual audio)
signal, _ = librosa.effects.trim(y)