Metadata-Version: 2.4
Name: onyx-AI-XTTS-v2
Version: 0.1.5
Summary: Professional Voice Cloning and TTS Engine using XTTS v2
Project-URL: Homepage, https://github.com/RUI-com/
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi
Requires-Dist: uvicorn
Requires-Dist: python-multipart
Requires-Dist: torch==2.1.2
Requires-Dist: torchaudio==2.1.2
Requires-Dist: transformers==4.35.2
Requires-Dist: TTS==0.22.0
Requires-Dist: numpy<2.0.0
Requires-Dist: langdetect
Dynamic: license-file


![alt text](https://onyxchat-ai.vercel.app/logo/Group%2071.png)


# 🎙️ ONYX AI XTTS v2 Engine

Professional Voice Cloning and Text-to-Speech engine built for **ONYX** platform.

## 📦 Installation

### Option 1: Via pip
You can install the engine directly from PyPI:
📦 Installation
Option 1: Install via pip
```bash
pip install onyx-AI-XTTS-v2
```

Option 2: requirements.txt
```txt
--extra-index-url https://download.pytorch.org/whl/cpu
fastapi
uvicorn
python-multipart
torch==2.1.2
torchaudio==2.1.2
torchvision==0.16.2
transformers==4.35.2
TTS==0.22.0
numpy<2.0.0
langdetect
onyx-AI-XTTS-v2
```
---
💻 Usage
▶ Standard Script
```python
from ONYXAI_XTTS import OnyxXTTSEngine
import uvicorn
import os

# 1. تهيئة المحرك
# المحرك رح يتعامل مع الـ Patch والـ CPU والـ API تلقائياً
engine = OnyxXTTSEngine()

# 2. الوصول لنسخة FastAPI
app = engine.app

@app.get("/")
def home():
    return {
        "message": "ONYX XTTS v2 Engine is running!",
        "status": "Ready for Voice Cloning"
    }

if __name__ == "__main__":
   
    port = int(os.environ.get("PORT", 7860))
    uvicorn.run(app, host="0.0.0.0", port=port)
```
```
🛠 API Usage
Endpoint
```
POST /upload-voice
```
POST /generate-with-cloned-voice
```
---
🔗 Links
Organization: [ONYX / RUI Company](https://github.com/RUI-com/)
Author: [Eng. Rawan Jassim](https://eng-rawan-abd-alrazak-next-js-website-main.vercel.app/)
---
© 2026 ONYX. All rights reserved.
