Command Palette

Search for a command to run...

Назад к скиллам
скилл № 21842

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от 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.txt in 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). Default kokoro. elevenlabs only 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). Default af_heart. Names starting af_/am_ speak American English, bf_/bm_ British English. ${CLAUDE_PLUGIN_ROOT}/scripts/kokoro-assets.json lists every voice the plugin pins.
  • Speed (--speed, kokoro). Default 1.0, from 0.5 to 2.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.json path. 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. Where python3 is not on PATH, run it with python. Keep --model-dir exactly as shown, in single quotes; the script handles an unset model_dir option.
  • 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-pattern the caller hands over (a team's scan.extra_patterns): the scan refuses those too, on top of its floor.
  • Pass --allow-paid-voice only after the user agreed to the paid call in this session, or when the caller's allow_unattended_paid_voice setting is true. Never add it to get past exit 3.
  • **Exi
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить Narrate с