JCrimson1 commited on
Commit
7f3e314
·
verified ·
1 Parent(s): eabc6c3

Create README.md

Browse files

# Accent Classification from English Speech in Video for PRE Interview

This project uses a pretrained ECAPA-TDNN model from [Hugging Face](https://huggingface.co/Jzuluaga/accent-id-commonaccent_ecapa) to classify **English accents** (e.g., British, Indian, American) from **spoken audio in `.mp4` video files**. It extracts audio, resamples it, and runs classification using the `speechbrain` library.

---

## 📦Dependencies

Install required Python libraries:

# macOS
brew install ffmpeg

# Ubuntu
sudo apt install ffmpeg

```bash
pip install torch torchaudio librosa pydub soundfile speechbrain ffmpeg-python

## Implementation Note

I originally experimented with downloading videos directly from **YouTube** using automated tools such as [`yt-dlp`](https://github.com/yt-dlp/yt-dlp). However, this approach required users to:

- Manually authenticate with YouTube
- Download session cookies frequently

This broke the automation goal and added friction for non-technical users.

**So I decided to simplify the experience by requiring users to manually provide the `.mp4` file.**

Files changed (1) hide show
  1. README.md +9 -0
README.md ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ title: English Accent Detector Parser
4
+ sdk: gradio
5
+ emoji: 🏢
6
+ colorFrom: indigo
7
+ colorTo: green
8
+ short_description: PreInterview project
9
+ ---