Skip to content The free AI skill pack is ready

How I Clone My Own Voice to Narrate My Videos

· 8 min read · By Minh

Updated: November 17, 2026

My tutorial videos have a lot of sentences to read out loud. After recording I still have to listen back, trim, and re-record the bad ones. So I built a setup that reads in my own voice.

2,318 sentencesfor one long tutorial video
119 minutesof audio in total

Your voice is processed right on your own computer and isn’t sent to any service.

Text to speech

The machine turns text into speech and gives you back an audio file.

Voice clone

Copying a voice: the machine listens to a sample of a voice, then reads new text in that voice. I call it a cloned voice for short.

Careful: Only clone your own voice, or the voice of someone who has agreed. I only use my own voice, and the app in this post also shows this line right under its title.
Read more: the computers I tested on, disk space, and how to tell which kind of computer you have

Mac: I tested on an Apple silicon Mac (M1 or later) with macOS 15.

Windows: I tested on 64-bit Windows 10. The test machine is a desktop with an Intel Xeon chip and 16 GB of RAM. On Windows the app runs on the CPU, so it is slower than on a Mac (see the speed measurements below).

Windows 11 is untested. Intel Macs are untested, so don’t install it there. The Mac command stops by itself if the machine isn’t an Apple silicon Mac. The Windows command stops by itself if Windows isn’t 64-bit.

Free disk space on a Mac: about 6 GB. Breakdown: app 1.2 GB, voice model and speech recognition model 4.6 GB, install tool 0.1 GB.

On Windows: about 7.3 GB by my measurement. Breakdown: app 1.2 GB, voice model and speech recognition model 4.6 GB, install tool plus its cache 1.3 GB.

If you don’t know which kind of Mac you have: click the Apple icon at the top left of the screen and choose About This Mac. If you see Chip next to Apple M1, M2, M3, or M4, it’s an Apple silicon Mac. If you see Intel, it’s an Intel Mac.

If you use Windows and don’t know whether it’s 64-bit: click Start, type “About your PC”, press Enter, and look at the System type line. If it says “64-bit”, you’re good.

These are measurements from my machine. Yours may differ.

Read more: why I built this, and what this post covers

My tutorial videos have a lot of sentences to read out loud. Reading the on-screen steps, reading sample commands, reading the narration. I can’t record every sentence myself.

After recording I still have to listen back, trim, and re-record the bad ones. For one long tutorial video, this eats up a lot of sessions.

In a long tutorial video, this setup generated 2,318 sentences, 119 minutes of audio in total. This post tells how it really runs, with real measurements. The step-by-step guide to build a small, free app that runs right on your own computer comes right below.

The whole process in one picture

1Install and openPaste one command line
2Make a voice sampleDrop in your recording
3Type, click createOne sentence per line
4Listen, fix wordsRedo sentences you don’t like
5Merge and saveGet an audio file

Listen to the voice before you start

Listen before and after adding one row to the word-fix table (the Bảng sửa từ).

Before the CapCut row: the machine reads it something like “cáp cất”.
After adding CapCut becomes cáp cắt: the machine reads it correctly.

Listen before and after the post-processing step: the same sentence, from the same generation.

Before post-processing, 6.84 seconds long.
After the energetic post-processing: faster, clearer words, 6.36 seconds long.
Read more: what the two sentences in the listening part say

In the first pair, both versions read the sentence: “Mở CapCut, kéo ba clip vào timeline rồi cắt bỏ đoạn đầu bị rung.” (Open CapCut, drag three clips into the timeline, then cut off the shaky beginning.)

In the second pair, both versions read the sentence: “Cái hay của cách này là sửa một câu thì chỉ câu đó phải tạo lại, cả bài không phải làm lại từ đầu.” (The nice thing about this method is that when you fix one sentence, only that sentence has to be regenerated, and you don’t redo the whole script from the start.)

Follow the steps

Read more: already have Claude Code, Codex, or Antigravity? Paste one prompt and you’re done

If you already have an AI assistant that can run commands on your computer (Claude Code, Codex, Antigravity), you don’t need to do the steps below by hand. Copy the whole block of text below, paste it into the assistant, and press Enter. The assistant checks whether your machine is a Mac or Windows, downloads and reads the installer, installs it, opens the app, then tells you how to use it. The app’s interface is in Vietnamese; I’ve put English labels in parentheses.

Paste this into the chat box

