File size: 718 Bytes
ae319c7
 
8866da3
 
 
 
 
 
 
 
 
ae319c7
 
3152dd0
 
 
 
 
 
 
 
 
 
b42504f
3152dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: "English Accent Classifier!"
emoji: "🎤"
colorFrom: red
colorTo: pink
sdk: gradio
sdk_version: 5.30.0
app_file: app.py
pinned: false
license: other
short_description: Detects & classifies  accents of English speakers.
---

English Accent Classifier!

How it works? 

1) Takes video url or video file
2) Converts it into audio
3) Uses `whisper-tiny` to know which language is being spoken
4) If video language is english then uses speech brain's accent id classifier to show speaker accent along with confidence score.

Q: What if my transformer version doesn't expose `return_language` for `whisper-tiny`?

A: Then it will approximate the language by counting which language's tokens it is using the most.