generate-audio

generate-audio is a command for coding agents from deapi-ai/claude-code-skills. It costs 18 tokens per session (1,028 once invoked), scanned A, original, MIT.

A command that converts written text into spoken audio using a selection of AI voices and languages.

In plain words
What is it for?
Use it to turn supplied text into speech and choose a voice by language, gender, and voice ID.
Why use it?
It avoids recording narration manually when a generated voice track is sufficient.

Command

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.

agentmods
npx agentmods add commands/deapi-ai/claude-code-skills/generate-audio
Clone the repo
git clone --depth 1 https://github.com/deapi-ai/claude-code-skills

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 generate-audio

README.md
[![agentmods](https://agentmods.dev/badge/commands/deapi-ai/claude-code-skills/generate-audio.svg)](https://agentmods.dev/commands/deapi-ai/claude-code-skills/generate-audio)
Your own site
<a href="https://agentmods.dev/commands/deapi-ai/claude-code-skills/generate-audio"><img src="https://agentmods.dev/badge/commands/deapi-ai/claude-code-skills/generate-audio.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00018 $0.01028
Opus 5 $0.00009 $0.00514
Sonnet 5 $0.00004 $0.00206
Haiku 4.5 $0.00002 $0.00103

Measured 3d ago against content hash 68bb710c9590, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate-audio scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "https://api.deapi.ai/api/v1/client/txt2audio" \
deapi/commands/generate-audio.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Text-to-Speech via deAPI

Generate audio from text: $ARGUMENTS

Step 1: Parse arguments

Extract from $ARGUMENTS:

  • text: The text to convert to speech (required)
  • --voice: Voice ID (default: af_bella)

54+ voices in 8 languages. Voice ID format: {lang}{gender}_{name}

  • Lang: a=American, b=British, j=Japanese, z=Chinese, e=Spanish, f=French, h=Hindi, i=Italian, p=Portuguese
  • Gender: f=female, m=male

Popular voices:

Voice ID Language Description
af_bella American EN Warm, friendly (best quality)
af_heart American EN Expressive, emotional
af_nicole American EN Professional
af_sarah American EN Casual
am_adam American EN Deep, authoritative
am_michael American EN Energetic
bf_emma British EN Elegant (best British)
bf_isabella British EN Refined
bm_george British EN Sophisticated
jf_alpha Japanese Natural Japanese female
zf_xiaobei Chinese Mandarin female
ef_dora Spanish Spanish female
ff_siwis French French female (best quality)
hf_alpha Hindi Hindi female
if_sara Italian Italian female
pf_dora Portuguese Brazilian Portuguese female

Full list: Kokoro VOICES.md

Step 2: Send request

curl -s -X POST "https://api.deapi.ai/api/v1/client/txt2audio" \
  -H "Authorization: Bearer $DEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "{text}",
    "voice": "{voice}",
    "model": "Kokoro",
    "lang": "{lang_code}",
    "speed": 1.0,
    "format": "mp3",
    "sample_rate": 24000
  }'

Parameters:

Parameter Default Description
lang auto from voice Language code: en-us, en-gb, ja, zh, es, fr, hi, it, pt-br
speed 1.0 Speech speed (0.5-2.0)
format mp3 Output format: mp3, wav, flac, ogg
sample_rate 24000 Sample rate: 22050, 24000, 44100, 48000

Read the full file on GitHub · 106 lines

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. 3d ago First seen · 106 lines · 18 tokens per session scan A 68bb710c9590

Subscribe to this mod's changes

generate-audio is a command published in the GitHub repository deapi-ai/claude-code-skills (21 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 1,028 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.