Narrate
Text-to-speech (TTS): turn a narration script into narration.wav audio and words.json word timings. Local kokoro is default; optional elevenlabs sends text to…
от melodic-software★ 34 звезды на GitHub
Установить Narrate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Narrate
Turn a script into speech, and write a word timing file beside it. kokoro runs on this machine and is the default. elevenlabs is a separate, optional backend that sends the text to a third party; use it only when the user asks for it by name.
Inputs
- Script. A path to a UTF-8 text file, or text the user gave. For given text, write it to
script.txtin the output folder first, so the run is repeatable. Write the script the way it should be spoken: spell out abbreviations you want expanded and keep one idea per sentence. - Backend (
--backend). Defaultkokoro.elevenlabsonly when the user names it; it follows its own section below. - Output folder (
--out). Default: the script file's folder. The run writes two files there and replaces earlier ones with the same names. - Voice (
--voice, kokoro). Defaultaf_heart. Names startingaf_/am_speak American English,bf_/bm_British English.${CLAUDE_PLUGIN_ROOT}/scripts/kokoro-assets.jsonlists every voice the plugin pins. - Speed (
--speed, kokoro). Default1.0, from0.5to2.0.
Run (kokoro)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py" run --data-dir "${CLAUDE_PLUGIN_DATA}" -- \
"${CLAUDE_PLUGIN_ROOT}/scripts/narrate.py" --data-dir "${CLAUDE_PLUGIN_DATA}" \
--model-dir '${user_config.model_dir}' \
--script <script file> --out <output folder> [--voice <name>] [--speed <x>]
Where python3 is not on PATH, run the same command with python; the SessionStart hook accepts either.
Keep the --model-dir argument exactly as shown, in single quotes: it carries the plugin's
model_dir option, and the script handles an unset one (reference/plugin-options.md).
narrate.py owns the behavior: how words are split, how timings are measured, and the
words.json fields. Read its docstring when you need the details.
- Exit 0: it prints the audio path with its length and word count, then the
words.jsonpath. Report both paths and the length. - Exit 2: a prerequisite is missing. The message names it: espeak-ng, the model files, or the
Python packages. Report the message as written and stop. Do not install anything.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check.py" --data-dir "${CLAUDE_PLUGIN_DATA}" --model-dir '${user_config.model_dir}' --openai-model '${user_config.openai_model}'lists every gap with its remedy, and installs nothing. Wherepython3is not on PATH, run it withpython. Keep--model-direxactly as shown, in single quotes; the script handles an unsetmodel_diroption. - Exit 1: report the error. An unknown voice or a speed out of range is the caller's to fix.
Run a backend chain
A producer that must not stop for want of one voice (explainer-video, reviewer media) passes
--backend-chain, a comma-separated order such as edge-tts,kokoro. One backend voices the whole
script; on failure the whole script goes to the next one, so voices never mix. edge-tts sends one
request per paragraph, so separate paragraphs with a blank line; if one paragraph fails, the whole
script still goes to the next backend.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/pydeps.py" run --data-dir "${CLAUDE_PLUGIN_DATA}" -- \
"${CLAUDE_PLUGIN_ROOT}/scripts/narrate.py" --data-dir "${CLAUDE_PLUGIN_DATA}" \
--model-dir '${user_config.model_dir}' \
--script <script file> --out <output folder> --backend-chain <name,...> \
--openai-model '${user_config.openai_model}' --openai-voice '${user_config.openai_voice}' \
--openai-instructions-file <instructions file> \
[--voice <backend>:<voice>]... [--command '<template>'] [--timeout <s>] [--allow-paid-voice] \
[--scan-pattern <regex>]...
Keep --openai-model and --openai-voice exactly as shown, in single quotes: they carry the
plugin's openai_model and openai_voice options, and the script handles unset ones
(reference/plugin-options.md). If either value contains a
single quote, stop and report the option as invalid. The openai_instructions option is free text,
so it never goes on the command line: write the text between the markers below to the instructions
file with the Write tool, unchanged, and pass that file. A --voice openai:<name> the caller passes
wins over openai_voice.
<instructions>${user_config.openai_instructions}</instructions>
The backends, their default voices, the retries, the timeout and the scan are in narrate.py's
docstring. Besides narration.wav and words.json the run writes voice.json: the backend,
voice and model that spoke, and every attempt.
- Pass each
--scan-patternthe caller hands over (a team'sscan.extra_patterns): the scan refuses those too, on top of its floor. - Pass
--allow-paid-voiceonly after the user agreed to the paid call in this session, or when the caller'sallow_unattended_paid_voicesetting is true. Never add it to get past exit 3. - **Exi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Narrate?
Text-to-speech (TTS): turn a narration script into narration.wav audio and words.json word timings. Local kokoro is default; optional elevenlabs sends text to ElevenLabs API only when named, after quota check and user go-ahead. Use when: 'narrate this script', 'read this aloud', 'make a voiceover'. Not for transcribing existing audio.
Как установить скилл Narrate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Narrate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…