Metadata-Version: 2.4
Name: oneword-ai
Version: 0.1.2
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
Dynamic: license-file

# 🎬 OneWord AI - Cinematic Subtitle Generator

<div align="center">

**Generate viral-style one-word subtitles from video/audio using Whisper AI**

[![PyPI](https://img.shields.io/pypi/v/oneword-ai)](https://pypi.org/project/oneword-ai/)
[![Python](https://img.shields.io/badge/Python-3.9%2B-blue)](https://www.python.org/)
[![License](https://img.shields.io/badge/License-MIT-green)](license.txt)

Perfect for creating high-energy reels, shorts, and TikToks! 🚀

[Installation](#-installation) • [Usage](#-usage) • [Features](#-features) • [Credits](#-credits)

</div>

---

## ✨ Features

- 🎯 **Three Subtitle Modes**: One Word, Two Word Punch, Phrase Mode
- 🌍 **Multi-Language Support**: Auto-detect or specify (English, Hindi, Urdu, Spanish)
- 🤖 **Multiple AI Models**: 
  - OpenAI Whisper (Medium, Large)
  - Hindi2Hinglish (Oriserve/Whisper-Hindi2Hinglish-Prime) 🇮🇳
- 💻 **Dual Interface**: CLI for power users, Web UI for visual workflow
- 📦 **Easy Installation**: One-line pip install
- ☁️ **Cloud Ready**: Works seamlessly on Google Colab

---

## 🚀 Installation

```bash
pip install oneword-ai
```

**Prerequisites**: Install [FFmpeg](https://ffmpeg.org/) on your system.

---

## 📖 Usage

### Option 1: Web Interface (Easiest)

Start the web server:

```bash
python -m onewordai.api.main
```

Then open http://localhost:8000 in your browser.

**Features:**
- 📤 Drag & drop file upload
- 📊 Real-time download progress with speed & ETA
- ⏱️ Live transcription status updates
- ❌ Cancel processing anytime
- ⚠️ Reload protection (won't lose progress)
- 📥 Instant SRT download

---

### Option 2: Google Colab

Run OneWord AI in the cloud with Web UI or Python API:

[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/Ambrishyadav-byte/OnewordAI/blob/main/OneWord_Colab.ipynb)

**The Colab notebook includes:**
- 🌐 **Option A**: Web UI with Gradio (free public URL, no setup required)
- 💻 **Option B**: Python API for direct code usage

---

### Option 3: Command Line (CLI)

For batch processing and automation:

```bash
# Basic usage
python -m onewordai.cli -i video.mp4

# With options
python -m onewordai.cli -i video.mp4 -m medium -lang hi -mode oneword
```

**See [CLI.md](CLI.md) for full documentation.**

---

## 📊 Subtitle Modes

| Mode | Description | Best For |
|------|-------------|----------|
| **oneword** | Each word = separate subtitle | High-energy viral content, reels |
| **twoword** | Groups of 2 words | Punchy messaging, Instagram posts |
| **phrase** | Full sentence segments | YouTube videos, longer content |

---

## 🎨 Model Options

| Model | Size | Speed | Quality | Language |
|-------|------|-------|---------|----------|
| **medium** | ~1.5GB | Fast | ⭐⭐⭐⭐ | Multi-language |
| **large** | ~3GB | Slower | ⭐⭐⭐⭐⭐ | Multi-language |
| **Oriserve/Whisper-Hindi2Hinglish-Prime** | ~1.5GB | Fast | ⭐⭐⭐⭐⭐ | Hindi → Hinglish |

> **Note**: Models are downloaded automatically on first use and cached locally.

---

## 🤝 Credits

This project wouldn't be possible without these amazing open-source projects:

### Core Technologies
- **[OpenAI Whisper](https://github.com/openai/whisper)** - State-of-the-art speech recognition model
- **[Oriserve/Whisper-Hindi2Hinglish-Prime](https://huggingface.co/Oriserve/Whisper-Hindi2Hinglish-Prime)** - Fine-tuned Hindi to Hinglish transcription
- **[HuggingFace Transformers](https://github.com/huggingface/transformers)** - Model loading and inference framework

### Backend & UI
- **[FastAPI](https://fastapi.tiangolo.com/)** - High-performance Python web framework
- **[Gradio](https://gradio.app/)** - ML web interface library
- **[FFmpeg](https://ffmpeg.org/)** - Multimedia processing toolkit

### Special Thanks
- OpenAI team for making Whisper open-source
- Oriserve team for the specialized Hindi model
- All open-source contributors

---

## 📜 License

MIT License - see [license.txt](license.txt)

Free to use for personal and commercial projects!

---

## 👨‍💻 Author

**Built with ❤️ by [Ambrish Yadav](https://github.com/Ambrishyadav-byte)**

💼 Connect: [@ambrish.yadav.1](https://instagram.com/ambrish.yadav.1)

📦 PyPI: [oneword-ai](https://pypi.org/project/oneword-ai/)

---

<div align="center">

⭐ **Star this repo if you find it useful!** ⭐

[Report Bug](https://github.com/Ambrishyadav-byte/OnewordAI/issues) • [Request Feature](https://github.com/Ambrishyadav-byte/OnewordAI/issues)

</div>
