A newer version of the Gradio SDK is available:
5.33.0
metadata
title: Accent Classifier
emoji: ποΈ
colorFrom: indigo
colorTo: purple
sdk: gradio
sdk_version: 5.32.0
app_file: app.py
pinned: false
Accent Classifier ποΈ
This Gradio app downloads a public YouTube or Vimeo video, extracts its audio, and classifies the speaker (as a proxy for accent) using a Hugging Face model.
- Paste a public YouTube or Vimeo URL.
- The app uses
yt-dlp
to grab the audio. ffmpeg
converts it to a 16 kHz WAV file.- A Hugging Face pipeline (
superb/wav2vec2-base-superb-sid
) predicts a speaker ID and confidence. - Temporary files are cleaned up automatically.
Note: You must have
ffmpeg
installed and on your PATH. Ifyt-dlp
is missing, the script will install it at runtime.