ugc-talking-head-video
यह क्या करती है
यह स्किल छोटे UGC-शैली के वीडियो बनाती है, जिनमें एक किरदार कैमरे के सामने स्क्रिप्ट बोलता है। यह उन मार्केटर्स और क्रिएटर्स के लिए है जिन्हें सोशल या विज्ञापन के लिए टॉकिंग-हेड क्लिप चाहिए।
कब इस्तेमाल करें
- ✓जब आप चाहते हों कि एक लॉक्ड किरदार वर्टिकल वीडियो में कैमरे के सामने स्क्रिप्ट बोले।
- ✓जब आपको टॉकिंग-हेड क्लिप में समय वाले शब्दों के साथ कैप्शन जोड़ने हों।
- ✓जब आप पहले से चुनी किरदार इमेज से UGC-शैली की क्लिप बनवाना चाहते हों।
Skill का लिंक
https://github.com/superdesigndev/treg/blob/main/.agents/skills/ugc-talking-head-video/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप इस किरदार इमेज और मेरी 15 सेकंड की स्क्रिप्ट से कैप्शन वाला वर्टिकल टॉकिंग-हेड वीडियो बना सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आवाज़ का संदर्भ चुनता है, स्क्रिप्ट को क्लिप की लंबाई के अनुसार ढालता है, वीडियो प्रॉम्प्ट लिखता है, और treg से क्लिप बनवाता है। फिर वह emoji हेडर और ffmpeg पर बने कोड स्क्रिप्ट से वाक्यांश कैप्शन जोड़ता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
UGC talking-head video
Input: one character image (the frame you and the user picked from portrait-clone) and a script.
Output: take_N.mp4 (raw) and take_N_captioned.mp4, plus the request JSON that made it.
Model: Seedance 2.5 through treg, reAPI route by default, PiAPI as the alternative (scripts/seedance_treg.py). No vendor key on this machine. Captions: ffmpeg + PIL (scripts/caption_burn.py).
Both scripts are self-contained; read their docstrings before changing them.
Prerequisites
- treg. Every generation call, reference upload and status poll goes through
treg call; the vendor key is injected server-side and the charge lands on the team's prepaid treg balance. Iftreg --versionfails, install and sign in first:
Thencurl -fsSL https://treg.to/install.sh | sh treg logintreg balanceto confirm there is credit for the run (a take costs a few dollars, § Run). - A character image. If the user has no locked character yet, generate one first with the
portrait-cloneskill (sibling folder.agents/skills/portrait-clone/, or the published copy at https://raw.githubusercontent.com/agentara/skills/refs/heads/main/skills/aigc/portrait-clone/SKILL.md). Read it, follow it, then come back here with the chosen frame. ffmpeg, Python 3 with PIL, andOPENAI_API_KEYin the environment for Whisper word timings (captions only).
Flow
- Lock the script and duration (§ Script and duration). Show the user the word count and the proposed seconds before anything else.
- Get a voice-reference clip (§ Voice reference). Never generate without one.
- Write the prompt from the template (§ Prompt). Paste the whole thing to the user before the first run.
- Run
seedance_treg.py. Quote the estimated cost in the same message you announce the run. - Verify with the checks in § Verify, send the raw clip, and only then caption.
- Caption with
caption_burn.pyusing hand-written phrases.
Script and duration
The model fills every second it is given. Too long and the delivery goes flat because there is nowhere to breathe; too short and words get dropped. Size the duration from the script, not the other way round.
| Words | Duration | Feel |
|---|---|---|
| 45-55 | 12-14 s | punchy hook |
| 60-70 | 16-17 s | standard UGC talking head |
| 70-80 | 18-19 s | dense; 18 s reads noticeably quicker than 19 s |
| 90+ | split into two clips | one Seedance take over 20 s of continuous speech drifts |
Rule of thumb: words / 4 = seconds, then subtract 1 s. Our 74-word script felt slow at 19 s and right at 18 s. Confirm the script verbatim with the user first, including slang ("gonna", "brain cell"): the captions later follow the transcript, and Whisper normalises "gonna" to "going to", so warn them the on-screen text may differ from the script spelling.
Join sentences with commas, not periods, if you do not want a hold at the sentence turn. The model treats a period as permission to stop for half a second.
Voice reference
Cadence comes from the audio reference, not from the prompt. We proved this: the same script and near-identical prompts gave a flat delivery without a reference and a natural one with it, while a prompt full of beat-by-beat pacing directions moved the pace by a few percent at most and introduced whispering and long dead pauses the user hated.
- Ask the user for a video whose delivery they like. If they have none, find candidates through
treg and let them choose. Use the routed endpoints and say what you want, not a vendor:
catalog_search("instagram reels search by keyword")->treg.instagram.search.reels(measured 86% success), orcatalog_search("tiktok search videos")/treg.douyin.search.videos. Search the niche ("money tips talking head", "creator secret"), pick 3-5 results with a play URL, send the links, and ask which voice and pace they want. Do not pick for them. - Extract a 2-15 s slice, mono mp3. PiAPI rejects longer references (reAPI allows up to 30 s). Choose the most
animated stretch, not the opening line: run Whisper with segment timestamps, read the
segments, pick a run with a rise and fall in it.
ffmpeg -ss <start> -to <end> -i src.mp4 -vn -ac 1 -ar 44100 -b:a 128k voice_ref.mp3 - Keep the clip and its source timestamps next to the outputs; the user will ask where it came from.
Prompt
Under 4000 characters. Five parts, in this order. Fill the braces; keep the rest verbatim, it
अक्सर पूछे जाने वाले सवाल
क्या पहले किरदार इमेज चाहिए?
हाँ। स्किल एक लॉक्ड किरदार इमेज की अपेक्षा करती है, जिसे portrait-clone स्किल बना सकती है।
मुझे क्या इंस्टॉल करना होगा?
स्किल को treg, ffmpeg, PIL वाला Python, और शब्दों के समय के लिए OpenAI key चाहिए।
एक टेक की लागत कितनी है?
स्किल कहती है कि एक टेक की लागत कुछ डॉलर है, और एजेंट हर भुगतान वाले कदम से पहले पुष्टि करे।
जानकारी
लेखक का मूल विवरण
Turn a locked character image (from portrait-clone) into a UGC-style 9:16 talking-head video: pick a voice-reference clip, size the script to the duration, write the Seedance 2.5 prompt, generate through treg (reAPI or PiAPI), then burn a static emoji header and phrase captions with code. Use after portrait-clone when the user wants the character to speak a script on camera.
repo: superdesigndev/treg
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13701
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
code-quality
7.0kयह आपके एजेंट को साफ़ कोड के नियम सिखाती है: टूल से नियम लागू करना, टिप्पणियाँ कम रखना, टेस्ट को विफल होने योग्य बनाना, और दस्तावेज़ छोटे रखना।
google-ads
7.0kयह आपके एजेंट को Google Ads रिपोर्ट और बदलाव सुरक्षित रूप से करने में मदद करती है, API संस्करण और बजट की आम गलतियों से बचते हुए जो पैसा बर्बाद करती हैं।
google-analytics
7.0kयह आपके एजेंट को Google Analytics 4 से सही ट्रैफ़िक, कन्वर्ज़न और राजस्व के आँकड़े देने में मदद करती है, अधूरे दिनों और झूठे शून्य से बचते हुए।
google-search-console
7.0kयह आपके एजेंट को Search Console से ऑर्गेनिक सर्च क्लिक, इंप्रेशन और रैंकिंग की रिपोर्ट करने में मदद करती है, हाल के अधूरे दिनों को गिरावट न मानते हुए।
मिलती-जुलती skills
taste-application
280kयह आपके एजेंट को किसी खास style में videos बनाने में मदद करता है। यह किसी reference video की editing rhythm कॉपी कर सकता है, नए scenes बना सकता है, colors ठीक कर सकता है, और सब कुछ दूसरे footage के साथ जोड़कर edit कर सकता है।
taste-distillation
280kयह आपके एजेंट को videos का विश्लेषण करके style pack बनाने देता है। इसमें colors, cutting rhythm और visual elements शामिल होते हैं, जिन्हें नई videos में उसी look के साथ दोबारा इस्तेमाल किया जा सकता है।
ui-demo
280kयह आपके एजेंट से साफ-सुथरे UI demo videos रिकॉर्ड करवाता है। tutorials बनाने या यह दिखाने के लिए उपयोगी है कि web app कैसे काम करता है।