Aditigo commited on
Commit
e63341c
·
verified ·
1 Parent(s): da1806c

added requirements.txt

Browse files
Files changed (2) hide show
  1. README.md +27 -6
  2. requirements.txt +5 -0
README.md CHANGED
@@ -1,13 +1,34 @@
1
  ---
2
- title: DetectAccent
3
- emoji: 🏢
4
- colorFrom: green
5
- colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 5.31.0
8
  app_file: app.py
9
  pinned: false
10
- short_description: 'tool for detecting and classifying English accents '
11
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: English Accent Detector
3
+ emoji: 🎙️
4
+ colorFrom: blue
5
+ colorTo: green
6
  sdk: gradio
7
  sdk_version: 5.31.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: Detect English accents from video URLs
11
  ---
12
+ # English Accent Detector
13
+
14
+ 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.
15
+
16
+ ---
17
+
18
+ ## 🚀 Features
19
+
20
+ * **Public URL support**: Download audio from YouTube, Loom, or direct MP4 links via `yt_dlp`.
21
+ * **English language detection**: Uses SpeechBrain's language-ID model to filter for English speakers.
22
+ * **Random-slice sampling**: Analyzes multiple random 8-second windows for robust classification.
23
+ * **Accent classification**: Classifies each slice using a pretrained ECAPA model and aggregates results.
24
+ * **Comprehensive confidence scoring**: Returns English detection confidence and accent classification scores.
25
+ * **Interactive UI**: Simple Gradio interface—paste URL, choose sample count, click *Analyze Accent*.
26
+
27
+ ---
28
+
29
+ ## 🛠️ Requirements
30
+
31
+ * Python 3.8+ (tested on 3.10)
32
+ * Dependencies listed in `requirements.txt`
33
+
34
 
 
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ gradio>=3.0
2
+ torch
3
+ torchaudio
4
+ speechbrain
5
+ yt-dlp