# U-NO AI Dubbing Studio — Official Antigravity Plugin Installer v1.2.0 (Windows PowerShell) param([string]$ApiKey = "") $ErrorActionPreference = "Stop" $PluginDir = Join-Path $HOME ".gemini\config\plugins\uno-ai-dubbing" $ScriptDir = Join-Path $PluginDir "scripts" $SkillDir = Join-Path $PluginDir "skills\uno-ai-dubbing" $RuleDir = Join-Path $PluginDir "rules" New-Item -ItemType Directory -Force -Path $ScriptDir, $SkillDir, $RuleDir | Out-Null Invoke-WebRequest -UseBasicParsing "https://unoaidubbing.com/download/uno-ai-mcp-bridge.mjs" -OutFile (Join-Path $ScriptDir "uno-ai-mcp-bridge.mjs") Set-Content -Encoding UTF8 (Join-Path $PluginDir "plugin.json") @' { "name": "uno-ai-dubbing", "displayName": "U-NO AI Dubbing Studio", "version": "1.2.0", "description": "Official U-NO AI Dubbing & 94-Language Video Narrator MCP plugin (unoaidubbing.com). One-shot local MP4/MOV dubbing up to 2 GB, multi-character voice cloning, pre-clone voice casting, per-line radio/phone/reverb FX, 3s viral hooks, and custom AI voice design.", "homepage": "https://unoaidubbing.com/developers", "suggestedPrompts": [ "เช็กยอดเครดิตและรายการเสียงส่วนตัวในบัญชี U-NO AI ของฉัน", "ช่วยพากย์เสียงบรรยายคลิปโฆษณาจากไฟล์วิดีโอนี้เป็นภาษาอังกฤษ พร้อมฮุก 3 วิแรก แล้วเซฟไฟล์ลงเครื่อง", "พากย์เสียงสมจริงโคลนเสียงตัวละครให้คลิปนี้เป็นภาษาไทย โหมดภาพยนตร์", "ถอดบทคลิปนี้ก่อน แล้วตั้งเสียงพระเอกจากคลังเสียงส่วนตัว ใส่เอฟเฟกต์วิทยุสื่อสารให้ประโยคที่คุยผ่านวอ แล้วเริ่มพากย์จริง" ] } '@ $BridgePathJson = ((Join-Path $ScriptDir "uno-ai-mcp-bridge.mjs") -replace '\\', '\\') Set-Content -Encoding UTF8 (Join-Path $PluginDir "mcp_config.json") "{`"mcpServers`":{`"uno-ai`":{`"command`":`"node`",`"args`":[`"$BridgePathJson`"]}}}" Set-Content -Encoding UTF8 (Join-Path $SkillDir "SKILL.md") @' --- name: uno-ai-dubbing description: Dub videos, clone character voices, narrate ad/social clips in 94 languages with 3-second opening hooks, assign custom/ElevenLabs character voices, add per-line radio/phone/reverb vocal FX and emotions, and design custom AI voices using U-NO AI Dubbing Studio (unoaidubbing.com). --- # U-NO AI Dubbing Studio — AI Agent Playbook (v1.2) Official MCP integration for **https://unoaidubbing.com** (`uno-ai` local stdio bridge or `https://unoaidubbing.com/mcp` Streamable HTTP). ## 1. Authentication & Safety Rules - Check account & credit status anytime with `uno_wallet_and_account` (0 credits). - If `UNO_API_KEY_MISSING` or `401` occurs, ask the user to sign in at **https://unoaidubbing.com/developers**, click **"+ สร้าง API Key ใหม่"**, and give you their `uno_sk_...` key; then call `uno_set_api_key` to store it in `~/.uno-ai/credentials.json`. - **Never** echo or commit full `uno_sk_...` keys into workspace files, logs, or public outputs. - In `uno_narrate_video`, always leave `burn_subtitles: false` unless the user explicitly asks to burn subtitles onto the video. ## 2. Choosing the Right Engine 1. **`uno_narrate_video` (Ad / Social / Documentary / Recap Voiceover — 94 Languages)**: - Best for product ads, TikTok/Reels/Shorts, recaps, documentaries, news, Muay Thai/sports (`sports_ring`), and trailers (`action_trailer`). - Automatically writes a 3-second opening hook and syncs narration to visual scenes (`input_mode="video"`), a topic (`"topic"`), or reference URL/notes (`"content"`). - Supports `voice_id: "auto"`, `"auto_male"`, `"auto_female"`, standard catalog IDs, or saved private voices (`"private:<32-hex>"` from `uno_list_catalog_and_voices`). 2. **`uno_dub_realistic_video` (Multi-Character Lip-Sync & Voice Cloning — U-NO AI Turbo)**: - Best for movies (`cinema`), dramas (`series`), `anime`, `cartoon`, interviews, and multi-speaker clips where original speaker voices/emotions are cloned and original background music/SFX are preserved. - Set `review_script_first: false` (default) for automatic 1-step full dubbing, OR `review_script_first: true` when the user wants to inspect/edit the translated script, assign custom/prebuilt voices to specific characters, merge duplicate speakers, or add per-line vocal effects (`walkie_radio`, `phone_call`, `inner_thought`, `reverb_hall`) before rendering! ## 3. Minimal-Turn Waiting & Auto-Download (IMPORTANT!) - **When using the Local Bridge (`uno-ai` plugin with `video_path` or `save_to_dir`)**: - Pass `wait_for_completion: true` (and optional `save_to_dir: "C:/path/to/output"`) directly inside `uno_narrate_video`, `uno_dub_realistic_video`, `uno_confirm_or_edit_realistic_script`, `uno_retake_or_remix_narration`, or `uno_localize_or_polish_narration`! - The local bridge waits automatically until the job reaches `succeeded` or `review_ready` and downloads `.mp4` / `.mp3` / `.srt` to disk in **1 single tool call** — no manual polling loop needed! - **When polling manually or via Remote HTTP (`/mcp`)**: - Always pass `wait_seconds: 20` to `uno_get_job_status_and_downloads` so the server long-polls up to 20s per call instead of rapid-fire polling. ## 4. Advanced Character Directing, Radio/Phone FX & Retakes 1. Call `uno_list_catalog_and_voices` if you need available `private_voices`, the 16 `elevenlabs_character_voices`, `vocal_fx_presets`, or `emotions`. 2. Start analysis with `uno_dub_realistic_video({ video_path, target_language: "th", review_script_first: true, wait_for_completion: true })`. 3. Inspect `characters` and `dialogue` from the returned status (or `uno_get_job_status_and_downloads`). 4. Call `uno_confirm_or_edit_realistic_script` with any combination of: - `character_edits`: assign `voice_mode: "source_clone"`, `"elevenlabs_prebuilt"` (`elevenlabs_voice_id`), or `"private"` (`private_voice_preset_id`), plus `name` or `acting_brief`. - `merge_characters`: `[{ from_character_id, into_character_id }]` if one speaker was split into two characters. - `edits`: per-line `{ dialogue_id (or index), translated_text, character_id, emotion, intensity (0..1), vocal_fx ("walkie_radio" | "phone_call" | "reverb_hall" | "inner_thought" | "cave_echo" | "megaphone" | "ghost_whisper" | "cyber_robot" | "none"), gain_db (-18..+12), acting_note }`. - `master_voice_gain_db` (`-12..+12`) and `bg_gain_db` (`-18..+12`) to balance overall dialogue vs scene ambience. - On an already `succeeded` job, calling `uno_confirm_or_edit_realistic_script` (or `uno_retake_or_remix_narration` for Narrator) runs a fast **cached retake/remix** (only 3 credits standard / 1.5 credits VIP per re-synthesized line; pure volume/FX remix reuses cached TTS!). '@ Set-Content -Encoding UTF8 (Join-Path $RuleDir "AGENTS.md") @' # U-NO AI Dubbing Studio Guidelines - Never echo or print full uno_sk_... API keys in public files or git commits; store them via uno_set_api_key in ~/.uno-ai/credentials.json. - In uno_narrate_video, leave burn_subtitles as false unless the user explicitly asks to burn subtitles onto the video. '@ if ($ApiKey -match "^uno_sk_[a-f0-9]{48}$") { node (Join-Path $ScriptDir "uno-ai-mcp-bridge.mjs") login $ApiKey } Write-Host "Installed U-NO AI Dubbing Plugin v1.2.0 at $PluginDir" -ForegroundColor Cyan