Please install the "Tạo giọng" (Create voice) app on this computer. It is an app that generates speech in my own voice, runs right on the computer, and is free. Original guide: https://minhdigital.com/en/posts/clone-your-own-voice-for-video-narration/
I'm not technical. Do each step yourself, ask me only when you really have to, and report back in plain English.

1. Check whether this is a Mac or Windows. A Mac must be Apple silicon (M1 or later). Windows must be 64-bit. The disk must have at least 15 GB free. If the machine doesn't meet this, stop and tell me why.
2. Download the installer, read it, tell me what it will do, and then run it:
- Mac (Terminal):
curl -fsSL https://minhdigital.com/wp-content/uploads/tao-giong/cai-v3.sh -o /tmp/cai-tao-giong.sh && bash /tmp/cai-tao-giong.sh
- Windows (PowerShell):
irm https://minhdigital.com/wp-content/uploads/tao-giong/cai-win-v3b.ps1 -OutFile "$env:TEMP\cai-tao-giong.ps1"; powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\cai-tao-giong.ps1"
The install takes about 5 to 15 minutes. Wait until you see the line "Cài xong" (Install complete). If it fails because of the network, run it again, up to 3 times.
3. Open the app using the "Tạo giọng" icon that was just placed on the desktop:
- Mac: open "$HOME/Desktop/Tạo giọng.command"
- Windows (PowerShell): Start-Process "$([Environment]::GetFolderPath('Desktop'))\Tạo giọng.lnk"
Try opening http://127.0.0.1:7860 every 15 seconds, for up to 10 minutes, until the page responds.
4. When done, tell me briefly:
- The Tạo giọng page is open in the browser. Next time I only need to double-click the "Tạo giọng" icon on the desktop.
- The first time, the app's text window downloads an additional voice model of about 3 GB and a speech recognition model of about 1.6 GB. Wait until you see the line "Bộ giọng đã sẵn sàng" (Voice model ready) before clicking "Tạo giọng".
- How to use it, in 3 steps: (1) drop in a recording of me speaking naturally for 20 to 60 seconds, click "Tìm đoạn mẫu 8–14 giây" (Find an 8–14 second sample), listen, pick a segment, then click "Lưu mẫu này" (Save this sample); (2) for any word the app reads wrong, add it to the "Bảng sửa từ" (word-fix table) and click "Lưu bảng" (Save table); (3) type the text to read, one sentence per line, click "Tạo giọng" (Create voice), listen to each sentence, click "Tạo lại câu này" (Regenerate this sentence) for any I'm not happy with, and finally click "Ghép và lưu" (Merge and save).
- Only use my own voice or the voice of someone who has agreed.
Do not use sudo or admin rights, and do not install anything beyond the installer above.
Reply to me in English.

Here’s what I tested:

  • I pasted this prompt into Claude Code on an M1 Max Mac.
  • Claude checked the machine, downloaded the installer and read it first, installed, opened the app, then reported back the exact 3 steps for using it. Claude’s own working time was 45 seconds. This install took only about 1 minute because the machine already had part of the setup. A fresh machine takes 5 to 15 minutes.
  • The Windows commands in the prompt were run for real on Windows 10.
  • Codex and Antigravity are untested. The prompt is plain text, so any assistant that can run commands on your computer can read it. If you use those two tools, read carefully what the assistant tells you before you let it run anything.
Claude Code receives the pasted prompt, reports that the machine meets the requirements, reads the installer, then installs. 77 seconds of it is fast-forwarded. At the end Claude reports “Ứng dụng Tạo giọng đã cài xong và đang chạy” (The Tạo giọng app is installed and running) along with the 3 steps for using it.

The first time it opens, the app also downloads a voice model of about 3 GB and a speech recognition model of about 1.6 GB. Wait until you see the line “Bộ giọng đã sẵn sàng” (Voice model ready) before you click “Tạo giọng” (Create voice).

If you don’t use an AI assistant, follow the steps below by hand.

Step 1

Install the app

Terminal is a window where you paste one line of command and the computer follows it. On Windows, it is called PowerShell.

Mac: press Command + Space, type Terminal, press Enter. Then paste the command below (Command + V) and press Enter.

Mac

curl -fsSL https://minhdigital.com/wp-content/uploads/tao-giong/cai-v3.sh | bash

Windows: click Start, type PowerShell, press Enter. You don’t need to run it as administrator (Run as administrator). Then paste the command below (Ctrl + V or right-click) and press Enter.

