Blame

8181d1 Tebby Dog 2025-07-06 22:24:48
Updated with Satire
1
# 🚄 Subway Surfers Text-to-Video Converter  
2
Inspired by the absolute legend [danielbonkowsky/subwaysurfers-text](https://github.com/danielbonkowsky/subwaysurfers-text), this project throws some sauce on the original concept. If this container saves you time (or your sanity), go drop a star on his project already, damn it.
3
4
## 🚀 What the Hell Is This?
5
You ever try to focus on an article and your brain taps out after the second paragraph? Same. This little monster extracts text from a webpage and slaps it onto hyperactive **Subway Surfers** gameplay footage—turning dry, boring content into something your scrolling-addicted brain can actually sit through. Perfect for TikTok, ADHD, or just making studying suck less.
6
7
You get:
8
🧠 smart content + 🎮 mindless gameplay = ✅ actual retention (probably)
9
10
## 📸 Screenshot
11
![Subway Surfers — Screenshot Probably Looks Awesome Here](#)
12
13
## 🎯 Oh Hell Yeah, Features
14
- Converts your average web article into a **Subway Surfers-screaming-TikTok-style video**
15
- Rips text straight from URLs
16
- Slaps it on top of fast-ass gameplay
17
- Bonus points: **speech-to-text powered by Vosk API**
18
- Built with **Flask + OpenCV + goose3 + Python + zero chill**
19
20
---
21
22
## 🐳 Running This Beast with Docker
23
24
**Step 1:** Pull the image, because we’re not building this crap from scratch:
25
```sh
26
docker pull tebwritescode/subwaysurfers-text20:latest
27
```
28
29
**Step 2:** Get the Vosk brain model and unzip it:
30
```sh
31
wget https://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip
32
unzip vosk-model-en-us-0.22.zip -d ./
33
rm vosk-model-en-us-0.22.zip
34
```
35
36
**Step 3:** Drop a gameplay video into `./sources` — any `.mp4` will do. More videos = more fun. Only one? It'll reuse that sucker on every run.
37
38
**Step 4:** Let’s ride:
39
```sh
40
docker run -d --name subwaysurfers-text \
41
-v ./subwaysurfers/sources:/app/sources \
42
-v ./subwaysurfers/vosk-model-en-us-0.22:/app/static/vosk-model-en-us-0.22 \
43
-p 5000:5000 \
44
tebwritescode/subwaysurfers-text20:latest
45
```
46
47
**Step 5:** Fire up your browser and hit:
48
```
49
http://localhost:5000
50
```
51
52
Get ready to weep tears of productivity as your article runs across a CGI train track.
53
54
---
55
56
## 🛠 Using Docker Compose Like a True King
57
Replace `<HOSTPATH>` with the full path to where your god-tier video and Vosk model live.
58
59
```yaml
60
services:
61
subwaysurfers-text:
62
image: tebwritescode/subwaysurfers-text20:latest
63
volumes:
64
- <HOSTPATH>/sources:/app/sources
65
- <HOSTPATH>/vosk-model-en-us-0.22:/app/static/vosk-model-en-us-0.22
66
ports:
67
- "5000:5000"
68
```
69
70
Start it up:
71
```sh
72
docker-compose up -d
73
```
74
75
Fun fact: if you only mount one `.mp4`, the app will always use that. Mount a folder of them? It picks a random vid each time. 🎲
76
77
---
78
79
## 🐍 The Dockerfile Straight-Up Breakdown
80
81
- Uses a slimmed-down official Python image
82
- Installs all the nasty dependencies (yes, even ffmpeg and build tools)
83
- Brings in Homebrew in case you're feeling fancy
84
- Copies the app, installs Python and brew packages
85
- Runs Flask like it means it
86
- Your container, your rules
87
88
---
89
90
## 🔮 Shit I Still Wanna Add
91
- Drop-down to select different AI voices (because not every AI wants to sound like Siri on Ambien)
92
- NVIDIA GPU acceleration (because some of you have beefy rigs)
93
- Fix that annoying subtitle-stuck bug nobody asked for
94
95
---
96
97
## 🧠 Want to Run It Without Docker?
98
You rebel. Here’s the repo for bare-metal installs:
99
👉 https://github.com/tebwritescode/subwaysurfers-text-multi
100
101
---
102
103
## 🏆 Big-Ass Credit Section
104
Massive props to [danielbonkowsky](https://github.com/danielbonkowsky/subwaysurfers-text) for the core idea. This is just a remixed, Dockerized, slightly louder sibling. Go say thanks.
105
106
---
107
108
## ⚠️ Final Note from His Royal Freshness™
109
Yeah, the container works. It does the job. But it's packing a little extra weight and could use a clean-up. If trimming containers gives you a tech boner, PRs are wide open.
110
111
Enjoy learning like a hyper-caffeinated teenager on TikTok 🚀