In short

  • My Korean dub MP3 followed the video’s timing, which meant long pauses and changing speed when I listened with no picture.
  • I made two kinds of file on my NAS: “synced” (follows the video) and “listen-only” (steady speed, sentences joined). I also added caption downloads (.txt, .srt, .vtt; English plus Korean, Korean only, or original only) and an orange speaker icon named 더빙.
  • A one-hour talk is about 20 MB per file. The first caption download gave the same file for every option, because the NAS was still running the old code.
  • Cost: $0 for the voice and the NAS work; DeepSeek for translation, with no clean per-hour figure.

The Need

When I listen with the screen off, I do not need the voice to match the video. I need it to be easy to hear for an hour.

My first file did match the video. Every Korean sentence started when the English sentence started. If the speaker paused for 20 seconds, my file was silent for 20 seconds. If a sentence was long, the voice sped up to fit before the next one. In front of the video this feels right. In my ears, with nothing to look at, it felt like the voice was always hurrying or gone.

The Proof

On every saved video there are now two buttons:

  • Synced file. Follows the video. Good if I want to look at the picture too.
  • Listen-only file. Sentences are joined one after another at normal speed, with a short pause between them.

Both come from the same saved video. Because the listen-only file drops the original silences, it is shorter than the synced one, and the speed is the same from start to end. I use it when I walk. The synced file is for when I want to look at a slide or a chart while I listen.

The Story

I wrote the request on November 21, in the evening:

💬 Prompt that worked “When I make a listen file on the script screen, it is matched to the video. Please make two kinds: ‘synced’ and ’listen-only’. Synced stays as it is now. For ’listen-only’, do not match the video; join the captions and audio one after another.”

The same message had two other problems, and they went into the same release.

Caption downloads gave one file. I had added a download for the captions and a menu of options. I picked different ones, but every file was the English-plus-Korean text. My server code was right. The NAS was still running the old container, so it ignored the options. I checked this with curl against the public address before I touched the code again. After I rebuilt the cap container, the options worked.

A phone chooser. When I saved a .srt on Android, the phone asked which app should open it, and offered a search engine and an AI app. I made .txt the default and kept .srt and .vtt as extra choices. On the phone, my plain “options” button also did not show the list, so I changed it to a real drop-down.

One more small request. I asked for a different icon from my other app, and a shorter name. Now the home-screen icon is an orange speaker, and the name is 더빙, which means “dubbing.”

The How

Two files, one script. Both files come from the same translated captions. The build code has one switch.

  • Synced. Start each sentence at its caption time. If the Korean is longer than the time until the next caption, speed it up, at most 1.6x. Leave a gap of 0.12 seconds.
  • Listen-only. Start each sentence right after the last one at normal speed. Leave a gap of 0.4 seconds, or 0.9 seconds where the speaker really paused for more than 2 seconds.

The files are named ID.mp3 and ID_only.mp3 and live in /data/audio/ in a Docker volume. A request such as /render?v=ID&mode=only starts the listen-only build, and /audio?v=ID&mode=only plays or downloads it. Each file has its own .meta list of sentence times, so the player can show which sentence is playing.

Caption downloads. One endpoint, three choices:

/lib?q=ID&fmt=txt|srt|vtt&lang=both|ko|src&dl=1

both writes the original and the Korean, ko writes Korean only, and src writes the original only. .srt and .vtt use the caption times. The MP3 downloads use /audio?v=ID&dl=1.

Install as an app. A web manifest with the name 더빙, a start page for the video screen, and four icon sizes (including the “maskable” kind for Android). I drew the speaker with a short Python script (Pillow) so the icon would not look like my other app.

🗂 Claude.md Rule If a new option “does nothing,” call the live server with curl first. In this project, the code was correct and the NAS was running an older container.

🗂 Claude.md Rule When you change a page twice in one day, raise the cache version with a new letter each time. Cloudflare keeps the old file under the old version string.

Cost: $0 for the voice (edge-tts), ffmpeg, and the NAS. DeepSeek does the translation, and I have no clean per-hour figure.

What I’ll try next

  • A video without captions cannot be turned into either file. Speech-to-text could fill that gap, but the lab server I would use has too few free resources for now.
  • I want an option to mix a little of the original English voice under the Korean for the synced file.
  • Old MP3 files stay forever. I should add a cleanup.