Windows

irm https://minhdigital.com/wp-content/uploads/tao-giong/cai-win-v3b.ps1 -OutFile "$env:TEMP\cai-tao-giong.ps1"; powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\cai-tao-giong.ps1"
Terminal showing "=== Cài xong ===" (Install complete) and telling you to double-click the "Tạo giọng" icon on the desktop.
Install finished, captured on Mac.

Done when: you see the line “=== Cài xong ===” (Install complete).

Read more: the four tasks the machine does while installing, and what the screen looks like

The machine doesn’t ask for your computer password. The command does 4 tasks and reports each one as [1/4], [2/4], [3/4], [4/4].

On Mac, task 1: download the install tool uv (about 20 MB) if the machine doesn’t have it yet. Task 2: download the app. Task 3: install the voice engine (about 1 GB). Task 4: put the “Tạo giọng” icon on the desktop.

Terminal running the install command, at step [3/4] Cài bộ máy giọng (Install the voice engine).
Terminal running the install command, at step [3/4] Cài bộ máy giọng (Install the voice engine).

On a clean machine, I measured the Mac install at 7.5 minutes (451 seconds). Yours may differ.

On Windows, the command does the same 4 tasks as the Mac version. Task 1 is downloading the install tool uv if the machine doesn’t have it yet. Install time on the test machine: 1 minute 43 seconds, including the time to download the uv install tool. Yours may differ.

Windows PowerShell window: the install command, then the four tasks [1/4] to [4/4] each reporting "Xong" (Done), then "=== Cài xong ===".
Windows PowerShell window: the install command, then the four tasks [1/4] to [4/4] each reporting “Xong” (Done), then “=== Cài xong ===”.

Step 2

Open the app

Double-click the “Tạo giọng” icon on the desktop. A text window appears, and the browser opens the app page by itself. Don’t close that text window while you’re using the app.

The first time, the machine downloads the 3.27 GB voice model. Wait until the window says “Bộ giọng đã sẵn sàng.” (Voice model ready.)

The first time you click “Tìm đoạn mẫu” (Find sample), the machine also downloads a speech recognition model of about 1.6 GB.

The app just opened in the browser: the title, Bước 1 (Step 1) with the box for dropping in a recording, the "Tìm đoạn mẫu 8–14 giây" (Find an 8–14 second sample) button, and Bước 2 (Step 2) the word-fix table.
The app just opened in the browser.

Done when: you see the app page in the browser.

Read more: how the first launch differs on Mac and Windows

The app has 4 sections numbered “Bước 1” to “Bước 4” (Step 1 to Step 4). To avoid mixing them up with the steps in this post, I’ll call them the “Mẫu giọng” (Voice sample) section, the “Bảng sửa từ” (word-fix table) section, the “Chữ cần đọc” (Text to read) section, and the “Lưu file” (Save file) section.

The text window is Terminal on Mac and a black window on Windows. Close it when you’re done. Next time you open the app, the speech recognition model won’t download again.

Mac: the machine takes about 3.5 minutes to download the voice model. In between there are a few English lines from the downloader, which you can ignore. If the computer asks for permission, click Allow.

Terminal after double-clicking the icon for the first time: downloading the 3.27 GB voice model, then reporting "Bộ giọng đã sẵn sàng." (Voice model ready.)
Terminal after double-clicking the icon for the first time: downloading the 3.27 GB voice model, then reporting “Bộ giọng đã sẵn sàng.” (Voice model ready.)

Windows: the machine takes about 13 minutes to download the voice model, on a connection downloading about 4 MB per second.

On the Windows test machine, the first click on “Tìm đoạn mẫu” took 8 minutes, mostly the time to download the speech recognition model.

Step 3

Make your voice sample

Drop your recording into the box “Thả file ghi âm giọng bạn vào đây, hoặc bấm micro để thu” (Drop your voice recording here, or click the mic to record). Speak naturally for 20 to 60 seconds.

Click “Tìm đoạn mẫu 8–14 giây” (Find an 8–14 second sample). The machine suggests 3 segments. Click each one and listen in the “Nghe đoạn mẫu đã cắt” (Listen to the trimmed sample) box. Pick the segment where the speech runs through complete sentences.

Click Đoạn 1 (Segment 1; the transcript is cut off), then Đoạn 3 (Segment 3; the transcript has complete sentences). The blue area moves with it.

