| title: Unified AI Engine | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.9.1 | |
| app_file: app.py | |
| pinned: false | |
| # Unified AI Engine | |
| Backend API for real-time multilingual translation with: | |
| - ποΈ Speech-to-Text (Whisper large-v3) | |
| - π Translation (NLLB-200) | |
| - π Text-to-Speech (XTTS-v2 with voice cloning) | |
| ## API Endpoint | |
| POST to `https://tgpro1-s2st.hf.space/` with JSON: | |
| ```json | |
| { | |
| "action": "stt|translate|tts|health", | |
| "file": "base64_audio", // for STT | |
| "text": "text to process", // for translate/TTS | |
| "lang": "en", | |
| "target_lang": "fr", // for translation | |
| "speaker_wav": "base64_audio" // optional for voice cloning | |
| } | |
| ``` | |