AI voice cloning for creators & builders 🎙️ Clone a voice from 5s of audio · 10 languages · multi-character voiceovers · API for video automation pipeline.
We open-sourced an MCP server that dubs YouTube videos from Claude Code, Cursor or Codex.
Paste a URL, say "dub this into English, keep each speaker's voice", and you get a timed dub track, synced SRT and a YouTube upload folder.
MIT. How it works:
@ekcheungAI The expr is time-based, so it holds at any source rate; -g is counted in frames, so -g 60 spans 2 s at 30 fps but only 1 s at 60. On mixed-rate chunks I'd drop -g and let -force_key_frames expr:gte(t,n_forced*2) place the keyframes.
@AiwithShoaib Generated dialogue often lands at different loudness per speaker, so two voices rarely sit at the same level. Run one loudnorm pass to -16 LUFS (ffmpeg -af loudnorm=I=-16:TP=-1.5:LRA=11) before the mix and the jump between lines disappears.
@Tec_Nexven Worth checking whether the TTS step streams or renders the whole file. A full render adds the clip's entire generation time before any sound plays; streamed output starts playback on the first chunk. That's most of the 'laggy agent' feel.
@mikenevermiss@codyschneider ~120 words of narration lands near 48s at a normal ~2.5 words/sec read, so a 35s cut needs the script written to the runtime, not the other way round. Generate the VO first, then set shot count from its real duration.
@Bharambe2Kiran Mispronounced drug names are usually a lexicon gap, not a model gap. Many TTS APIs accept SSML <phoneme> or alias substitution, so mapping hard names before synthesis fixes them without retraining. Cheaper than a fine-tune.
Fixed 5s slot, but your TTS line is only 3.2s?
ffmpeg -i vo.wav -af "apad=whole_dur=5" out.wav
Verified on a test tone: 3.200s -> 5.000s, 1.8s of silence appended at the end.
Great for locking VO to scene length.
#ffmpeg
@ArdenAI07 Worth splitting a list this long into tools that generate and tools that ship. AI-built hero sections usually load fonts before text, so Lighthouse LCP lands late; self-hosting the font files and adding font-display: swap is the quickest fix.
@Ayzacoder CapCut and Descript both export the same SRT, so the step worth adding is levelling the voice first: ffmpeg -i in.mp4 -vn -af loudnorm=I=-16:TP=-1.5:LRA=11 vo.wav. Spoken audio near -16 LUFS keeps the voice from jumping over the music bed.
@MeenakshiYACS@WizstarAI Two replacements holding one reaction sequence is the hard part - the larger face tends to win when one character sits closer to camera. Converting phone clips to constant frame rate before upload keeps timing steady: ffmpeg -i in.mp4 -vf fps=30 -c:v libx264 -an ref.mp4
Mono TTS file dropping into a stereo timeline? Duplicate it to both channels.
ffmpeg -i in.wav -af "pan=stereo|c0=c0|c1=c0" out.wav
Ran it on a 3s tone: 1ch -> 2ch, both channels at -21.07 dB RMS.
@pablogimenezz Per-language duration matters as much as accent for e-learning: a Spanish read runs longer than English, so leave subtitle timing headroom instead of locking cues to the source. Keep one sample rate across all languages to avoid re-shifting.
Sber just open-sourced Kandinsky Avatar 1.0: give it a portrait + an audio clip and it makes a talking video up to 60 s at 24 fps, with lip-sync, head turns and gestures.
Lite runs on a consumer GPU, and commercial use is allowed. What would you build with it?
@innopro_ Copying the format is the easy half; retention usually dies on audio. One flat TTS take at identical pacing reads as automated fast. Vary pause length line to line, keep light room tone under narration, and export near -14 LUFS since YouTube re-levels.
@CurieuxExplorer A cut list as code is the right call. concat needs identical codec, resolution and frame rate across segments or lengths drift, so render each segment with -r 24 -fps_mode cfr and ffprobe every render before the join, not after.
@CaliraVal One voice model across 100+ languages is the useful part, but the speaker still drifts between passes. Generate one language per pass, keep sample rate identical, then level to -16 LUFS before editing so no clip is re-leveled differently in the mix.
@juliaevee Emotion tags matter more than voice count, but they change line duration, so leave headroom in the timeline instead of fitting a fixed line. Generate tag variants at one speed setting and trim with ffmpeg silencedetect, not a full re-render.
Shift a voiceover 0.5s later without re-editing:
ffmpeg -i voice.wav -af "adelay=500|500" out.wav
3.000s -> 3.500s, first 0.5s is silence.
Value is in ms, one per channel (L|R). Stereo file: give both.
@Magne_Ai ASR, a 1.5B model and TTS all fitting on a 10 TOPS NPU is the right budget split. Keep each stage quantised on its own rather than one shared runtime, and start TTS per sentence instead of waiting on the full transcript. That is what cuts perceived lag.
@MarcTheMesenger The giveaway on faceless channels is usually audio, not footage: one flat TTS render, no room tone, identical pacing. Layer light room tone under narration, cut lines into shorter takes with real breaths, and keep script drafts plus the edit timeline.
@fyreinteractive Structure is what carries it, but retention also breaks on audio. YouTube normalizes to roughly -14 LUFS, so a voiceover mastered near -16 with 20 ms fades at each cut survives the pass untouched. Volume jumps between sections read as low effort fast.