The machine writes the transcript into the “Lời trong đoạn mẫu” (Sample transcript) box by itself. Correct it word for word. Write numbers out as words.

Name it in the “Đặt tên mẫu” (Name the sample) box, then click “Lưu mẫu này” (Save this sample).

Done when: the machine reports “Đã lưu mẫu giong-cua-toi (11.1 giây).” (Saved the sample giong-cua-toi (11.1 seconds).)

Read more: a real example of which segment I picked, which I skipped, and how to trim by hand

A .wav, .mp3, or .m4a file all work. Or click the microphone to record directly. The machine draws the waveform and shades the pauses orange. Each suggested segment starts and ends at a pause. The blue area in the picture is the segment currently selected.

You don’t need to record in a studio. One of mine was recorded outdoors with wind noise and it still worked as a sample.

A 40-second recording dropped into the box, with the waveform showing.
A 40-second recording dropped into the box, with the waveform showing.

The machine uses the transcript together with the sample audio, so the transcript has to be copied down word for word.

A real example. Đoạn 1 (6.49 to 17.21 seconds) has a transcript that the machine wrote down cut off at both ends, which means the cut falls in the middle of a sentence.

Đoạn 1: the transcript the machine wrote is cut off at both ends, so don't pick this segment.
Đoạn 1: the transcript the machine wrote is cut off at both ends, so don’t pick this segment.

Đoạn 3 (8.85 to 19.92 seconds, 11.1 seconds long) has a transcript with two complete sentences. The machine got only one word wrong: “nhá” instead of “nhé”. I picked this segment.

Đoạn 3, 11.1 seconds long: a transcript with two complete sentences, and the machine got only one word wrong ("nhá" instead of "nhé").
Đoạn 3, 11.1 seconds long: a transcript with two complete sentences, and the machine got only one word wrong (“nhá” instead of “nhé”).

If you want a more precise cut, open “Chỉnh tay mốc cắt (không bắt buộc)” (Adjust cut points manually (optional)) and type in the start and end seconds.

The machine reports "Đã lưu mẫu giong-cua-toi (11.1 giây). Lần sau mở ứng dụng là có sẵn." (Saved the sample giong-cua-toi (11.1 seconds). It will be there next time you open the app.)
The machine reports “Đã lưu mẫu giong-cua-toi (11.1 giây). Lần sau mở ứng dụng là có sẵn.” (Saved the sample giong-cua-toi (11.1 seconds). It will be there next time you open the app.)

The machine reports the full line “Đã lưu mẫu giong-cua-toi (11.1 giây). Lần sau mở ứng dụng là có sẵn.” Next time you open the app, the sample is already in the “Mẫu giọng đã lưu” (Saved voice samples) box. To make a different sample, click “Làm mẫu mới” (Make a new sample).

Step 4

Type text, click create, listen

In the Chữ cần đọc section, type into the “Chữ cần đọc” (Text to read) box. One sentence per line works best.

Click the “Tạo giọng” (Create voice) button. Each sentence gets a card with a play button and a score line: “Máy nghe khớp” (Machine heard a match) or “Nên nghe lại” (Worth listening again).

Type 3 sentences, click “Tạo giọng”, the sentence cards appear, click to listen to sentence 1. The waiting time is fast-forwarded, and the real time is shown on screen.

If a sentence sounds a little off, click “Tạo lại câu này” (Regenerate this sentence) a few times. Then pick the version you like under “Chọn bản” (Choose version).

Careful: The machine’s score is only a hint, so listen with your own ears. Decimal numbers like 1,6 often lose the word “phẩy” (point), and the listen-back check can’t catch that.

Done when: every sentence has a card and you have clicked to listen.

Read more: the two checkboxes, what is on each sentence card, and the 3-sentence example I tried

On Windows, the app runs on the CPU, so it is about 5 times slower than a Mac.

Look at the two checkboxes below the typing box. Both are on by default. The “Hậu kỳ cho giọng hào hứng (nhanh hơn 10%, rõ hơn, to đều)” (Energetic-voice post-processing (10% faster, clearer, even volume)) box is the post-processing step. The “Máy tự nghe lại từng câu, câu sai thì tự tạo lại” (The machine listens back to each sentence and regenerates wrong ones) box is the listen-back step, trying up to 3 versions per sentence.

