Metadata-Version: 2.4
Name: oneword-ai
Version: 0.2.3
Summary: Create viral-style one-word subtitles for Reels, Shorts & TikToks using AI. Perfect for content creators!
Author-email: Ambrish <ambrishyadav1110@gmail.com>
License: Copyright 2025 Ambrish
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project-URL: Homepage, https://github.com/Ambrishyadav-byte/OnewordAI
Project-URL: Bug Tracker, https://github.com/Ambrishyadav-byte/OnewordAI/issues
Keywords: subtitles,ai,whisper,content-creation,video-editing
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: license.txt
Requires-Dist: openai-whisper>=20231117
Requires-Dist: torch>=2.0.0
Requires-Dist: fastapi>=0.100.0
Requires-Dist: uvicorn[standard]>=0.23.0
Requires-Dist: python-multipart>=0.0.6
Requires-Dist: ffmpeg-python>=0.2.0
Requires-Dist: gradio>=4.0.0
Requires-Dist: tqdm>=4.65.0
Requires-Dist: aiofiles>=23.0.0
Requires-Dist: transformers>=4.30.0
Requires-Dist: accelerate>=0.20.0
Requires-Dist: huggingface_hub>=0.16.0
Requires-Dist: flask>=2.0.0
Dynamic: license-file

# 🎬 OneWord AI - Production Subtitle Generator

<div align="center">

**Enterprise-grade visual subtitle generator for Local & VPS Environments**

[![PyPI](https://img.shields.io/pypi/v/oneword-ai)](https://pypi.org/project/oneword-ai/)
[![Docker](https://img.shields.io/badge/Docker-Ready-blue)](Dockerfile)
[![License](https://img.shields.io/badge/License-MIT-green)](license.txt)

Generate viral-style subtitles locally or on your own server. No cloud notebooks, no timeouts.

[Installation](#-installation) • [Web UI](#-web-interface) • [CLI](#-command-line) • [VPS Deployment](#-vps--server-deployment)

</div>

---

## 🚀 Installation

### Local Setup (Windows/Mac/Linux)

1. **Install Python 3.9+** and [FFmpeg](https://ffmpeg.org/).
2. **Install the package**:
   ```bash
   pip install oneword-ai
   ```

### 📱 ARM / Android Support (Termux)

1. **Install Dependencies**:
   ```bash
   pkg install python git clang make
   ```

2. **Install Package**:
   ```bash
   pip install oneword-ai
   ```

3. **Setup Whisper.cpp (One-Time)**:
   ```bash
   onewordai-setup-arm
   ```

---

## 📱 Web Interface (Mobile)

To run the lightweight Web UI on your phone:
```bash
onewordai-web-arm
```
Open **http://localhost:8000** in your mobile browser.

---

## 🖥️ Web Interface (Desktop)

Start the local web server to use the visual interface:

```bash
oneword-web
# OR
python -m onewordai.api.main
```

Open **http://localhost:8000** in your browser.

**Features:**
- ⚡ **Local Processing**: No file size limits, 100% privacy.
- 🎯 **3 Modes**: One Word, Two Word, Phrase.
- 🌍 **Multi-Language**: Supports English, Hindi, Urdu, Spanish.
- 🇮🇳 **Special Hindi Model**: Uses `Oriserve/Whisper-Hindi2Hinglish-Prime`.

---

## ⌨️ Command Line (CLI)

Perfect for batch processing or automation scripts:

```bash
# Process a single video
oneword-cli -i input_video.mp4

# Customize settings
oneword-cli -i input.mp4 -m medium -lang en --mode twoword

# Full help
# Full help
oneword-cli --help
```

### ARM Devices (Termux)

Use the optimized ARM command:

```bash
# Process video
onewordai-process-arm -i video.mp4

# With settings
onewordai-process-arm -i video.mp4 -m base -lang hi

# Download other models
cd onewordai/arm/whisper.cpp
bash ./models/download-ggml-model.sh small

# Run Web UI
onewordai-web-arm
```

---

## ☁️ VPS / Server Deployment

### Method 1: Docker (Recommended)

1. **Build the image**:
   ```bash
   docker build -t oneword-ai .
   ```

2. **Run container**:
   ```bash
   docker run -d -p 8000:8000 oneword-ai
   ```

### Method 2: Systemd (Linux Servers)

Run as a background service on Ubuntu/Debian:

1. Create service file: `sudo nano /etc/systemd/system/oneword.service`
   ```ini
   [Unit]
   Description=OneWord AI Web Server
   After=network.target

   [Service]
   User=root
   WorkingDirectory=/root/oneword-ai
   ExecStart=/usr/local/bin/oneword-web
   Restart=always

   [Install]
   WantedBy=multi-user.target
   ```

2. Start service:
   ```bash
   sudo systemctl enable oneword
   sudo systemctl start oneword
   ```

---

## 📦 Models

Models are downloaded to `~/.cache/huggingface` (or generic cache) on the first run.

| Model | Size | Best For |
|-------|------|----------|
| **medium** | ~1.5GB | General Purpose (Default) |
| **large** | ~3GB | High Accuracy |
| **Hindi2Hinglish** | ~1.5GB | Hindi to Hinglish Transcription |

---

## 📜 License

MIT License. Free for commercial use.
