speech-audio-encoding

speech-audio-encoding is a skill for Claude Code, Codex from github/gh-aw. It costs 33 tokens per session (1,472 once invoked), scanned A, original, MIT.

A local text-to-speech workflow that turns written text into Opus audio files for websites or repositories. It uses an open model on your machine and ffmpeg, a tool for converting media files.

In plain words
What is it for?
Use it to generate synthetic speech, encode small web-playable files, and create reproducible audio assets without committing temporary WAV files or model caches.
Why use it?
It avoids sending text to a cloud service or managing cloud API keys. Fixed model and voice settings make regenerated audio consistent, while hashing helps identify matching inputs.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Use it to generate synthetic speech, encode small web-playable files, and create reproducible audio assets without committing temporary WAV files or model caches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/github/gh-aw/speech-audio-encoding
About the project

GitHub Agentic Workflows is a GitHub CLI extension that lets developers define AI-assisted repository automation in Markdown and run it through GitHub Actions. It is intended for tasks requiring interpretation or reasoning, such as issue triage, pull-request review, CI investigation, documentation maintenance, and dependency analysis. The catalogue entries provide skills and agents for working with these workflows.

github/gh-aw · 5,748 stars · on GitHub · gh.io

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.

Any agent
npx skills add github/gh-aw --skill speech-audio-encoding
Clone the repo
git clone --depth 1 https://github.com/github/gh-aw

Made for: Claude Code, Codex.

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 speech-audio-encoding

README.md
[![agentmods](https://agentmods.dev/badge/skills/github/gh-aw/speech-audio-encoding/github.svg)](https://agentmods.dev/skills/github/gh-aw/speech-audio-encoding)
Your own site
<a href="https://agentmods.dev/skills/github/gh-aw/speech-audio-encoding"><img src="https://agentmods.dev/badge/skills/github/gh-aw/speech-audio-encoding/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 speech-audio-encoding

Your own site · 80×15
<a href="https://agentmods.dev/skills/github/gh-aw/speech-audio-encoding"><img src="https://agentmods.dev/badge/skills/github/gh-aw/speech-audio-encoding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,472 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.00033 $0.01472
Opus 5.5 $0.00013 $0.00589
Sonnet 5.5 $0.00007 $0.00294
Haiku 4.5 $0.00003 $0.00147

Measured 7d ago against content hash 84e06434ca0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

speech-audio-encoding 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 7d 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.

.github/skills/speech-audio-encoding/SKILL.md · 71 lines

How it starts

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

Speech audio encoding

Use this skill to turn text into speech audio that ships in a repository or a static site. It is based on the githubnext/agentics workflows/shared/ffmpeg.md guidance (Opus for voice, strip metadata, hash inputs for caching). For the cracktro deck, the cracktro-voice skill wraps all of this in one script.

Rules

  • Generate with a local open model: Kokoro-82M (kokoro-js, Apache-2.0, 24 kHz mono). No cloud TTS, keys or uploads. Write the model id, dtype and voice ids into a committed config so a rerun reproduces the voice.
  • Install tools in $TMPDIR, never in the repository: npm install --prefix "$TMPDIR/<name>-deps" [email protected] [email protected]. ffmpeg-static ships libopus; a system ffmpeg with --enable-libopus works too (ffmpeg -hide_banner -encoders | grep opus).
  • Set HF_HOME="$TMPDIR/hf" so the model download (about 330 MB fp32, 90 MB q8) lands in scratch. The first run needs network; later runs are offline.
  • Commit only the encoded files and a generated lookup table, never WAV, caches or node_modules.
  • Label the output as synthetic speech in the generated table's header.

Licenses (checked for kokoro-js 1.2.1)

Component License Shipped?
Kokoro-82M weights and voices (hexgrad/Kokoro-82M) Apache-2.0; commercial use allowed. Training data was permissive, public-domain or synthetic audio, plus under 12 h of CC BY audio (Koniwa, SIWIS) credited on the model card. No, only the generated audio
ONNX conversion (onnx-community/Kokoro-82M-v1.0-ONNX) Apache-2.0 No
kokoro-js, phonemizer, @huggingface/transformers Apache-2.0 No
onnxruntime-node MIT No
ffmpeg-static (FFmpeg binary) GPL-3.0-or-later No: a build tool only; GPL does not cover its output files

Only the encoded audio is committed. Credit the model in the generated file header (for example "Synthetic speech: Kokoro-82M (Apache-2.0)"). Re-check these licenses when you bump a version or switch models, and never use a voice clone of a real person.

Read the full file on GitHub · 71 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. 7d ago First seen · 71 lines · 33 tokens per session scan A 84e06434ca0b

Subscribe to this mod's changes

speech-audio-encoding is a skill published in the GitHub repository github/gh-aw (5,748 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,472 once invoked, about $0.0001 per session on Opus 5.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-11-24.

Related

speech-audio-encoding compared with skills from other repositories

speech-audio-encoding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
speech-audio-encodinggithub/gh-awSkill5.7ktodayMITA33Claude Code, Codex
watch-prjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
watch-tagjustincampbell/gh-watchSkill41mo agoMITA62Claude Code
watch-branchjustincampbell/gh-watchSkill41mo agoMITA45Claude Code
watch-commitjustincampbell/gh-watchSkill41mo agoMITA48Claude Code
c-githubdaxaur/openpawSkill1836mo agoMITA48Claude Code, Codex
update-architecture-docsAlexSkrypnyk/scaffoldSkill11yesterdayGPL-3.0A46Claude Code