3 sentences typed in, one per line, both checkboxes on, and the "Tạo giọng" button.
3 sentences typed in, one per line, both checkboxes on, and the “Tạo giọng” button.

Numbers in a sentence are automatically turned into words. “1,6” becomes “một phẩy sáu” (one point six). “3.11” becomes “ba chấm mười một” (three dot eleven). “1.500” becomes “một nghìn năm trăm” (one thousand five hundred). “50%” becomes “năm mươi phần trăm” (fifty percent).

Each sentence gets a card. A card has:

Máy đọc: …

“Machine reads: …” This line shows up if the text the machine reads differs from the text you wrote.

Play button

There is also a download button for that sentence alone.

The listen-back score

“Máy nghe khớp” (Machine heard a match) or “Nên nghe lại” (Worth listening again).

Chọn bản (Choose version)

It also holds the “Tạo lại câu này” (Regenerate this sentence) button.

With the 3 sentences I tried on the Mac, the first run took 65 seconds. Sentence 1 is “Mở CapCut, kéo clip vào timeline.” (Open CapCut, drag the clip into the timeline.) Its card says “Nên nghe lại (0.75)”. The “Máy đọc” line says “Mở CapCut, kéo clip vào tham lai.” The machine heard “Mở cắp cướp, kéo clip vào timeline”. It had already made 3 versions by itself and still wasn’t satisfied.

On the Windows test machine, the same 3 sentences took 357 seconds, about 6 minutes, because it runs on the CPU. After adding the CapCut row as in Step 5, regenerating sentence 1 took 52 seconds, and all 3 sentences reported “Máy nghe khớp”.

"Xong 3 câu: tạo mới 3... Mất 65 giây." (Done, 3 sentences: 3 newly generated... Took 65 seconds.) The card for sentence 1 reports "Nên nghe lại (0.75)", and the machine heard "Mở cắp cướp, kéo clip vào timeline".
“Xong 3 câu: tạo mới 3… Mất 65 giây.” (Done, 3 sentences: 3 newly generated… Took 65 seconds.) The card for sentence 1 reports “Nên nghe lại (0.75)”, and the machine heard “Mở cắp cướp, kéo clip vào timeline”.

Click the Play button on each card to listen.

The card for sentence 1 playing. Each sentence has its own Play button and download button.
The card for sentence 1 playing. Each sentence has its own Play button and download button.

Step 5

Fix a word the machine reads wrong

The machine doesn’t always read Vietnamese text mixed with English correctly. When a word is read wrong, add it to the word-fix table.

Click “Thêm một dòng” (Add a row). Double-click a cell to type: the written text in the left column, how to read it in the right column.

Click “Lưu bảng” (Save table), then click “Tạo giọng” again. Only the sentences that contain that word are regenerated.

Add the row CapCut becomes cáp cắt, save the table, click “Tạo giọng”: only sentence 1 is regenerated.

In the video, I deleted the CapCut row from the table first so you can see the error. Your table already has the CapCut row. If you want to try it yourself, use a different word that the machine reads strangely.

Done when: the machine reports the table is saved, and the sentence you fixed is regenerated.

Read more: which rows the table starts with, a real example adding the CapCut row, and how long it takes

The word-fix table has 2 columns: “Chữ viết” (Written text) is the text you type, and “Máy đọc là” (Machine reads it as) is how you want the machine to read it. When it’s installed, the table comes with 4 rows: timeline becomes tham lai, CapCut becomes cáp cắt, GB becomes ghi, video-dau-tien becomes video đầu tiên.

Your table already has the CapCut row from the install, so you won’t see exactly this error. The other sentences come from the saved versions. The machine reports something like “Đã lưu bảng (4 dòng).” (Table saved (4 rows).)

The word-fix table with 3 rows: timeline becomes tham lai, GB becomes ghi, video-dau-tien becomes video đầu tiên. I deleted the CapCut row for the example.
The word-fix table with 3 rows: timeline becomes tham lai, GB becomes ghi, video-dau-tien becomes video đầu tiên. I deleted the CapCut row for the example.

Sentence 1 in Step 4 was read wrong because the machine reads “CapCut” in a strange way. Here’s the fix: click “Thêm một dòng”, type CapCut in the “Chữ viết” column and cáp cắt in the “Máy đọc là” column, click “Lưu bảng”, then click “Tạo giọng” again.

