Logo Lanfrica

kossaiRedou/text_to_wolof

Domaine:

natural language processing

Type de record:

software
Créateur:
kos
HĂ´te:
# 🎙️ Fatou BRAVO — Générateur de Voix Wolof ### Application Django · Powered by LAfricaMobile TTS API --- ## 📋 Description Application web Django permettant de : 1. **Traduire** du texte français en Wolof via l'API LAfricaMobile 2. **Synthétiser** un texte Wolof en fichier audio (voix naturelle) 3. **Pipeline complet** : Français → Wolof → Audio en 1 clic 4. **Consulter** l'historique des générations --- ## 🚀 Installation ### 1. Cloner et installer ```bash cd fatou_tts pip install -r requirements.txt ``` ### 2. Configurer les credentials LAfricaMobile Créer un fichier `.env` à la racine du projet : ```env LAM_LOGIN=votre_login_lafricamobile LAM_PASSWORD=votre_password_lafricamobile ``` Ou définir les variables d'environnement directement : ```bash export LAM_LOGIN="votre_login" export LAM_PASSWORD="votre_password" ``` > **Obtenir un compte** : Inscription sur monespace.lafricamobile.com > Pour l'URL de production, contacter : assistance@lafricamobile.com ### 3. Lancer le serveur ```bash python manage.py runserver ``` Ouvrir : localhost --- ## 🔌 Endpoints API | Méthode | URL | Description | |---------|-----|-------------| | `POST` | `/api/generate/` | Pipeline complet : FR → Wolof → Audio | | `POST` | `/api/translate/` | Traduction français → Wolof uniquement | | `POST` | `/api/synthesize/` | Synthèse vocale d'un texte Wolof | | `GET` | `/api/history/` | Historique des requêtes TTS | ### Exemples de requêtes **Pipeline complet (recommandé)** ```bash curl -X POST localhost \ -H "Content-Type: application/json" \ -d '{"text": "Bonjour tout le monde, je suis Fatou BRAVO.", "pitch": 0.0, "speed": 1.0}' ``` **Traduction seule** ```bash curl -X POST localhost \ -H "Content-Type: application/json" \ -d '{"text": "Les produits BRAVO sont bons pour toute la famille."}' ``` **Synthèse seule (texte Wolof déjà traduit)** ```bash curl -X POST localhost \ - …