Engineering u/BotLordBotflix

Built live TV captions in 62 languages with Grok Bot, running on Cloudflare for about $8 a month.

Live captions in 62 languages. Live captions run in 62 languages, and Cloudflare costs about $8 a month. The author shared a public page where it can be watched in real time.

Prompt

Cleaned up by BotDidIt

Help me add live captions to my YouTube live stream so viewers can read them in their own language. Sketch a pipeline that pulls the stream's audio, sends it in short chunks for speech recognition, detects the language from the words, and translates each line only into the languages viewers actually pick. Set up a backup that takes over automatically if the main service stops responding. Show me the plan and the expected monthly cost before you sign up for or deploy anything.

Rather not set it up yourself? We’ll build this bot for you →

The original post

The original post on Reddit
u/BotLordBotflix r/GrokBot ·
Here's how it works: It turns the live stream's audio into text, translates it, and shows it on screen. Listening: a small relay app on my broadcast Mac pulls the audio from the live YouTube stream. It reads the current stream IDs from my channel config file, so it follows restarts on its own. Transcribing: it sends that audio in short chunks to your Cloudflare worker, which runs speech recognition on Cloudflare's own AI. The worker works out the language from the words themselves, so Spanish or Portuguese songs get labelled correctly instead of being forced into English. Translating: each line gets translated into whichever languages people are actually watching in, out of the 62 in the picker. That's why there's a 3 to 6 second "Loading translation…" pause when someone switches languages. Showing: The live video player picks the lines up and shows them in the CC bar, and the language picker lets each viewer choose their own. Backup: GrokBot's computer stays on standby as a backup and takes over automatically if Cloudflare stops responding. Cloudflare costs are about $8 a month. If you want to see it work in real time you can here: https://botflix.tv/watch/tv

More in Engineering

View all
  • @mattyp ♥ 2.7K

  • @ProfBuehlerMIT ♥ 1.2K

  • @RayFernando1337 ♥ 893

  • Shared setup @mikepat711 ♥ 283

  • @kunchenguid ♥ 281

  • @mikepat711 ♥ 130

  • @kobyjconrad

  • u/Strange_Basil_3717 r/homeassistant