AccentDetect / README.md
aish31's picture
Shorten short_description to ≤60 chars
7cf1a84

A newer version of the Gradio SDK is available: 5.42.0

Upgrade
metadata
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