Update README.md
Browse files
README.md
CHANGED
@@ -12,13 +12,6 @@ short_description: 'Streamlit application that detects the English accent '
|
|
12 |
license: mit
|
13 |
---
|
14 |
|
15 |
-
# Welcome to Streamlit!
|
16 |
-
|
17 |
-
Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
|
18 |
-
|
19 |
-
If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
|
20 |
-
forums](https://discuss.streamlit.io).
|
21 |
-
|
22 |
|
23 |
# ποΈ English Accent Audio Detector
|
24 |
|
@@ -40,6 +33,50 @@ This app uses the Accent-ID model developed by Juan Pablo Zuluaga on the CommonA
|
|
40 |
|
41 |
The model is implemented using the SpeechBrain toolkit, a powerful open-source speech processing framework built on PyTorch.
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
## βοΈ Setup Instructions
|
45 |
|
@@ -92,47 +129,6 @@ Download from https://ffmpeg.org/download.html and add it to your system PATH.
|
|
92 |
<pre lang="text"> English_Accent_Audio_Detector/ βββ app.py # Main Streamlit application βββ README.md # Project documentation with usage instructions βββ requirements.txt # Python dependencies βββ packages.txt # System-level packages (e.g., ffmpeg) βββ utils/ # Utility modules β βββ __init__.py # Makes utils a package β βββ accent_analysis.py # Logic for analyzing and classifying accents β βββ audio_processing.py# Audio trimming and processing β βββ session_utils.py # Session state utilities β βββ video_processing.py# YouTube/video handling βββ models/ # Model management βββ __init__.py # Makes models a package βββ custom_interface.py# HuggingFace interface for the model βββ model_loader.py # Loads Wav2Vec2 and Whisper models </pre>
|
93 |
|
94 |
|
95 |
-
### π How to Use
|
96 |
-
* Run the app:
|
97 |
-
|
98 |
-
* Choose Input Method:
|
99 |
-
|
100 |
-
* Upload a video file (.mp4, .mov, .avi, .mkv)
|
101 |
-
|
102 |
-
* Or paste a valid YouTube URL.
|
103 |
-
|
104 |
-
* Click "Download Video" (for YouTube) or upload file directly.
|
105 |
-
|
106 |
-
* Click "Extract Audio"
|
107 |
-
The app:
|
108 |
-
|
109 |
-
* Extracts and trims audio to 2 minutes
|
110 |
-
|
111 |
-
* Transcribes the content
|
112 |
-
|
113 |
-
* Checks for English language
|
114 |
-
|
115 |
-
* Click "Analyze Accent"
|
116 |
-
|
117 |
-
Displays the detected accent and confidence score.
|
118 |
-
|
119 |
-
### π§ Supported English Accents
|
120 |
-
* American
|
121 |
-
* British
|
122 |
-
* Australian
|
123 |
-
* Indian
|
124 |
-
* Canadian
|
125 |
-
* Bermudian
|
126 |
-
* Scottish
|
127 |
-
* African
|
128 |
-
* Irish
|
129 |
-
* New Zealand
|
130 |
-
* Welsh
|
131 |
-
* Malaysian
|
132 |
-
* Philippine
|
133 |
-
* Singaporean
|
134 |
-
* Hong Kong
|
135 |
-
* South Atlantic
|
136 |
|
137 |
### π οΈ Troubleshooting
|
138 |
FFmpeg Not Found: Ensure itβs installed and accessible from the terminal/command prompt.
|
|
|
12 |
license: mit
|
13 |
---
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
# ποΈ English Accent Audio Detector
|
17 |
|
|
|
33 |
|
34 |
The model is implemented using the SpeechBrain toolkit, a powerful open-source speech processing framework built on PyTorch.
|
35 |
|
36 |
+
### π How to Use
|
37 |
+
* Run the app:
|
38 |
+
|
39 |
+
* Choose Input Method:
|
40 |
+
|
41 |
+
* Upload a video file (.mp4, .mov, .avi, .mkv)
|
42 |
+
|
43 |
+
* Or paste a valid YouTube URL.
|
44 |
+
|
45 |
+
* Click "Download Video" (for YouTube) or upload file directly.
|
46 |
+
|
47 |
+
* Click "Extract Audio"
|
48 |
+
The app:
|
49 |
+
|
50 |
+
* Extracts and trims audio to 2 minutes
|
51 |
+
|
52 |
+
* Transcribes the content
|
53 |
+
|
54 |
+
* Checks for English language
|
55 |
+
|
56 |
+
* Click "Analyze Accent"
|
57 |
+
|
58 |
+
Displays the detected accent and confidence score
|
59 |
+
|
60 |
+
|
61 |
+
### π§ Supported English Accents
|
62 |
+
* American
|
63 |
+
* British
|
64 |
+
* Australian
|
65 |
+
* Indian
|
66 |
+
* Canadian
|
67 |
+
* Bermudian
|
68 |
+
* Scottish
|
69 |
+
* African
|
70 |
+
* Irish
|
71 |
+
* New Zealand
|
72 |
+
* Welsh
|
73 |
+
* Malaysian
|
74 |
+
* Philippine
|
75 |
+
* Singaporean
|
76 |
+
* Hong Kong
|
77 |
+
* South Atlantic
|
78 |
+
|
79 |
+
|
80 |
|
81 |
## βοΈ Setup Instructions
|
82 |
|
|
|
129 |
<pre lang="text"> English_Accent_Audio_Detector/ βββ app.py # Main Streamlit application βββ README.md # Project documentation with usage instructions βββ requirements.txt # Python dependencies βββ packages.txt # System-level packages (e.g., ffmpeg) βββ utils/ # Utility modules β βββ __init__.py # Makes utils a package β βββ accent_analysis.py # Logic for analyzing and classifying accents β βββ audio_processing.py# Audio trimming and processing β βββ session_utils.py # Session state utilities β βββ video_processing.py# YouTube/video handling βββ models/ # Model management βββ __init__.py # Makes models a package βββ custom_interface.py# HuggingFace interface for the model βββ model_loader.py # Loads Wav2Vec2 and Whisper models </pre>
|
130 |
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
|
133 |
### π οΈ Troubleshooting
|
134 |
FFmpeg Not Found: Ensure itβs installed and accessible from the terminal/command prompt.
|