After clicking "Thêm một dòng", typing CapCut becomes cáp cắt, and clicking "Lưu bảng": "Đã lưu bảng (4 dòng)."
After clicking “Thêm một dòng”, typing CapCut becomes cáp cắt, and clicking “Lưu bảng”: “Đã lưu bảng (4 dòng).”

This time only sentence 1 is regenerated, and the other two come from the saved versions. The machine reports “Xong 3 câu: tạo mới 1, lấy lại từ bản đã lưu 2. Mất 23 giây.” (Done, 3 sentences: 1 newly generated, 2 reused from saved versions. Took 23 seconds.) Sentence 1 now shows “Máy đọc: Mở cáp cắt, kéo clip vào tham lai.” and “Máy nghe khớp (1.00)”. There are Bản 1 (Version 1) and Bản 2. For Bản 1 the machine heard “Mở các cách”, so it made version 2 by itself.

After regenerating: "tạo mới 1, lấy lại từ bản đã lưu 2. Mất 23 giây" (1 newly generated, 2 reused from saved versions. Took 23 seconds), sentence 1 has Bản 1 and Bản 2, "Máy nghe khớp (1.00)".
After regenerating: “tạo mới 1, lấy lại từ bản đã lưu 2. Mất 23 giây” (1 newly generated, 2 reused from saved versions. Took 23 seconds), sentence 1 has Bản 1 and Bản 2, “Máy nghe khớp (1.00)”.

Step 6

Merge and save the file

In the Lưu file section, name it in the “Tên file” (File name) box. The default is giong-doc. Then click “Ghép và lưu” (Merge and save).

The machine reports “Đã lưu vào thư mục ~/Downloads/Tao-giong/giong-doc-…” (Saved to the folder ~/Downloads/Tao-giong/giong-doc-…). Open the Downloads folder on your computer and go into the Tao-giong folder.

toan-bo.wav, toan-bo.mp3

The whole script merged together, with a 0.35-second pause between sentences.

cau-01.wav, cau-02.wav…

The individual sentences, for dragging into your video editor.

The Lưu file (Save file) section: the file toan-bo.mp3, reporting it was saved to ~/Downloads/Tao-giong/giong-doc-..., including the merged file and the individual sentences.
The Lưu file (Save file) section.

Done when: you see the files in the Tao-giong folder.

Read more: where the files are on Windows, and how to uninstall the app

The part after “giong-doc-” is the date and time. On Windows, the files are also in your Downloads folder, in the Tao-giong folder. The machine reports a path that starts with ~\Downloads\Tao-giong\, where ~ is your user folder.

To uninstall on Mac: close the app’s Terminal window. Open a new Terminal, paste the command below, press Enter.

rm -rf ~/TaoGiong ~/Desktop/"Tạo giọng.command" ~/.cache/huggingface

This line deletes the app, the desktop icon, and also the voice model that was downloaded. If you also use other AI tools that download models into the same folder, ~/.cache/huggingface, delete only ~/TaoGiong and the icon, and leave off the last part. Your voice sample and word-fix table are in ~/TaoGiong, so uninstalling deletes them. Saved files are in the Downloads folder, in the Tao-giong folder, and are not deleted.

To uninstall on Windows: close the app’s black window. Open PowerShell, paste the command below, press Enter.

Remove-Item -Recurse -Force "$HOME\TaoGiong", "$([Environment]::GetFolderPath('Desktop'))\T?o gi?ng.lnk", "$HOME\.cache\huggingface"

This line deletes the app, the desktop icon, and also the voice model that was downloaded. If you also use other AI tools that download models into the same folder, .cache\huggingface, delete only the TaoGiong folder and the icon, and leave off the last part. Your voice sample and word-fix table are in the TaoGiong folder, so uninstalling deletes them. Saved files are in the Downloads folder, in the Tao-giong folder, and are not deleted.

Inside: how I get the voice to come out right

The app above is a slimmed-down version of the setup I really use. It doesn’t have the regional accent detector.

Read more: item 1, picking a clean 8–14 second voice sample and cutting at the right pause

The machine needs a sample of your voice. I pick a segment 8 to 14 seconds long. I tried 4 samples and compared the results.

  • The one I actually use is 11.1 seconds long. It has 2 full sentences, fast speech, and a wide pitch range.
  • The 8.2-second one gave a flat voice, with the lowest pitch of the 4.
  • The 13.8-second one is where I speak fastest. The machine swallowed a whole sentence. I had to raise the number of generation steps to get all the words, but then it was twice as slow.

