Dubbing in your own voice: three ways to translate a video with Claude Code, one of them free
| 1 | Materials repository | github.com |
-
1
00:00
Result: the same voice, a different language
1 What to do
A clip from the video plays in Ukrainian in my voice; three options side by side and the price of each.
-
2
00:40
The task: Claude interviews me
1 What to do
No code yet: Claude Code first asks questions and writes the task into TASK.md.
2 Prompt
EN · PromptI have a YouTube channel in Russian. I want my videos to have a Ukrainian track in my own voice. Source files: the input folder has a clip from a video and a sample of my voice. Don't write any code yet. First ask me questions — everything you need to know to design this.
EN · Prompt from the screenУ меня YouTube-канал на русском. Хочу, чтобы у роликов была украинская дорожка моим же голосом. Исходники: в папке input — фрагмент ролика и образец моего голоса. Код пока не пиши. Сначала задай мне вопросы — всё, что тебе нужно знать, чтобы это спроектировать.
-
3
03:08
Research: services, prices, my machine
1 What to do
Claude searches for options for each block with prices and links, I check the prices myself, then it checks my machine.
2 Prompt
EN · PromptFor each block from TASK.md, find options online: cloud services, APIs, open source. For each option: does it work on Windows, macOS, Linux; locally or on a server; CPU or GPU; how much does one 20-minute video cost in dollars. With a link to the price page. Put this into a table in research.md. Don't choose for me.
EN · Prompt from the screenДля каждого блока из TASK.md найди в сети варианты: облачные сервисы, API, open source. Для каждого варианта: работает ли на Windows, macOS, Linux; локально или на сервере; CPU или GPU; сколько стоит в долларах один ролик на 20 минут. Со ссылкой на страницу цены. Сложи это таблицей в research.md. Не выбирай за меня.
-
4
07:07
Voice clone and a trial on 30 seconds
1 What to do
Voice clone and the shortest path on 30 seconds: audio, text, translation, voice, file.
2 Prompt
EN · PromptBuild the shortest path on the first 30 seconds of the clip, no polish: audio → text → translation into Ukrainian → my voice Voice RU → file. The ElevenLabs key is in the environment variable ELEVENLABS_API_KEY — don't print the value. Put the original and the dub side by side so I can listen to them one after another.
EN · Prompt from the screenСделай самый короткий путь на первых 30 секундах фрагмента, без красоты: звук → текст → перевод на украинский → мой голос Voice RU → файл. Ключ ElevenLabs лежит в переменной окружения ELEVENLABS_API_KEY — значение не выводи. Положи оригинал и дубль рядом, чтобы я послушал подряд.
-
5
09:12
Pipeline: audio, text, translation, voiceover
1 What to do
The pipeline step by step: audio separately, word-level transcription, translation with a glossary, voiceover phrase by phrase, assembly.
2 Prompt
EN · PromptNow for real, following DECISIONS.md. The first two steps: extract the audio from the video and transcribe it with timecodes for every word. Run it on the whole clip and show how long it took.
EN · Prompt from the screenТеперь по-настоящему, по DECISIONS.md. Первые два шага: достать звук из видео и расшифровать с таймкодами каждого слова. Прогони на всём фрагменте и покажи, сколько это заняло.
-
6
13:33
Where it breaks, comparing by ear, and the price
1 What to do
It's the pronunciation that breaks, not the translation: I fix it with a rule in the glossary. I compare with a ready-made service by ear and calculate the price.
2 Prompt
EN · PromptRead notes.md. Fix the glossary or the rules so these places sound right, and re-run one phrase — the worst one. Don't touch the rest.
EN · Prompt from the screenПрочитай notes.md. Поправь глоссарий или правила так, чтобы эти места звучали правильно, и перегони одну фразу — самую плохую. Остальное не трогай.
-
7
18:06
If there's no graphics card: the same pipeline on a server
1 What to do
The same pipeline on the CPU of a server with no graphics card, and a comparison of the time.
-
8
18:53
The last step: uploading the track in Studio