Skip to main content

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

PyPI Python License

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

InstallationUsageFeaturesCredits


✨ 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

pip install oneword-ai

Prerequisites: Install FFmpeg on your system.


📖 Usage

Option 1: Web Interface (Easiest)

Start the web 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 & 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

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:

# 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 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

Backend & UI

  • FastAPI - High-performance Python web framework
  • Gradio - ML web interface library
  • FFmpeg - 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

Free to use for personal and commercial projects!


👨‍💻 Author

Built with ❤️ by Ambrish Yadav

💼 Connect: @ambrish.yadav.1

📦 PyPI: oneword-ai


Star this repo if you find it useful!

Report BugRequest Feature

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oneword_ai-0.1.3.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oneword_ai-0.1.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file oneword_ai-0.1.3.tar.gz.

File metadata

  • Download URL: oneword_ai-0.1.3.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for oneword_ai-0.1.3.tar.gz
Algorithm Hash digest
SHA256 013bf3aa8a58f782851344f3d76d76da1517846daa9c4aa120c3bad0392d6609
MD5 63d6ae084f95589a0477f6e013d09e2b
BLAKE2b-256 4a7edfe06e5afdb3c6c3751d2d7e38ba05e60da4b3f072ca26834c278ad5b831

See more details on using hashes here.

File details

Details for the file oneword_ai-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: oneword_ai-0.1.3-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

Hashes for oneword_ai-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ba151bd806fe5a9a70e810f9dbe8e4774df986fea2b729e66413f5bc07bc404
MD5 4e31ca062cbbf86d5f6fcaf57bd9c4d0
BLAKE2b-256 477ceaac9ffafcac0769d2aaa46a3ea73118cc13fbbf566fe4131d45da54faa6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page