agentleFS
QuarktexQuarktex/qcobrain/skills/audioit/SKILL.md

audioit

Skill4 starsChanged 4 months agoMITView on GitHub

Text → spoken MP3 via a configurable TTS provider. No provider is hard-wired — you choose one in config.yml, bring your own credentials, and synthesize.sh dispatches to it. Ported and genericized from a GCP-only original; nothing about any one cloud or project is baked in. - none — the default. The script prints a one-line setup pointer and exits 0. Pick a provider to enable audio. - macos-say — zero-config on macOS; uses the built-in say. No keys, works offline.…

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep it conversational and second-person when briefing.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: audioit

Text → spoken MP3 via a configurable TTS provider. No provider is hard-wired — you choose one in config.yml, bring your own credentials, and synthesize.sh dispatches to it. Ported and genericized from a GCP-only original; nothing about any one cloud or project is baked in.

Configure your provider (config.yml)

tts:
  provider: none        # none | macos-say | gcloud | elevenlabs | openai
  voice: ""             # provider-specific (see below); empty = provider default
  • none — the default. The script prints a one-line setup pointer and exits 0. Pick a provider to enable audio.
  • macos-say — zero-config on macOS; uses the built-in say. No keys, works offline. voice = a macOS voice name (e.g. Samantha); empty = system default. Output is MP3 if ffmpeg is installed, else AAC .m4a.
  • gcloud — Google Cloud Text-to-Speech (Chirp3-HD voices). Uses your gcloud Application Default Credentials; project comes from CLOUDSDK_CORE_PROJECT (or GOOGLE_CLOUD_PROJECT). No project id or service account is baked in — bring your own. voice = e.g. en-US-Chirp3-HD-Charon.
  • elevenlabs — ElevenLabs API. Needs ELEVENLABS_API_KEY in .env. voice = a voice id.
  • openai — OpenAI audio/speech. Needs OPENAI_API_KEY in .env. voice = alloy | echo | fable | onyx | nova | shimmer.

Secrets live in .env (gitignored), never in config.yml. See .env.example. You can also override the provider for one run with the AUDIOIT_PROVIDER env var, and the voice with the third CLI argument.

What it does

synthesize.sh reads a plain-text narration file, chunks it under the provider's per-request limit, synthesizes each chunk, concatenates the audio, and writes one file (printing duration when it can).

bash skills/audioit/synthesize.sh narration.txt                    # -> narration.mp3
bash skills/audioit/synthesize.sh narration.txt out.mp3            # custom output
bash skills/audioit/synthesize.sh narration.txt out.mp3 <voice>    # override the configured voice

Write a SPOKEN narration, not raw markdown

The engine speaks exactly what is in the file, so the input must be spoken-word, not a copy of a markdown answer. Before synthesizing:

  • Strip markdown — no #, *, backticks, tables, links, bullet glyphs.
  • Expand for the ear — "MCP" → "M-C-P", "GPU" → "G-P-U", "COGS" → "cost of goods", "v0" → "version zero".
  • Turn lists/tables into flowing sentences ("First… Second… Third…").
  • Keep it conversational and second-person when briefing.
  • One idea per sentence; short sentences read better aloud.

Cost / safety

Cloud/API providers bill per call (cheap for short briefs); macos-say is free and offline. There is no outward-facing action — the script writes a local file. Don't synthesize secrets into audio you'd share (see references/blocklist.md).

Files

  • synthesize.sh — the runnable engine (bash + python3, self-contained, parameterized, provider-dispatched, with a safe validation path; provider: none exits cleanly).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.