Create viral-style one-word subtitles for Reels, Shorts & TikToks using AI. Perfect for content creators!
Project description
🎬 OneWord AI - Cinematic Subtitle Generator
Generate viral-style one-word subtitles from video/audio using Whisper AI
Perfect for creating high-energy reels, shorts, and TikToks! 🚀
Installation • Usage • Features • Credits
✨ 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
Method 1: Install from PyPI (Recommended)
pip install oneword-ai
Prerequisites: Ensure FFmpeg is installed on your system.
📖 Usage
Option 1: Web Interface (Easiest)
Start the web server and process files through a beautiful UI:
# Start server
python -m onewordai.api.main
Then open http://localhost:8000 in your browser.
Features:
- 📤 Drag & drop file upload
- 📊 Real-time download progress with speed tracking
- ⏱️ Live transcription status
- ❌ Cancel processing anytime
- 📥 Instant SRT download
- ⚠️ Reload protection (won't lose progress)
Option 2: Google Colab with Package
Run OneWord AI in the cloud without any local installation:
Quick Start in Colab:
# Install package
!pip install oneword-ai
# Import and use
from onewordai.core.engine import SubtitleGenerator
# Generate subtitles
generator = SubtitleGenerator(model_name="medium")
output = generator.process("video.mp4", mode="oneword")
print(f"✅ Subtitles saved: {output}")
Option 3: Command Line Interface (CLI)
For batch processing and automation:
# Basic usage
python -m onewordai.cli -i video.mp4
# Advanced options
python -m onewordai.cli -i video.mp4 -m medium -lang hi -mode oneword
See CLI.md for full CLI documentation.
📊 Subtitle Modes
| Mode | Description | Best For |
|---|---|---|
| One Word | Each word = separate subtitle | High-energy viral content, reels |
| Two Word Punch | Groups of 2 words | Punchy messaging, Instagram posts |
| Phrase Mode | Full sentence segments | YouTube videos, longer content |
🎨 Model Options
| Model | Size | Speed | Quality | Language Support |
|---|---|---|---|---|
| medium | ~1.5GB | Fast | Good | Multi-language |
| large | ~3GB | Slower | Best | Multi-language |
| Hindi2Hinglish | ~1.5GB | Fast | Excellent for Hindi | Hindi → Hinglish |
🤝 Credits
This project wouldn't be possible without these amazing open-source projects:
Core Technologies
- OpenAI Whisper - Revolutionary speech recognition model
- Oriserve/Whisper-Hindi2Hinglish-Prime - Hindi to Hinglish transcription model
- HuggingFace Transformers - Model loading and inference
Backend & UI
Special Thanks
- OpenAI for making Whisper open-source
- Oriserve team for the Hindi2Hinglish model
- All contributors to the dependencies
📜 License
MIT License - see license.txt
Free to use for personal and commercial projects!
👨💻 Author
Built with ❤️ by Ambrish Yadav
💼 Connect: @ambrish.yadav.1
⭐ Star this repo if you find it useful! ⭐
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oneword_ai-0.1.1.tar.gz.
File metadata
- Download URL: oneword_ai-0.1.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d0992b51e467631f3335adb955444e88f0bb4f942526b3aee962ee2b295a8fd
|
|
| MD5 |
f876a9fca4297ace771e214adaed641a
|
|
| BLAKE2b-256 |
a4e2b0702b2e417a4a99a445e6cb9b38bdd74738272da61e8e7c2d7efc9881d1
|
File details
Details for the file oneword_ai-0.1.1-py3-none-any.whl.
File metadata
- Download URL: oneword_ai-0.1.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
040d4617713241c4e53d1a68a43e2e356a9cda2b97ee74b07ef38ab4d28cdaa3
|
|
| MD5 |
1727c587acbc8a39c7ba878de4766854
|
|
| BLAKE2b-256 |
152c4e7dd628533f4de1f43b55312293f4a55e984cafd931be3d7da14e3ad5a8
|