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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ============================================================================
|
| 2 |
+
# footer.py - Contains all footer HTML and social links for ZamVoice
|
| 3 |
+
# ============================================================================
|
| 4 |
+
|
| 5 |
+
def get_footer_html() -> str:
|
| 6 |
+
"""
|
| 7 |
+
Returns the complete footer HTML for the ZamVoice Gradio app.
|
| 8 |
+
Includes acknowledgments, data privacy, and social media links.
|
| 9 |
+
"""
|
| 10 |
+
return """
|
| 11 |
+
<div style="
|
| 12 |
+
margin-top: 3rem;
|
| 13 |
+
padding: 2rem 1.5rem;
|
| 14 |
+
background: #f8f9fa;
|
| 15 |
+
border-top: 3px solid #198038;
|
| 16 |
+
border-radius: 8px;
|
| 17 |
+
font-size: 0.95rem;
|
| 18 |
+
line-height: 1.6;
|
| 19 |
+
color: #1a1a1a;
|
| 20 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 21 |
+
">
|
| 22 |
+
|
| 23 |
+
<hr style="border: none; border-top: 2px dashed #ccc; margin-bottom: 1.5rem;">
|
| 24 |
+
|
| 25 |
+
<!-- ============================================================ -->
|
| 26 |
+
<!-- ACKNOWLEDGMENT SECTION -->
|
| 27 |
+
<!-- ============================================================ -->
|
| 28 |
+
<div style="max-width: 900px; margin: 0 auto;">
|
| 29 |
+
|
| 30 |
+
<h3 style="color: #c8102e; font-size: 1.1rem; margin-bottom: 0.5rem;">
|
| 31 |
+
β οΈ Important Acknowledgment
|
| 32 |
+
</h3>
|
| 33 |
+
|
| 34 |
+
<p>
|
| 35 |
+
<strong>ZamVoice is a student research lead project demonstrator.</strong>
|
| 36 |
+
</p>
|
| 37 |
+
|
| 38 |
+
<p>
|
| 39 |
+
The speech datasets used to train these models are from the
|
| 40 |
+
<strong>Zambezi Voice Corpus</strong>, a project led by
|
| 41 |
+
<strong>Claytone Sikasote</strong> and the
|
| 42 |
+
<strong>University of Zambia Speech and Language Research Group</strong>.
|
| 43 |
+
</p>
|
| 44 |
+
|
| 45 |
+
<p>
|
| 46 |
+
If you use this code, please ensure you
|
| 47 |
+
<strong>CITE THE ZAMBEZI VOICE PAPER FIRST</strong>:
|
| 48 |
+
</p>
|
| 49 |
+
|
| 50 |
+
<pre style="
|
| 51 |
+
background: #e9ecef;
|
| 52 |
+
padding: 1rem;
|
| 53 |
+
border-radius: 6px;
|
| 54 |
+
font-size: 0.8rem;
|
| 55 |
+
overflow-x: auto;
|
| 56 |
+
border-left: 4px solid #198038;
|
| 57 |
+
white-space: pre-wrap;
|
| 58 |
+
word-wrap: break-word;
|
| 59 |
+
">
|
| 60 |
+
@inproceedings{sikasote23_interspeech,
|
| 61 |
+
author={Claytone Sikasote and Kalinda Siaminwe and Stanly Mwape and Bangiwe Zulu
|
| 62 |
+
and Mofya Phiri and Martin Phiri and David Zulu and Mayumbo Nyirenda
|
| 63 |
+
and Antonios Anastasopoulos},
|
| 64 |
+
title={{Zambezi Voice: A Multilingual Speech Corpus for Zambian Languages}},
|
| 65 |
+
year=2023,
|
| 66 |
+
booktitle={Proc. INTERSPEECH 2023},
|
| 67 |
+
pages={3984--3988},
|
| 68 |
+
doi={10.21437/Interspeech.2023-1979}
|
| 69 |
+
}
|
| 70 |
+
</pre>
|
| 71 |
+
|
| 72 |
+
<p style="font-size: 0.9rem; color: #495057;">
|
| 73 |
+
<strong>My contribution (ZamVoice)</strong> is the model training pipeline,
|
| 74 |
+
the local deployment infrastructure, and the demonstration interface
|
| 75 |
+
built on top of this corpus.
|
| 76 |
+
</p>
|
| 77 |
+
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<hr style="border: none; border-top: 1px solid #dee2e6; margin: 1.5rem 0;">
|
| 81 |
+
|
| 82 |
+
<!-- ============================================================ -->
|
| 83 |
+
<!-- DATA PRIVACY & CONTRIBUTIONS SECTION -->
|
| 84 |
+
<!-- ============================================================ -->
|
| 85 |
+
<div style="max-width: 900px; margin: 0 auto;">
|
| 86 |
+
|
| 87 |
+
<h3 style="color: #c8102e; font-size: 1.1rem; margin-bottom: 0.5rem;">
|
| 88 |
+
π’ Data Privacy & Contributions
|
| 89 |
+
</h3>
|
| 90 |
+
|
| 91 |
+
<p>
|
| 92 |
+
<strong>By submitting audio through this application, you acknowledge
|
| 93 |
+
and agree that your recording will be made publicly available</strong>
|
| 94 |
+
as part of the ongoing ZamVoice research dataset.
|
| 95 |
+
</p>
|
| 96 |
+
|
| 97 |
+
<p>
|
| 98 |
+
All submissions are anonymized. No personally identifiable information
|
| 99 |
+
(PII) is collected or stored alongside the audio files.
|
| 100 |
+
</p>
|
| 101 |
+
|
| 102 |
+
<p>
|
| 103 |
+
If you have any questions, would like to report an issue,
|
| 104 |
+
or are interested in contributing to this project, please reach out:
|
| 105 |
+
</p>
|
| 106 |
+
|
| 107 |
+
<p style="
|
| 108 |
+
background: #e9ecef;
|
| 109 |
+
padding: 0.75rem 1rem;
|
| 110 |
+
border-radius: 6px;
|
| 111 |
+
display: inline-block;
|
| 112 |
+
font-weight: 500;
|
| 113 |
+
">
|
| 114 |
+
π§ <a href="mailto:buumbachinjila@gmail.com" style="color: #198038; text-decoration: none;">
|
| 115 |
+
Buumba Chinjila
|
| 116 |
+
</a> β buumbachinjila@gmail.com
|
| 117 |
+
</p>
|
| 118 |
+
|
| 119 |
+
<p style="font-size: 0.85rem; color: #6c757d; margin-top: 0.5rem;">
|
| 120 |
+
We welcome feedback, collaboration, and community contributions!
|
| 121 |
+
</p>
|
| 122 |
+
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<hr style="border: none; border-top: 1px solid #dee2e6; margin: 1.5rem 0;">
|
| 126 |
+
|
| 127 |
+
<!-- ============================================================ -->
|
| 128 |
+
<!-- SOCIAL MEDIA PROFILES SECTION -->
|
| 129 |
+
<!-- ============================================================ -->
|
| 130 |
+
<div style="max-width: 900px; margin: 0 auto; text-align: center;">
|
| 131 |
+
|
| 132 |
+
<h3 style="color: #0f172a; font-size: 1rem; margin-bottom: 1rem; font-weight: 600;">
|
| 133 |
+
π Connect with the Developer
|
| 134 |
+
</h3>
|
| 135 |
+
|
| 136 |
+
<div style="
|
| 137 |
+
display: flex;
|
| 138 |
+
flex-wrap: wrap;
|
| 139 |
+
justify-content: center;
|
| 140 |
+
gap: 0.75rem 1.5rem;
|
| 141 |
+
margin-bottom: 0.5rem;
|
| 142 |
+
">
|
| 143 |
+
|
| 144 |
+
<!-- LinkedIn -->
|
| 145 |
+
<a href="https://zm.linkedin.com/in/buumba-chinjila"
|
| 146 |
+
target="_blank" rel="noopener noreferrer"
|
| 147 |
+
style="color: #0a66c2; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 148 |
+
onmouseover="this.style.background='#eef4fb'"
|
| 149 |
+
onmouseout="this.style.background='transparent'">
|
| 150 |
+
<span style="font-size: 1.2rem;">π</span> LinkedIn
|
| 151 |
+
</a>
|
| 152 |
+
|
| 153 |
+
<!-- GitHub -->
|
| 154 |
+
<a href="https://github.com/buumba641"
|
| 155 |
+
target="_blank" rel="noopener noreferrer"
|
| 156 |
+
style="color: #181717; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 157 |
+
onmouseover="this.style.background='#e9ecef'"
|
| 158 |
+
onmouseout="this.style.background='transparent'">
|
| 159 |
+
<span style="font-size: 1.2rem;">π</span> GitHub
|
| 160 |
+
</a>
|
| 161 |
+
|
| 162 |
+
<!-- HuggingFace -->
|
| 163 |
+
<a href="https://huggingface.co/buumba641"
|
| 164 |
+
target="_blank" rel="noopener noreferrer"
|
| 165 |
+
style="color: #f9b000; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 166 |
+
onmouseover="this.style.background='#fef6e0'"
|
| 167 |
+
onmouseout="this.style.background='transparent'">
|
| 168 |
+
<span style="font-size: 1.2rem;">π€</span> HuggingFace
|
| 169 |
+
</a>
|
| 170 |
+
|
| 171 |
+
<!-- Facebook -->
|
| 172 |
+
<a href="https://facebook.com/buumbachinjila"
|
| 173 |
+
target="_blank" rel="noopener noreferrer"
|
| 174 |
+
style="color: #1877F2; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 175 |
+
onmouseover="this.style.background='#e4edf9'"
|
| 176 |
+
onmouseout="this.style.background='transparent'">
|
| 177 |
+
<span style="font-size: 1.2rem;">π</span> Facebook
|
| 178 |
+
</a>
|
| 179 |
+
|
| 180 |
+
<!-- WhatsApp -->
|
| 181 |
+
<a href="https://wa.me/260BUUMBA_NUMBER?text=Hi%20Buumba%2C%20I%20saw%20your%20ZamVoice%20project"
|
| 182 |
+
target="_blank" rel="noopener noreferrer"
|
| 183 |
+
style="color: #25D366; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 184 |
+
onmouseover="this.style.background='#e8f5ee'"
|
| 185 |
+
onmouseout="this.style.background='transparent'">
|
| 186 |
+
<span style="font-size: 1.2rem;">π¬</span> WhatsApp
|
| 187 |
+
</a>
|
| 188 |
+
|
| 189 |
+
<!-- Email -->
|
| 190 |
+
<a href="mailto:buumbachinjila@gmail.com"
|
| 191 |
+
target="_blank" rel="noopener noreferrer"
|
| 192 |
+
style="color: #198038; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; transition: background 0.2s;"
|
| 193 |
+
onmouseover="this.style.background='#e6f0ea'"
|
| 194 |
+
onmouseout="this.style.background='transparent'">
|
| 195 |
+
<span style="font-size: 1.2rem;">βοΈ</span> Email
|
| 196 |
+
</a>
|
| 197 |
+
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<p style="font-size: 0.8rem; color: #6c757d; margin-top: 0.75rem;">
|
| 201 |
+
Let's connect! I'm always open to collaboration, feedback, and opportunities.
|
| 202 |
+
</p>
|
| 203 |
+
|
| 204 |
+
</div>
|
| 205 |
+
|
| 206 |
+
<hr style="border: none; border-top: 1px solid #dee2e6; margin: 1.5rem 0;">
|
| 207 |
+
|
| 208 |
+
<!-- ============================================================ -->
|
| 209 |
+
<!-- FOOTER BOTTOM - PROJECT LINKS -->
|
| 210 |
+
<!-- ============================================================ -->
|
| 211 |
+
<div style="
|
| 212 |
+
max-width: 900px;
|
| 213 |
+
margin: 0 auto;
|
| 214 |
+
text-align: center;
|
| 215 |
+
font-size: 0.8rem;
|
| 216 |
+
color: #6c757d;
|
| 217 |
+
">
|
| 218 |
+
<p>
|
| 219 |
+
ZamVoice v1.0 •
|
| 220 |
+
University of Zambia •
|
| 221 |
+
Built with β€οΈ for Zambian Languages
|
| 222 |
+
</p>
|
| 223 |
+
<p>
|
| 224 |
+
<a href="https://github.com/buumba641/zamvoice"
|
| 225 |
+
style="color: #198038; text-decoration: none;">GitHub Repo</a> •
|
| 226 |
+
<a href="https://huggingface.co/datasets/buumba641/zamvoice"
|
| 227 |
+
style="color: #198038; text-decoration: none;">HuggingFace Dataset</a> •
|
| 228 |
+
<a href="https://youtu.be/YOUR_VIDEO_ID"
|
| 229 |
+
style="color: #198038; text-decoration: none;">YouTube Demo</a>
|
| 230 |
+
</p>
|
| 231 |
+
<p style="font-size: 0.75rem; color: #adb5bd; margin-top: 0.5rem;">
|
| 232 |
+
© 2026 Buumba Chinjila. All rights reserved.
|
| 233 |
+
</p>
|
| 234 |
+
</div>
|
| 235 |
+
|
| 236 |
+
</div>
|
| 237 |
+
"""
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
# ============================================================================
|
| 241 |
+
# CONTACT & CREDITS DATA (for programmatic use if needed)
|
| 242 |
+
# ============================================================================
|
| 243 |
+
|
| 244 |
+
CONTACT_INFO = {
|
| 245 |
+
"name": "Buumba Chinjila",
|
| 246 |
+
"email": "buumbachinjila@gmail.com",
|
| 247 |
+
"linkedin": "https://zm.linkedin.com/in/buumba-chinjila",
|
| 248 |
+
"github": "https://github.com/buumba641",
|
| 249 |
+
"huggingface": "https://huggingface.co/buumba641",
|
| 250 |
+
"facebook": "https://facebook.com/buumbachinjila",
|
| 251 |
+
"whatsapp": "https://wa.me/260BUUMBA_NUMBER?text=Hi%20Buumba%2C%20I%20saw%20your%20ZamVoice%20project",
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
CREDITS = {
|
| 255 |
+
"zambezi_voice_citation": """
|
| 256 |
+
@inproceedings{sikasote23_interspeech,
|
| 257 |
+
author={Claytone Sikasote and Kalinda Siaminwe and Stanly Mwape and Bangiwe Zulu
|
| 258 |
+
and Mofya Phiri and Martin Phiri and David Zulu and Mayumbo Nyirenda
|
| 259 |
+
and Antonios Anastasopoulos},
|
| 260 |
+
title={{Zambezi Voice: A Multilingual Speech Corpus for Zambian Languages}},
|
| 261 |
+
year=2023,
|
| 262 |
+
booktitle={Proc. INTERSPEECH 2023},
|
| 263 |
+
pages={3984--3988},
|
| 264 |
+
doi={10.21437/Interspeech.2023-1979}
|
| 265 |
+
}
|
| 266 |
+
""",
|
| 267 |
+
"zambezi_voice_lead": "Claytone Sikasote",
|
| 268 |
+
"zambezi_voice_group": "University of Zambia Speech and Language Research Group",
|
| 269 |
+
}
|