tts-script

tts-script is a command for Claude Code from HariFatherKR/claude-qwen-tts. It costs 14 tokens per session (528 once invoked), scanned A, original, MIT.

A command that turns a Markdown or plain-text script into a WAV audio narration. It can add pauses between paragraphs and change playback speed.

In plain words
What is it for?
Use it to create audio from scripts stored in .md or .txt files, choose an output filename, adjust pauses, and set the narration speed.
Why use it?
It removes the need to record or convert a script manually. It also checks that the required text-to-speech setup is available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-qwen-tts plugin — 1 skill, 5 commands shipped together

Good fit Use it to create audio from scripts stored in .md or .txt files, choose an output filename, adjust pauses, and set the narration speed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/harifatherkr/claude-qwen-tts/tts-script
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HariFatherKR/claude-qwen-tts

Made for: Claude Code.

Or install claude-qwen-tts, the plugin that ships this one along with the rest of its 1 skill, 5 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tts-script

README.md
[![agentmods](https://agentmods.dev/badge/commands/harifatherkr/claude-qwen-tts/tts-script/github.svg)](https://agentmods.dev/commands/harifatherkr/claude-qwen-tts/tts-script)
Your own site
<a href="https://agentmods.dev/commands/harifatherkr/claude-qwen-tts/tts-script"><img src="https://agentmods.dev/badge/commands/harifatherkr/claude-qwen-tts/tts-script/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tts-script

Your own site · 80×15
<a href="https://agentmods.dev/commands/harifatherkr/claude-qwen-tts/tts-script"><img src="https://agentmods.dev/badge/commands/harifatherkr/claude-qwen-tts/tts-script.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00528
Opus 5 $0.00007 $0.00264
Sonnet 5 $0.00003 $0.00106
Haiku 4.5 $0.00001 $0.00053

Measured 9d ago against content hash 782eb39528a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tts-script scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-qwen-tts/commands/tts-script.md · 71 lines

What it actually says

TTS-Script - Script to Audio Conversion

Convert a markdown or text script file to audio narration.

Arguments

The user provided: $ARGUMENTS

Instructions

  1. Check setup status

    • Verify ~/.config/claude-qwen-tts/config.yaml exists
    • If not, inform user to run /tts-setup and /tts-init first
  2. Parse arguments

    • Extract script path (required)
    • Extract --output or -o (optional, default: {script_name}.wav)
    • Extract --pause (optional, silence between paragraphs, default: 0.8s)
    • Extract --speed (optional, playback speed, default: 1.0)
  3. Validate script file

    • Check file exists
    • Supported formats: .md, .txt
    • Read and preview first few lines
  4. Run TTS generation

    source ~/.config/claude-qwen-tts/venv/bin/activate && \
    python ~/.config/claude-qwen-tts/scripts/tts_runner.py script_to_audio \
      --script "SCRIPT_PATH" \
      --output "OUTPUT_PATH" \
      --pause PAUSE_SECONDS \
      --speed SPEED_RATIO \
      --config ~/.config/claude-qwen-tts/config.yaml
    
  5. Report result

    • Show output file path
    • Show total audio duration
    • Show number of processed paragraphs

Processing Logic

  • Markdown headers (#, ##) are removed
  • Horizontal rules (---) are removed
  • Text is split by paragraphs
  • Each paragraph is generated separately
  • Silence is inserted between paragraphs
  • All audio is merged into final output

Example Usage

/tts-script scripts/episode01.md
/tts-script SCRIPT.md -o narration.wav
/tts-script intro.txt --pause 1.0 --speed 0.9

Error Handling

  • If file not found: "Script file not found: {path}"
  • If unsupported format: "Supported formats: .md, .txt"
  • If empty script: "Script file is empty"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 71 lines · 14 tokens per session scan A 782eb39528a8

Subscribe to this mod's changes

tts-script is a command published in the GitHub repository HariFatherKR/claude-qwen-tts (16 stars, last pushed 7mo ago), licensed MIT. It adds 14 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.