How you cut the sample matters too. I put the cut points in silences: 0.22 to 0.35 seconds of silence at the start, 0.19 to 0.54 seconds at the end. The start fades in over 0.05 seconds, the end fades out over 0.12 seconds. I filter out bass below 70 Hz.

The transcript of the sample has to be copied down word for word. Write numbers out as words. The machine uses this text together with the sample audio, so it has to be exact.

The sample doesn’t need to be recorded in a studio. One of mine was recorded outdoors with wind noise and it still worked as a sample. You just need to find the right pause.

At first I looked for pauses with a fixed threshold, and on a file with wind in the background it found no pauses at all. Then I switched to detecting based on the background noise level of that particular file, and it found them. The app above does exactly that.

Read more: item 2, why I generate sentence by sentence and save every sentence

I don’t give the machine the whole script to read in one go. It generates one sentence at a time, one file per sentence. Each file is named after the “text the machine reads”, meaning the final text fed into the machine after word fixes and after numbers are turned into words.

This has one big benefit. When I fix one sentence, or add one row to the word-fix table, only the sentences that changed have to be regenerated. The rest come from the saved versions.

In the app I tried it with 3 sentences: the first run took 65 seconds. After fixing one word and regenerating, it took only 23 seconds, because only that sentence was redone.

Read more: item 3, the machine listens back to each sentence and regenerates the bad ones

A cloned voice sometimes reads a word wrong. With thousands of sentences I can’t listen to them all, so I let the machine listen. The model that listens back is Whisper (the large-v3-turbo version), which also runs right on the machine. Here’s how it works:

  • Whisper transcribes the sentence that was just generated.
  • The machine compares that text with the text it was supposed to read, and gives a score from 0 to 1.
  • A score below 0.85 means generate another version. The app tries up to 3 versions and keeps the closest match.

The score ignores tone marks, because the listening model often gets them wrong (“cáp” becomes “cắp”, “giọng” becomes “rộng”) even though a human ear still hears them as correct. The score only catches missing words, extra words, or wrong words.

A real example. I added the word CapCut to the word-fix table and regenerated the sentence that contains it. Version 1 was heard as “Mở các cách”. The machine made version 2 by itself, and version 2 scored 1.00.

Read more: item 4, the voice slipping into a Southern accent, and the accent detector

There’s another error that word scoring can’t catch: my cloned voice occasionally slips into a Southern Vietnamese accent for a few words. The words are right, but the voice is no longer my voice.

I use a regional accent detector. It uses 2 accent-recognition models and checks each 4-second window, sliding 2 seconds each time. If both models say “Nam” (Southern) for a window, the sentence counts as slipped, and the machine generates another version.

A real example from testing: the sentence “Mở CapCut, kéo clip vào timeline.” (Open CapCut, drag the clip into the timeline.) came out with a Southern accent on tries 1, 2, and 3. Try 4 had an extra sound at the end, 0.28 seconds long. Try 5 passed. Short sentences like this one (2 to 3 seconds) get mislabeled as Southern more often than long ones. A 4-second sentence containing CapCut, on the other hand, passed on all 10 versions.

This detector adds 2 more models, so the free app above doesn’t have it. In the app, when a sentence sounds a little off to you, click “Tạo lại câu này” (Regenerate this sentence) a few times, then pick the version you like under “Chọn bản” (Choose version).

Read more: item 5, what the energetic post-processing does

I have an “energetic” post-processing step for the cloned voice, with 5 things in it:

  • Filter out bass below 70 Hz.
  • Speed up by 10%.
  • Light compression to even out the volume.
  • Boost 3 dB around 3 kHz so the words come through clearly.
  • Normalize loudness to -14 LUFS.

Measured result: speaking pace went from 206 to 226 words per minute, and the volume swings wider. With post-processing turned off, only the bass filter and loudness normalization (-16 LUFS) remain, with no speed-up.

You heard the second pair in the listening part at the top: the same sentence, from the same generation. The version without post-processing is 6.84 seconds long, and the energetic version is 6.36 seconds.

I also tried a few other things and dropped them:

  • Adding a “!” to the sentence. The machine doesn’t read it any differently.
  • Turning up how closely the model sticks to the text. The voice came out flatter.

One option I’m saving for later: use the model’s own speed setting of 1.1 instead of speeding up in post-processing, if you find the voice sounds squeezed.

