Spaces:
Sleeping
Sleeping
title: English Accent Detector | |
emoji: 🎙️ | |
colorFrom: blue | |
colorTo: green | |
sdk: gradio | |
sdk_version: 5.31.0 | |
app_file: app.py | |
pinned: false | |
short_description: Detect English accents from video URLs | |
# English Accent Detector | |
A Gradio-based tool for detecting and classifying English accents from public video URLs (e.g., YouTube, Loom). It first determines if the speaker is speaking English, then analyzes accent patterns with confidence scores for American, British, Australian, and other English variants. | |
--- | |
## 🚀 Features | |
* **Public URL support**: Download audio from YouTube, Loom, or direct MP4 links via `yt_dlp`. | |
* **English language detection**: Uses SpeechBrain's language-ID model to filter for English speakers. | |
* **Random-slice sampling**: Analyzes multiple random 8-second windows for robust classification. | |
* **Accent classification**: Classifies each slice using a pretrained ECAPA model and aggregates results. | |
* **Comprehensive confidence scoring**: Returns English detection confidence and accent classification scores. | |
* **Interactive UI**: Simple Gradio interface—paste URL, choose sample count, click *Analyze Accent*. | |
--- | |
## 🛠️ Requirements | |
* Python 3.8+ (tested on 3.10) | |
* Dependencies listed in `requirements.txt` | |