Article Audio
Without this skill, agents strip the Markdown and read what is left. Figure alt text comes out as a tour of boxes and arrows, file paths come out as "slash" and "dot", and nothing stops the run before it spends credits. Your job is the script: rewrite the article for the ear. scripts/article-audio.mjs does the fragile parts: splitting, Eleven v4 requests with request stitching, and a gapless, loudness-normalised merge.
What invoking it authorises
The skill is explicit-only: disable-model-invocation: true for Claude Code and Cursor, agents/openai.yaml for Codex. Invoking it authorises the spoken script, the dry run, and one sample of at most 3,000 characters (about $0.25). The full run and every regeneration need a fresh yes after the user sees the estimate.
The key comes from ELEVENLABS_API_KEY, or from ~/.config/elevenlabs/api_key when the variable is not set. Without a key, stop after the dry run and say that the audio waits for the key.
The default voice comes from ELEVENLABS_VOICE_ID, or from ~/.config/elevenlabs/voice_id. A voice id belongs to one account, so when the user names a voice to use from now on, write it to that file, not into the skill. The voice's stored stability and similarity are used unless the user asks for other values; for a cloned voice, they are its owner's tuning.
Steps
Run the script with node or bun. <dir> is the output folder: audio/ next to the article unless the user names another place.
- Write
<dir>/script.mdin the article's language (see "Write for the ear").# Titleand## Sectionlines are not spoken: they name the audio and its chapters. Text before the first##becomes an opening chapter named after the title. A heading that only holds a list, such as an outline, folds into the section around it. Blank lines separate paragraphs.<!-- notes -->are not spoken. split <dir> --language <code> --source <article>, with--voice <id>when the user names a voice for this article. Fix everyblockedline. Check eachwarning, and change the text when the warning is right.- If
splitsays there is no voice yet, ask the user for one.voiceslists the voices on the account and marks the default. - Sample: pick the hardest content (terms, numbers, a figure), at most 3,000 characters: one section, or some fragments of a longer one. Run
synth <dir> --only <ids> --yes, where<ids>are section ids (s03) or fragment ids (s03-f01). Then runmerge <dir> --partial, which writessample.mp3. - Show the user the sample path, what to listen for, and the full cost:
synth <dir>without--yesprints it. Wait for a yes. synth <dir> --yes, thenmerge <dir>. Reportaudio.mp3, its duration, and what the API billed:statusprints the total for every take. The estimate prices every character sent at list price, and the API can bill fewer: one Creator account was billed 44% of the characters foreleven_v4in October 2026.
To fix a fragment later, change its words in script.md and run split: only the fragments whose text changed lose their audio. Change words, not only line breaks: with the same seed, a fragment with an added paragraph break came back as the same take. For a bad take of unchanged text, run synth <dir> --only <id> --force --yes, which uses a new seed. Then run merge. Both need the user's yes, as in step 5.
Write for the ear
The script is a new text for a listener, not the article without its marks. Picture two listeners: one reads the article while listening, one walks with headphones and no screen. Every line must work for the walker, and no line may bore the reader. Keep the author's words and order wherever they already work aloud. Rewrite only what the ear cannot follow. Do not summarise and do not add claims.
Ask of each passage:
- Does the listener know where they are? Open with the title, and each section with its heading, as a short spoken line. Before a list of three or more items, say how many there are.
- Does a sentence point at the page ("below", "this table", "click here")? Make it work without the page.
- Is something read that nobody says aloud? File names, paths, commands and identifiers become the words people say: "the agents file", "the memory save tool". Keep the literal spelling only when the listener must type it.
- Is there a parenthesis, or a label with a colon ("State: holds the thread")? Make it a sentence of its own ("State holds the thread"), or drop it.
- Is it a code block or a table? Say what the code does, or what the table shows, and the one or two details the text relies on. Never read code or cells.
Eleven v4 facts that change the text:
- It has no SSML and no speed or style setting. Pauses come from punctuation: a sentence end gives about 0.3 to 0.6 s, and a paragraph break adds nothing. The merge adds exact pauses between fragments and before each section, so do not add pause marks.
- A short line that ends in an acronym can run into the next sentence: "…and MCP. Agents may…" came out with 50 ms between them. End such a line on a plain word: "Finally, MCP and the command line."
- Square brackets are audio tags, and a tag can come out as a sound effect. Text between slashes is read as IPA.
splitblocks both. The one exception is IPA written as"/ˈwɜːrd/"to fix a pronunciation. - Capitals add stress. Write an all-capital name as a normal word ("Apex", not "APEX"). Keep acronyms that people say as letters (API, LLM).
- Write versions, codes and ranges as they are said: "season two, episode one", "version four", "from five to ten". In Polish, write a number as words when it takes a case ending ("w dwa tysiące dwudziestym szóstym roku"), and listen for it in the sample.
- In a Polish article, keep established English terms in English. If the sample mispronounces a term, respell it or use IPA, and fix it everywhere in the script.
Figures: say the point, not the picture
Alt text describes a picture for someone who cannot see it, so it lists shapes, colours and positions. The listener needs what the figure means. Read the figure's alt text, its caption (under the image or inside it), and the paragraphs before and after it. If you can open the image, look at it. Authoring notes, such as drawing instructions in comments, can show the intent, but never read their wording.
Then ask what the walker would lose if the figure were skipped:
- Nothing, because the text already says it: skip the figure, or give one bridging sentence.
- Facts, because the text points at the figure ("like this:"), builds on it, or does not have what the figure shows (an example, a grouping): give the point in one sentence, then only those facts, as a flow of who does what and in what order. Two to four sentences. A figure that maps the whole article may need a few more.
- Data (a chart): the trend or the comparison, and the one or two numbers the text uses.
Leave out colours, shapes, arrows, positions, line styles, legends, and labels that repeat the text. Open with a light cue, so the reader can find the figure: "The diagram here shows…". Do not use "as you can see".
Alt text: "A flow diagram. A red box labelled Queue sits on the left. Three arrows lead to grey boxes labelled Worker 1, Worker 2 and Worker 3. A dashed arrow goes from each worker to a database cylinder on the right." Script: "The diagram here shows one queue feeding three workers in parallel. Each worker writes its result to the same database."
Fragments and output
split makes the fragments: whole paragraphs, never across a ## section, about 1,600 characters each (about two minutes) and never more than 2,500. That size is short enough to check by ear and cheap to regenerate (about $0.13 at list price), and long enough for natural phrasing. Request stitching keeps the voice even across fragment borders. Keep paragraphs under about 1,000 characters, so that split has places to cut.
The player reads audio.mp3 and manifest.json. The fields are in references/manifest.md. Facts, prices and sources are in references/sources.md.