Read more: item 6, the real speed I measured on Mac and Windows

I measured on an Apple silicon Mac while it was busy with other fairly heavy work. On average it took about 1.37 seconds of machine time for 1 second of audio, or about 82 seconds of machine time for 1 minute of speech. The number swings between 1.0 and 2.0.

In the app: a 6.4-second sentence takes 11.6 seconds. Sentences of 2 to 4 seconds take 12 to 17 seconds per version. Post-processing takes under 1 second per version.

On the Windows test machine the app runs on the CPU, so it is much slower. For the same 3 sentences in Step 4, the Mac took 65 seconds and Windows took 357 seconds, about 5 times slower.

These are measurements from my machine. Yours may differ.

Turn it into a skill so Claude calls it on its own when I edit video

When I edit video with Claude Code, I packaged the whole workflow as a skill, so I don’t have to retype it every time. This skill only uses my own voice. It is not for anyone else’s voice.

Read more: what the giong-clone skill is, how it runs, and one real run

A skill is an instruction file named SKILL.md, placed in Claude Code’s skills folder.

~/.claude/skills/giong-clone/SKILL.md

The top of the file has a description that says when to use the skill: when I say “read it in my voice”, “cloned voice”, “dub it”, or when a video-editing step needs a voice file. Thanks to that description line, when I’m editing a video that needs a voice, Claude calls the skill on its own and I don’t have to name it.

The skill does 3 things:

  • Write the script to a file, one sentence per line.
  • Run one command.
  • Read the report file.

The output contains each sentence in the cau/ folder (“cau” means sentence; files are named like NNN_<mã>.wav, where “mã” is a short ID), the merged file noi.wav (0.35-second pause between sentences), so.json, which logs every attempt, and bao-cao.md. Exit code 0 means every sentence passed. Exit code 2 means some sentences “need a listen”.

The skill comes with the word-fix table, the listen-back check, the regional accent detector, and one rule: only run one heavy job at a time on the machine. There’s one more rule I really need: a sentence with a decimal number is always flagged “needs a listen by ear”, because the listen-back check can’t catch errors there (see the table in the next section).

I did a real run with 3 sentences. The exit code was 2, because the sentence “Lần đầu, máy tải bộ nhận giọng nặng chừng 1,6 GB.” (The first time, the machine downloads a speech recognition model of about 1.6 GB.) contains a decimal number, and the checker heard “…chừng 1, 6 ghi”. The whole run took 133 seconds for 9 seconds of audio. That includes 4 regenerations of sentence 1 and the checking.

Claude Code receives the request “tạo giọng cho loi.txt” (create the voice for loi.txt), calls the giong-clone skill by itself, runs the machine, then reads the report.

Word-fix table: words the machine often reads wrong

How to spot new words: after each generation, read the “máy nghe ra” (the machine heard) line on each sentence. If a word looks strange, listen to that sentence again. If it’s wrong, add a row to the table.

Read more: the words I’ve run into, how the machine reads them, and how I fix them

These are the words I’ve run into, which I found and fixed by listening myself.

Written textMachine reads it asFix / how to handle it
timelineReads strangely, not what I meantFix it to “tham lai”
CapCut“cáp cát”Fix it to “cáp cắt”
GB, ghi-ga, gigabyteNot what I meantFix it to “ghi”, for example “một phẩy sáu ghi” (1.6 GB)
video-dau-tienRead as unaccented textRewrite it with accents: “video đầu tiên”
clip-thoRead as unaccented textRewrite it with accents: “clip thô”
Decimal numbers like 1,6Often swallows the word “phẩy”; the listen-back check still writes “1,6” by itself, so it can’t catch the errorYou have to listen by ear. My skill always flags these sentences as “needs a listen by ear”

When a folder name is written without accents, the machine reads it as unaccented text. The fix is to rewrite it with accents.

Only the sentences that contain that word have to be regenerated.

When a sentence doesn’t sound right, the sample, the word-fix table, and regenerating the sentence are the three things you can adjust.

The most useful thing I found

The most useful thing I found isn’t the cloned voice. It’s splitting the work into single sentences, saving every sentence, and letting the machine listen back by itself. Because of that, fixing one word takes only about 23 seconds instead of redoing the whole script.

A cloned voice still has flaws: it sometimes slips into a Southern accent, sometimes swallows words, and decimal numbers have to be checked by ear. I still listen back to these spots. You should too.