Extracting Mel Spectrograms with Pytorch and Torchaudio @ValerioVelardoTheSoundofAI
Extracting Mel Spectrograms with Pytorch and Torchaudio  @ValerioVelardoTheSoundofAI
Uploaded June 2021 | Updated September 2026, 2 weeks ago
Learn how to extract Mel Spectrograms and resampling audio with torchaudio. I also review the most common torchaudio transforms and explain how you can use them.

Code:
github.com/musikalkemist/pytorchforaudio/tree/main/05%20Extracting%20Mel%20spectrograms

===============================

Interested in hiring me as a consultant/freelancer?
valeriovelardo.com

Join The Sound Of AI Slack community:
valeriovelardo.com/the-sound-of-ai-community

Connect with Valerio on Linkedin:
linkedin.com/in/valeriovelardo

Follow Valerio on Facebook:
facebook.com/TheSoundOfAI

Follow Valerio on Twitter:
twitter.com/musikalkemist​

===============================

Content
0:00 Intro
0:46 Torchaudio transformations
2:56 Instantiating MelSpectrogram
4:36 Extracting Mel spectrograms in UrbanSoundDataset
9:51 Resample and mix down in getitem
12:45 Resampling signal
15:52 Mixing down signal to mono
20:04 Getitem recap
21:08 Running the script to extract mel spectrogram
21:49 Outro
Extracting Mel Spectrograms with Pytorch and Torchaudio5 Tips to Improve your AI (Audio) Job ApplicationsDeploying the Speech Recognition System on Docker with NGINXInterface Segregation Principle for Machine Learning: Theory and PracticeOpenSource Research Project: Post-Mortem Analysis10.  Chord Generation with Generative Grammars - Generative Music AIWorking in Academia VS Startup Company in AI MusicHow to Create Melody Sequences to Train a Neural NetowrkSound Generation with Deep Learning || Approaches and ChallengesHow Voice Cloning Works: Explained EASILYThe Best Library to Augment Audio Data: AudiomentationsExtracting the amplitude envelope feature from scratch in Python
Valerio Velardo - The Sound of AI |

Extracting Mel Spectrograms with Pytorch and Torchaudio

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER