Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Accent Classifier
|
3 |
+
emoji: 🎙️
|
4 |
+
colorFrom: indigo
|
5 |
+
colorTo: purple
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: "3.38.1"
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
+
# Accent Classifier 🎙️
|
13 |
+
|
14 |
+
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.
|
15 |
+
|
16 |
+
1. Paste a public YouTube or Vimeo URL.
|
17 |
+
2. The app uses `yt-dlp` to grab the audio.
|
18 |
+
3. `ffmpeg` converts it to a 16 kHz WAV file.
|
19 |
+
4. A Hugging Face pipeline (`superb/wav2vec2-base-superb-sid`) predicts a speaker ID and confidence.
|
20 |
+
5. Temporary files are cleaned up automatically.
|
21 |
+
|
22 |
+
> **Note:** You must have `ffmpeg` installed and on your PATH. If `yt-dlp` is missing, the script will install it at runtime.
|