1. Learn
  2. /
  3. Courses
  4. /
  5. Multi-Modal Models with Hugging Face

Connected

Exercise

Audio preprocessing

In this exercise, you will learn how to adjust the sampling rate of audio data, as well as how to use an automatic preprocessor. You will be working with the VCTK Corpus, which includes around 44-hours of speech data uttered by 110 English speakers with various accents.

The dataset has already been loaded.

Instructions

100 XP
  • Resample the audio to a frequency of 16,000 Hz in the dataset using the .cast_column() method.
  • Load the audio processor using the pretrained openai/whisper-small model.
  • Preprocess the audio data of the first datapoint, specifying the same sampling rate and padding=True.