File size: 714 Bytes
419a48e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---

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

}

```