Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -309,7 +309,7 @@ def build_interface():
|
|
309 |
choices=SPEAKER_NAMES,
|
310 |
value="Bourama" if "Bourama" in SPEAKER_NAMES else SPEAKER_NAMES[0],
|
311 |
label="π£οΈ Speaker Voice",
|
312 |
-
info=f"Choose from {len(SPEAKER_NAMES)} authentic voices
|
313 |
)
|
314 |
|
315 |
generate_btn = gr.Button("π΅ Generate Speech", variant="primary", size="lg")
|
@@ -390,33 +390,11 @@ def build_interface():
|
|
390 |
)
|
391 |
|
392 |
with gr.Accordion("About", open=False):
|
393 |
-
# Generate speaker characteristics dynamically based on available speakers
|
394 |
-
speaker_characteristics = {
|
395 |
-
"Bourama": "Most stable and accurate (recommended)",
|
396 |
-
"Adama": "Natural conversational tone",
|
397 |
-
"Moussa": "Clear pronunciation for educational content",
|
398 |
-
"Modibo": "Expressive delivery for storytelling",
|
399 |
-
"Seydou": "Balanced characteristics for general use",
|
400 |
-
"Amadou": "Warm and friendly voice",
|
401 |
-
"Bakary": "Deep, authoritative tone",
|
402 |
-
"Ngolo": "Youthful and energetic",
|
403 |
-
"Ibrahima": "Calm and measured delivery",
|
404 |
-
"Amara": "Melodic and smooth"
|
405 |
-
}
|
406 |
-
|
407 |
-
# Only show characteristics for available speakers
|
408 |
-
available_characteristics = []
|
409 |
-
for speaker in SPEAKER_NAMES:
|
410 |
-
if speaker in speaker_characteristics:
|
411 |
-
available_characteristics.append(f"- **{speaker}**: {speaker_characteristics[speaker]}")
|
412 |
-
|
413 |
-
characteristics_text = "\n ".join(available_characteristics)
|
414 |
-
|
415 |
gr.Markdown(f"""
|
416 |
## About MALIBA-AI Bambara TTS
|
417 |
|
418 |
- **π― Purpose**: First open-source Text-to-Speech system for Bambara language
|
419 |
-
- **π£οΈ Speakers**: {len(SPEAKER_NAMES)}
|
420 |
- **π Quality**: 16kHz neural speech synthesis
|
421 |
- **β‘ Performance**: Model loads once and stays in memory
|
422 |
- **π± Usage**: Educational, accessibility, and cultural preservation
|
@@ -424,9 +402,6 @@ def build_interface():
|
|
424 |
### π Available Speakers:
|
425 |
{', '.join(SPEAKER_NAMES)}
|
426 |
|
427 |
-
### π― Speaker Characteristics:
|
428 |
-
{characteristics_text}
|
429 |
-
|
430 |
**License**: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)
|
431 |
|
432 |
---
|
|
|
309 |
choices=SPEAKER_NAMES,
|
310 |
value="Bourama" if "Bourama" in SPEAKER_NAMES else SPEAKER_NAMES[0],
|
311 |
label="π£οΈ Speaker Voice",
|
312 |
+
info=f"Choose from {len(SPEAKER_NAMES)} authentic Bambara voices"
|
313 |
)
|
314 |
|
315 |
generate_btn = gr.Button("π΅ Generate Speech", variant="primary", size="lg")
|
|
|
390 |
)
|
391 |
|
392 |
with gr.Accordion("About", open=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
gr.Markdown(f"""
|
394 |
## About MALIBA-AI Bambara TTS
|
395 |
|
396 |
- **π― Purpose**: First open-source Text-to-Speech system for Bambara language
|
397 |
+
- **π£οΈ Speakers**: {len(SPEAKER_NAMES)} authentic Bambara voices
|
398 |
- **π Quality**: 16kHz neural speech synthesis
|
399 |
- **β‘ Performance**: Model loads once and stays in memory
|
400 |
- **π± Usage**: Educational, accessibility, and cultural preservation
|
|
|
402 |
### π Available Speakers:
|
403 |
{', '.join(SPEAKER_NAMES)}
|
404 |
|
|
|
|
|
|
|
405 |
**License**: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 (CC BY-NC-SA 4.0)
|
406 |
|
407 |
---
|