[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C20RY0MH25GVKTX5X4JWV0":3,"skill-same:01M7C20RY0MH25GVKTX5X4JWV0":43},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C20RY0MH25GVKTX5X4JWV0","text-to-speech",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Ftext-to-speech\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Dubbing and TTS Audio Mastering With Verifier-Aligned Outputs\n\n## Purpose\nProduce delivery-ready dubbed audio (often stitched from per-segment TTS) and optionally a muxed media file plus a machine-checked report, while staying robust to environment differences (missing TTS engines, differing ffmpeg capabilities) and verifying timing, loudness, and output artifacts at the exact task-required paths.\n\n## When to Use\nUse when a task requires generating TTS for multiple timed segments (SRT\u002FCSV\u002FJSON timing windows), stitching them into a single track, mastering (click prevention, loudness normalization), and delivering verifier-checked artifacts (e.g., final audio\u002Fvideo and a JSON report). Do not use for one-off single-file narration without timing windows or without any required deliverables.\n\n## Procedure\n- 1) Contract and input discovery (no writes yet)\n- Identify from the task prompt\u002Ffiles: (a) segment definition source (SRT\u002FCSV\u002FJSON), (b) required output artifacts and their exact paths, (c) required audio specs (sample rate, channels), (d) timing tolerances, (e) loudness target and measurement method, (f) any report schema requirement.\n- If any of (a)-(f) are ambiguous, stop and request clarification or infer only from locally present task files (do not guess hidden paths\u002Fspecs).\n- 2) Environment and tool discovery checkpoint (execution anchor)\n- Discover available tools before committing to a pipeline:\n- Find ffmpeg and ffprobe (or equivalents) and record their versions and executable paths.\n- Enumerate available TTS backends locally (examples: offline CLI engines, local libraries, or an existing project script). Select the best available backend using a deterministic order: prefer local\u002Foffline first if network is uncertain; otherwise choose the highest quality available.\n- Check loudness measurement support: prefer an ITU-R BS.1770 meter that exists in the current ffmpeg build (e.g., ebur128). If loudnorm options differ, adapt by using a measurement mode that is actually supported, or fall back to ebur128-based measurement plus gain adjustment.\n- Evidence to capture: command outputs showing tool presence\u002Fcapabilities and a recorded chosen backend plus fallback list.\n- 3) Parse and validate segment windows (schema gate)\n- Load segments and validate minimally:\n- Each segment has a start time, end time, and text (or a resolvable reference).\n- Assert start \u003C end, monotonic ordering (or define tie-breaking), and no negative times.\n- Record required per-segment metadata you will later report (segment id\u002Findex, window start\u002Fend).\n- If the segment file is malformed or missing required fields, stop and repair the input file or request clarification (do not generate audio from partial parses).\n- 4) Per-segment synthesis to a consistent intermediate format\n- For each segment:\n- Synthesize speech to an intermediate audio file using the selected TTS backend.\n- Immediately probe the generated file for readability, duration, sample rate, and channels.\n- Convert to a consistent working format for stitching (choose based on discovered environment, but ensure you can later meet the final required output specs).\n- Fail fast if any segment audio is empty\u002Funreadable; switch to the next fallback TTS backend and re-render only the failing segments.\n- 5) Placement, duration control, and click-safe boundaries (timing checkpoint)\n- For each segment, align audio to its target window:\n- If audio is shorter than the window, pad with silence to match window duration.\n- If longer, apply gentle duration control within a strict limit (set a small max rate change; if exceeding, escalate: re-synthesize with different speaking rate if supported, or accept truncation only if the task explicitly allows it).\n- Apply short fade-in\u002Fout at segment boundaries after padding\u002Ftrimming to prevent clicks.\n- Stitch segments onto a single timeline track according to window start times.\n- Compute placed_start_sec and placed_end_sec from the actual stitched timeline (not from intended durations) and compute drift vs the window. If any segment violates task timing tolerances, iterate: adjust duration strategy or re-synthesize.\n- 6) Mastering and final media build (then verify) (execution anchor)\n- Only after timing is final:\n- Apply cleanup filters only if they are supported in the current environment and do not change timing.\n- Perform loudness measurement using the discovered available method, then apply normalization to the task target (if specified). If any processing changes duration, repeat timing validation.\n- If producing a muxed video\u002Fmedia file, mux audio with the original media using a method supported by the environment, then probe the final media:\n- Verify final audio stream sample rate and channels match the task spec (e.g., 48000 Hz, mono).\n- Re-check timing drift using actual rendered durations (accounting for any encoder\u002Fmux behavior) and ensure it meets tolerances.\n- 7) Output grounding and report validation (execution anchor)\n- Write required artifacts to the exact task-specified output paths (do not silently redirect).\n- For each required output path:\n- Check file exists, is readable, and is non-empty (or otherwise meets the task-declared expectation).\n- If a write fails, diagnose mounts\u002Fpermissions and supported write locations; rerun only the minimal preceding step needed to regenerate.\n- If a JSON report is required:\n- Reload it and validate against the task-declared schema: required keys present, types correct, arrays\u002Fobjects shaped as expected, and numeric fields are finite.\n- Ensure report timing and loudness values are derived from measured artifacts (probes\u002Fmeasurements), not from intended settings.\n\n## Constraints \u002F Pitfalls\n- Do not assume specific tools (e.g., a particular cloud TTS package) or specific ffmpeg options exist; always discover tool availability and supported capabilities before choosing commands, and define a deterministic fallback order.\n- Do not claim success until you have (a) probed the final produced artifact(s) for stream properties and (b) verified existence\u002Freadability at the exact task-required output paths; avoid silent path changes, and avoid timing\u002Floudness assertions based only on intended settings rather than measured results.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Ftext-to-speech",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill text-to-speech",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill text-to-speech",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill text-to-speech","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Ftext-to-speech\u002FSKILL.md",true,[],[44,51,58,65,70,75],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":66,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":76,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]