oneword-ai 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oneword_ai-0.1.1.dist-info/METADATA +201 -0
- {oneword_ai-0.1.0.dist-info → oneword_ai-0.1.1.dist-info}/RECORD +6 -6
- oneword_ai-0.1.0.dist-info/METADATA +0 -237
- {oneword_ai-0.1.0.dist-info → oneword_ai-0.1.1.dist-info}/WHEEL +0 -0
- {oneword_ai-0.1.0.dist-info → oneword_ai-0.1.1.dist-info}/entry_points.txt +0 -0
- {oneword_ai-0.1.0.dist-info → oneword_ai-0.1.1.dist-info}/licenses/license.txt +0 -0
- {oneword_ai-0.1.0.dist-info → oneword_ai-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: oneword-ai
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Create viral-style one-word subtitles for Reels, Shorts & TikToks using AI. Perfect for content creators!
|
|
5
|
+
Author-email: Ambrish <ambrishyadav1110@gmail.com>
|
|
6
|
+
License: Copyright 2025 Ambrish
|
|
7
|
+
|
|
8
|
+
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:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
Project-URL: Homepage, https://github.com/Ambrishyadav-byte/OnewordAI
|
|
14
|
+
Project-URL: Bug Tracker, https://github.com/Ambrishyadav-byte/OnewordAI/issues
|
|
15
|
+
Keywords: subtitles,ai,whisper,content-creation,video-editing
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: license.txt
|
|
19
|
+
Requires-Dist: openai-whisper>=20231117
|
|
20
|
+
Requires-Dist: torch>=2.0.0
|
|
21
|
+
Requires-Dist: fastapi>=0.100.0
|
|
22
|
+
Requires-Dist: uvicorn[standard]>=0.23.0
|
|
23
|
+
Requires-Dist: python-multipart>=0.0.6
|
|
24
|
+
Requires-Dist: ffmpeg-python>=0.2.0
|
|
25
|
+
Requires-Dist: gradio>=4.0.0
|
|
26
|
+
Requires-Dist: tqdm>=4.65.0
|
|
27
|
+
Requires-Dist: aiofiles>=23.0.0
|
|
28
|
+
Requires-Dist: transformers>=4.30.0
|
|
29
|
+
Requires-Dist: accelerate>=0.20.0
|
|
30
|
+
Requires-Dist: huggingface_hub>=0.16.0
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# 🎬 OneWord AI - Cinematic Subtitle Generator
|
|
34
|
+
|
|
35
|
+
<div align="center">
|
|
36
|
+
|
|
37
|
+
**Generate viral-style one-word subtitles from video/audio using Whisper AI**
|
|
38
|
+
|
|
39
|
+
[](https://pypi.org/project/oneword-ai/)
|
|
40
|
+
[](https://www.python.org/)
|
|
41
|
+
[](license.txt)
|
|
42
|
+
|
|
43
|
+
Perfect for creating high-energy reels, shorts, and TikToks! 🚀
|
|
44
|
+
|
|
45
|
+
[Installation](#-installation) • [Usage](#-usage) • [Features](#-features) • [Credits](#-credits)
|
|
46
|
+
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## ✨ Features
|
|
52
|
+
|
|
53
|
+
- 🎯 **Three Subtitle Modes**: One Word, Two Word Punch, Phrase Mode
|
|
54
|
+
- 🌍 **Multi-Language Support**: Auto-detect or specify (English, Hindi, Urdu, Spanish)
|
|
55
|
+
- 🤖 **Multiple AI Models**:
|
|
56
|
+
- OpenAI Whisper (Medium, Large)
|
|
57
|
+
- Hindi2Hinglish (Oriserve/Whisper-Hindi2Hinglish-Prime) 🇮🇳
|
|
58
|
+
- 💻 **Dual Interface**: CLI for power users, Web UI for visual workflow
|
|
59
|
+
- 📦 **Easy Installation**: One-line pip install
|
|
60
|
+
- ☁️ **Cloud Ready**: Works seamlessly on Google Colab
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 🚀 Installation
|
|
65
|
+
|
|
66
|
+
### Method 1: Install from PyPI (Recommended)
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install oneword-ai
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Prerequisites**: Ensure [FFmpeg](https://ffmpeg.org/) is installed on your system.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 📖 Usage
|
|
77
|
+
|
|
78
|
+
### Option 1: Web Interface (Easiest)
|
|
79
|
+
|
|
80
|
+
Start the web server and process files through a beautiful UI:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Start server
|
|
84
|
+
python -m onewordai.api.main
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Then open http://localhost:8000 in your browser.
|
|
88
|
+
|
|
89
|
+
**Features:**
|
|
90
|
+
- 📤 Drag & drop file upload
|
|
91
|
+
- 📊 Real-time download progress with speed tracking
|
|
92
|
+
- ⏱️ Live transcription status
|
|
93
|
+
- ❌ Cancel processing anytime
|
|
94
|
+
- 📥 Instant SRT download
|
|
95
|
+
- ⚠️ Reload protection (won't lose progress)
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### Option 2: Google Colab with Package
|
|
100
|
+
|
|
101
|
+
Run OneWord AI in the cloud without any local installation:
|
|
102
|
+
|
|
103
|
+
[](https://colab.research.google.com/github/Ambrishyadav-byte/OnewordAI/blob/main/OneWord_Colab.ipynb)
|
|
104
|
+
|
|
105
|
+
**Quick Start in Colab:**
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
# Install package
|
|
109
|
+
!pip install oneword-ai
|
|
110
|
+
|
|
111
|
+
# Import and use
|
|
112
|
+
from onewordai.core.engine import SubtitleGenerator
|
|
113
|
+
|
|
114
|
+
# Generate subtitles
|
|
115
|
+
generator = SubtitleGenerator(model_name="medium")
|
|
116
|
+
output = generator.process("video.mp4", mode="oneword")
|
|
117
|
+
print(f"✅ Subtitles saved: {output}")
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
### Option 3: Command Line Interface (CLI)
|
|
123
|
+
|
|
124
|
+
For batch processing and automation:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Basic usage
|
|
128
|
+
python -m onewordai.cli -i video.mp4
|
|
129
|
+
|
|
130
|
+
# Advanced options
|
|
131
|
+
python -m onewordai.cli -i video.mp4 -m medium -lang hi -mode oneword
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**See [CLI.md](CLI.md) for full CLI documentation.**
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 📊 Subtitle Modes
|
|
139
|
+
|
|
140
|
+
| Mode | Description | Best For |
|
|
141
|
+
|------|-------------|----------|
|
|
142
|
+
| **One Word** | Each word = separate subtitle | High-energy viral content, reels |
|
|
143
|
+
| **Two Word Punch** | Groups of 2 words | Punchy messaging, Instagram posts |
|
|
144
|
+
| **Phrase Mode** | Full sentence segments | YouTube videos, longer content |
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 🎨 Model Options
|
|
149
|
+
|
|
150
|
+
| Model | Size | Speed | Quality | Language Support |
|
|
151
|
+
|-------|------|-------|---------|------------------|
|
|
152
|
+
| **medium** | ~1.5GB | Fast | Good | Multi-language |
|
|
153
|
+
| **large** | ~3GB | Slower | Best | Multi-language |
|
|
154
|
+
| **Hindi2Hinglish** | ~1.5GB | Fast | Excellent for Hindi | Hindi → Hinglish |
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 🤝 Credits
|
|
159
|
+
|
|
160
|
+
This project wouldn't be possible without these amazing open-source projects:
|
|
161
|
+
|
|
162
|
+
### Core Technologies
|
|
163
|
+
- **[OpenAI Whisper](https://github.com/openai/whisper)** - Revolutionary speech recognition model
|
|
164
|
+
- **[Oriserve/Whisper-Hindi2Hinglish-Prime](https://huggingface.co/Oriserve/Whisper-Hindi2Hinglish-Prime)** - Hindi to Hinglish transcription model
|
|
165
|
+
- **[HuggingFace Transformers](https://github.com/huggingface/transformers)** - Model loading and inference
|
|
166
|
+
|
|
167
|
+
### Backend & UI
|
|
168
|
+
- **[FastAPI](https://fastapi.tiangolo.com/)** - Modern Python web framework
|
|
169
|
+
- **[Gradio](https://gradio.app/)** - ML web interfaces
|
|
170
|
+
- **[FFmpeg](https://ffmpeg.org/)** - Audio/video processing
|
|
171
|
+
|
|
172
|
+
### Special Thanks
|
|
173
|
+
- OpenAI for making Whisper open-source
|
|
174
|
+
- Oriserve team for the Hindi2Hinglish model
|
|
175
|
+
- All contributors to the dependencies
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 📜 License
|
|
180
|
+
|
|
181
|
+
MIT License - see [license.txt](license.txt)
|
|
182
|
+
|
|
183
|
+
Free to use for personal and commercial projects!
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 👨💻 Author
|
|
188
|
+
|
|
189
|
+
**Built with ❤️ by [Ambrish Yadav](https://github.com/Ambrishyadav-byte)**
|
|
190
|
+
|
|
191
|
+
💼 Connect: [@ambrish.yadav.1](https://instagram.com/ambrish.yadav.1)
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
<div align="center">
|
|
196
|
+
|
|
197
|
+
⭐ **Star this repo if you find it useful!** ⭐
|
|
198
|
+
|
|
199
|
+
[Report Bug](https://github.com/Ambrishyadav-byte/OnewordAI/issues) • [Request Feature](https://github.com/Ambrishyadav-byte/OnewordAI/issues)
|
|
200
|
+
|
|
201
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
oneword_ai-0.1.
|
|
1
|
+
oneword_ai-0.1.1.dist-info/licenses/license.txt,sha256=ZlGk1ZMpgK_LQB1VTiN27JbvU-KL31byRxgM7wAmEu4,1060
|
|
2
2
|
onewordai/__init__.py,sha256=DW7ib3o1W0lchP960Mqdg_a-_aPPhPWgYKu5efR56ME,73
|
|
3
3
|
onewordai/cli.py,sha256=kz8epolGelaSfbOXdIB8IaiwUBLaKD8uyP6RBGOkCMM,2008
|
|
4
4
|
onewordai/api/__init__.py,sha256=W5bQNZGz2YLMXx1hC9e_eKhbf_GNFVYy3MC3D7gugUc,20
|
|
@@ -8,8 +8,8 @@ onewordai/core/engine.py,sha256=CqHVfvRjXSHgkjcPagYEhvCGwM2ywSlhyTvTran7MK0,1563
|
|
|
8
8
|
onewordai/web/app.js,sha256=mOp_RRear_N8RTpNEsYs2oj6mkji_AaKXlpxFsAtH-M,11166
|
|
9
9
|
onewordai/web/index.html,sha256=r1OSgeb35diHKmj1uWGnd-ltPBPz6aQp5mmcp2jTDmY,5995
|
|
10
10
|
onewordai/web/style.css,sha256=InsF-b_e5-zRhwaUHKf7cHnenNv87zA82VjcjqIsOnE,10485
|
|
11
|
-
oneword_ai-0.1.
|
|
12
|
-
oneword_ai-0.1.
|
|
13
|
-
oneword_ai-0.1.
|
|
14
|
-
oneword_ai-0.1.
|
|
15
|
-
oneword_ai-0.1.
|
|
11
|
+
oneword_ai-0.1.1.dist-info/METADATA,sha256=G-xF2rL8YgnszqeSBUlgevbIMeDbiYo-TmzmnYpEvRg,6964
|
|
12
|
+
oneword_ai-0.1.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
oneword_ai-0.1.1.dist-info/entry_points.txt,sha256=qJ4u04rCiYtI5fCyPRBfTzW_-xc05BCSEct8YHzXX9Y,97
|
|
14
|
+
oneword_ai-0.1.1.dist-info/top_level.txt,sha256=otwwf_hwyKfUYUJnculUSznHz9iCFJRrHgIHyLQRbfE,10
|
|
15
|
+
oneword_ai-0.1.1.dist-info/RECORD,,
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: oneword-ai
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: A minimalist one-word subtitle generator with Neobrutalism UI
|
|
5
|
-
Author-email: Ambrish <ambrishyadav1110@gmail.com>
|
|
6
|
-
License: Copyright 2025 Ambrish
|
|
7
|
-
|
|
8
|
-
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:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
11
|
-
|
|
12
|
-
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.
|
|
13
|
-
Project-URL: Homepage, https://github.com/Ambrishyadav-byte/OnewordAI
|
|
14
|
-
Project-URL: Bug Tracker, https://github.com/Ambrishyadav-byte/OnewordAI/issues
|
|
15
|
-
Keywords: subtitles,ai,whisper,content-creation,video-editing
|
|
16
|
-
Requires-Python: >=3.9
|
|
17
|
-
Description-Content-Type: text/markdown
|
|
18
|
-
License-File: license.txt
|
|
19
|
-
Requires-Dist: openai-whisper>=20231117
|
|
20
|
-
Requires-Dist: torch>=2.0.0
|
|
21
|
-
Requires-Dist: fastapi>=0.100.0
|
|
22
|
-
Requires-Dist: uvicorn[standard]>=0.23.0
|
|
23
|
-
Requires-Dist: python-multipart>=0.0.6
|
|
24
|
-
Requires-Dist: ffmpeg-python>=0.2.0
|
|
25
|
-
Requires-Dist: gradio>=4.0.0
|
|
26
|
-
Requires-Dist: tqdm>=4.65.0
|
|
27
|
-
Requires-Dist: aiofiles>=23.0.0
|
|
28
|
-
Requires-Dist: transformers>=4.30.0
|
|
29
|
-
Requires-Dist: accelerate>=0.20.0
|
|
30
|
-
Requires-Dist: huggingface_hub>=0.16.0
|
|
31
|
-
Dynamic: license-file
|
|
32
|
-
|
|
33
|
-
# 🎬 OneWord AI - Subtitle Generator
|
|
34
|
-
|
|
35
|
-
<div align="center">
|
|
36
|
-
|
|
37
|
-
**Generate cinematic one-word subtitles from video/audio using Whisper AI**
|
|
38
|
-
|
|
39
|
-
[](https://www.python.org/)
|
|
40
|
-
[](license.txt)
|
|
41
|
-
[](https://github.com/openai/whisper)
|
|
42
|
-
|
|
43
|
-
Perfect for creators making high-energy reels, shorts, and TikToks!
|
|
44
|
-
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## ✨ Features
|
|
50
|
-
|
|
51
|
-
- 🎯 **Three Subtitle Modes**: One Word, Two Word Punch, Phrase Mode
|
|
52
|
-
- 🌍 **Multi-Language**: Auto-detect or specify (English, Hindi, Urdu, Spanish)
|
|
53
|
-
- 🤖 **Multiple Models**: Medium, Large, and **Hindi2Hinglish** (Oriserve/Prime) 🆕
|
|
54
|
-
- 📦 **Python Package**: Installable via pip with `oneword-cli` and `oneword-web` commands
|
|
55
|
-
- 💻 **Local CLI**: Robust command-line tool for batch processing
|
|
56
|
-
- 🌐 **Web UI**: Beautiful Neobrutalism-styled web interface
|
|
57
|
-
- ☁️ **Cloud Ready**: Works on Google Colab and Hugging Face Spaces
|
|
58
|
-
- 🐳 **Docker Support**: Containerized deployment
|
|
59
|
-
|
|
60
|
-
## 🚀 Quick Start
|
|
61
|
-
|
|
62
|
-
### Installation
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# Clone the repository
|
|
66
|
-
git clone https://github.com/Ambrishyadav-byte/OnewordAI.git
|
|
67
|
-
cd OnewordAI
|
|
68
|
-
|
|
69
|
-
# Install as a package
|
|
70
|
-
pip install -e .
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
**Prerequisites**: Ensure [FFmpeg](https://ffmpeg.org/) is installed on your system.
|
|
74
|
-
|
|
75
|
-
### Usage
|
|
76
|
-
|
|
77
|
-
#### 🖥️ CLI (Command Line)
|
|
78
|
-
|
|
79
|
-
See [CLI.md](CLI.md) for full documentation.
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
# Basic usage
|
|
83
|
-
oneword-cli -i video.mp4
|
|
84
|
-
|
|
85
|
-
# Full options
|
|
86
|
-
oneword-cli -i video.mp4 -m medium -lang hi -mode oneword
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
#### 🌐 Web UI
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# Start server & open browser
|
|
93
|
-
oneword-web
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Features:
|
|
97
|
-
- Drag & drop file upload
|
|
98
|
-
- Real-time progress tracking
|
|
99
|
-
- Instant SRT download
|
|
100
|
-
- Responsive Neobrutalism design
|
|
101
|
-
|
|
102
|
-
#### ☁️ Google Colab
|
|
103
|
-
|
|
104
|
-
[](https://colab.research.google.com/)
|
|
105
|
-
|
|
106
|
-
1. Open `OneWord_Colab.ipynb` in Colab
|
|
107
|
-
2. Run all cells
|
|
108
|
-
3. Upload your video
|
|
109
|
-
4. Download your SRT!
|
|
110
|
-
|
|
111
|
-
#### 🤗 Hugging Face Space
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
python app_gradio.py
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Or deploy to Hugging Face Spaces for a hosted version!
|
|
118
|
-
|
|
119
|
-
## 📊 Subtitle Modes
|
|
120
|
-
|
|
121
|
-
| Mode | Description | Use Case |
|
|
122
|
-
|------|-------------|----------|
|
|
123
|
-
| **One Word** | Each word = separate subtitle | High-energy, attention-grabbing content |
|
|
124
|
-
| **Two Word Punch** | Groups of 2 words | Punchy, impactful messaging |
|
|
125
|
-
| **Phrase Mode** | Full sentence segments | Traditional subtitle style |
|
|
126
|
-
|
|
127
|
-
## 🎨 Web UI Preview
|
|
128
|
-
|
|
129
|
-
The web interface features a stunning **Neobrutalism** design:
|
|
130
|
-
- Bold black borders
|
|
131
|
-
- Vibrant color palette
|
|
132
|
-
- Sharp shadows
|
|
133
|
-
- Grid background pattern
|
|
134
|
-
- Smooth animations
|
|
135
|
-
|
|
136
|
-
## 🐳 Docker Deployment
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
# Build image
|
|
140
|
-
docker build -t oneword-ai .
|
|
141
|
-
|
|
142
|
-
# Run container
|
|
143
|
-
docker run -p 8000:8000 oneword-ai
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## 📁 Project Structure
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
minimalist-one-word-subtitle-generator/
|
|
150
|
-
├── onewordai/ # Source code (package)
|
|
151
|
-
│ ├── core/
|
|
152
|
-
│ │ ├── __init__.py
|
|
153
|
-
│ │ └── engine.py # Core subtitle generation logic
|
|
154
|
-
│ ├── api/
|
|
155
|
-
│ │ ├── __init__.py
|
|
156
|
-
│ │ └── main.py # FastAPI backend
|
|
157
|
-
│ └── web/
|
|
158
|
-
│ ├── index.html # Web UI
|
|
159
|
-
│ ├── style.css # Neobrutalism styles
|
|
160
|
-
│ └── app.js # Frontend logic
|
|
161
|
-
├── cli.py # CLI interface
|
|
162
|
-
├── app_gradio.py # Gradio app for HF Spaces
|
|
163
|
-
├── OneWord_Colab.ipynb # Google Colab notebook
|
|
164
|
-
├── Dockerfile # Docker configuration
|
|
165
|
-
├── requirements.txt # Python dependencies
|
|
166
|
-
└── README.md
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
## 🛠️ Development
|
|
170
|
-
|
|
171
|
-
### API Endpoints
|
|
172
|
-
|
|
173
|
-
- `POST /upload` - Upload video/audio file
|
|
174
|
-
- `POST /process` - Start transcription job
|
|
175
|
-
- `GET /status/{job_id}` - Check job progress
|
|
176
|
-
- `GET /download/{job_id}` - Download generated SRT
|
|
177
|
-
|
|
178
|
-
### Requirements
|
|
179
|
-
|
|
180
|
-
- Python 3.8+
|
|
181
|
-
- FFmpeg
|
|
182
|
-
- PyTorch
|
|
183
|
-
- OpenAI Whisper
|
|
184
|
-
- FastAPI (for web server)
|
|
185
|
-
- Gradio (for HF Spaces)
|
|
186
|
-
|
|
187
|
-
## 💡 Tips for Creators
|
|
188
|
-
|
|
189
|
-
### Video Editing Workflow
|
|
190
|
-
|
|
191
|
-
1. Generate SRT using OneWord AI
|
|
192
|
-
2. Import into your editor:
|
|
193
|
-
- **CapCut**: Text → Local Captions → Upload
|
|
194
|
-
- **VN Editor**: Text → SRT → Import
|
|
195
|
-
- **Premiere Pro**: File → Import → Captions
|
|
196
|
-
3. Apply animations (Pop, Spring, Bounce)
|
|
197
|
-
4. Customize colors and fonts
|
|
198
|
-
|
|
199
|
-
### Best Practices
|
|
200
|
-
|
|
201
|
-
- Use **Tiny** model for quick drafts
|
|
202
|
-
- Use **Base** model for production (best balance)
|
|
203
|
-
- Use **Small** model for technical/complex content
|
|
204
|
-
- **One Word** mode works best for 30-60 sec reels
|
|
205
|
-
- Enable language selection for multilingual content
|
|
206
|
-
|
|
207
|
-
## 🤝 Contributing
|
|
208
|
-
|
|
209
|
-
Contributions welcome! Open an issue or submit a PR.
|
|
210
|
-
|
|
211
|
-
Ideas for improvements:
|
|
212
|
-
- Auto-capitalization for emphasis
|
|
213
|
-
- Color-coded keywords
|
|
214
|
-
- Export with burned-in subtitles
|
|
215
|
-
- Batch processing multiple files
|
|
216
|
-
|
|
217
|
-
## 📜 License
|
|
218
|
-
|
|
219
|
-
MIT License - see [license.txt](license.txt)
|
|
220
|
-
|
|
221
|
-
## 🤝 Credits
|
|
222
|
-
|
|
223
|
-
- [OpenAI Whisper](https://github.com/openai/whisper) - Speech recognition
|
|
224
|
-
- [FastAPI](https://fastapi.tiangolo.com/) - Backend framework
|
|
225
|
-
- [Gradio](https://gradio.app/) - ML web interfaces
|
|
226
|
-
|
|
227
|
-
Built with ❤️ by [Ambrish](https://github.com/ambrish-yadav)
|
|
228
|
-
|
|
229
|
-
Follow for updates: [@ambrish.yadav.1](https://instagram.com/ambrish.yadav.1)
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
<div align="center">
|
|
234
|
-
|
|
235
|
-
⭐ Star this repo if you find it useful!
|
|
236
|
-
|
|
237
|
-
</div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|