Spaces:
Sleeping
Sleeping
Upload Readme.txt
Browse files- Readme.txt +72 -0
Readme.txt
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# AI Accent Classifier
|
2 |
+
|
3 |
+
A tool for analyzing English accents from audio files or video URLs. Perfect for evaluating spoken English in hiring processes.
|
4 |
+
|
5 |
+
## Quick Start Guide
|
6 |
+
|
7 |
+
### 1. Setup
|
8 |
+
|
9 |
+
First, install the required packages:
|
10 |
+
```bash
|
11 |
+
pip install -r requirements.txt
|
12 |
+
```
|
13 |
+
|
14 |
+
Make sure you have FFmpeg installed on your system:
|
15 |
+
- Windows: Download from [FFmpeg website](https://ffmpeg.org/download.html)
|
16 |
+
- Mac: `brew install ffmpeg`
|
17 |
+
- Linux: `sudo apt-get install ffmpeg`
|
18 |
+
|
19 |
+
### 2. Running the Application
|
20 |
+
|
21 |
+
You have three ways to use the tool:
|
22 |
+
|
23 |
+
#### A. Web Interface (Recommended)
|
24 |
+
```bash
|
25 |
+
python app.py
|
26 |
+
```
|
27 |
+
Then open: http://localhost:5000
|
28 |
+
|
29 |
+
Features:
|
30 |
+
- Upload audio files
|
31 |
+
- Paste YouTube URLs
|
32 |
+
- View detailed results
|
33 |
+
|
34 |
+
#### B. Gradio Interface (Alternative)
|
35 |
+
```bash
|
36 |
+
python detect2.py
|
37 |
+
```
|
38 |
+
Then open: http://localhost:7860
|
39 |
+
|
40 |
+
Features:
|
41 |
+
- Modern UI
|
42 |
+
- Real-time analysis
|
43 |
+
- Example files included
|
44 |
+
|
45 |
+
#### C. Command Line
|
46 |
+
```bash
|
47 |
+
python detect.py path/to/your/audio.mp3
|
48 |
+
```
|
49 |
+
|
50 |
+
### 3. Example Usage
|
51 |
+
|
52 |
+
**Using YouTube URL:**
|
53 |
+
- Go to http://localhost:5000
|
54 |
+
- Paste a YouTube URL (e.g., https://www.youtube.com/watch?v=...)
|
55 |
+
- Click "Analyze"
|
56 |
+
- View results
|
57 |
+
|
58 |
+
|
59 |
+
**Using Command Line:**
|
60 |
+
```bash
|
61 |
+
python detect.py interview_recording.mp3
|
62 |
+
```
|
63 |
+
|
64 |
+
### Understanding Results
|
65 |
+
|
66 |
+
The tool provides:
|
67 |
+
- Predicted accent (e.g., British, American)
|
68 |
+
- Confidence score (0-100%)
|
69 |
+
- Probability distribution for all accents
|
70 |
+
- Visual representation of results
|
71 |
+
|
72 |
+
Example output:
|