Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

question about feature extraction #3

Open
AliD201 opened this issue Apr 17, 2020 · 0 comments
Open

question about feature extraction #3

AliD201 opened this issue Apr 17, 2020 · 0 comments

Comments

@AliD201
Copy link

AliD201 commented Apr 17, 2020

i see in feature extraction after this piece of code

audio_data, sample_rate = librosa.load(file_name) stft = np.abs(librosa.stft(audio_data))

that you some time use stf and some times use audio_data
like

mfcc = np.mean(librosa.feature.mfcc(y=audio_data, sr=sample_rate, n_mfcc=40).T,axis=0)
    features.extend(mfcc) # 40 = 40  
chroma = np.mean(librosa.feature.chroma_stft(S=stft, sr=sample_rate).T,axis=0)
features.extend(chroma) # 12 = 52`

why is that ? what is the difference ? would like you to elaborate more on this. :)

Thank you !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant