audiobook
Skill by benchflow-ai
Creates audiobooks from web articles, essays, or text files by fetching content, cleaning the text, and converting it to speech. It picks ElevenLabs, OpenAI TTS, or gTTS based on which API keys are set.
Install audiobook
Built from the published package, never by AI.
git clone --depth 1 https://github.com/benchflow-ai/skillsbench /tmp/skillsbench && mkdir -p ~/.claude/skills && cp -r /tmp/skillsbench/tasks-extra/pg-essay-to-audiobook/environment/skills/audiobook ~/.claude/skills/audiobookRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/benchflow-ai/skillsbench /tmp/skillsbench && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skillsbench/tasks-extra/pg-essay-to-audiobook/environment/skills/audiobook ~/.gemini/antigravity-cli/skills/audiobookAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The audiobook skill turns web articles, essays, or text files into an audio file. It fetches a web page with curl, strips HTML tags, and runs basic checks to catch truncated or summary-only text. The text is then cleaned by removing URLs and footnote markers and split into chunks at sentence boundaries.
Audio generation picks a provider from environment variables. It uses ElevenLabs if an API key is set, then OpenAI TTS, and falls back to gTTS, which needs no key. Chunks are converted to MP3 and joined with ffmpeg. It suits users who want to listen to web articles, essays, or text files as audio.
Written from the project's SKILL.md and checked against it.
What it can do
- Fetch web contentDownloads a page with curl and strips HTML tags to get plain text.
- Verify contentWarns when text is short or appears to be a summary rather than the full article.
- Clean text for TTSRemoves URLs, footnote markers, and characters that can confuse speech output.
- Chunk textSplits text into chunks at sentence boundaries for TTS requests.
- Select TTS providerUses ElevenLabs, OpenAI TTS, or gTTS depending on which API keys are available.
- Join audio filesConcatenates the generated MP3 chunks into one file with ffmpeg.
What you need
- Python
- ffmpeg
- requests, gTTS and pydub Python packages
- Optional ElevenLabs API key
- Optional OpenAI API key
Try asking
- Turn this article URL into an audiobook: https://example.com/article
- Convert my notes.txt file into an MP3 audiobook
- Create an audiobook from these two essays using the best TTS provider I have
Good to know
- The gTTS code is set to English (lang='en').
- Web content is stripped with basic regex, so pages that need JavaScript rendering may not extract well.
- ElevenLabs and OpenAI TTS are listed as paid services.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: tasks-extra/pg-essay-to-audiobook/environment/skills/audiobook/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to audiobook
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
audiobook: common questions
Does this audiobook skill need a paid API key?
No. If no ElevenLabs or OpenAI key is set, it uses gTTS, which the source describes as free with no API key required.
What if the fetched article is only a summary?
The verification function warns when text is short or has summary or key points headers near the start. The troubleshooting section suggests using curl directly instead of web fetch tools.
Which voices does the skill use?
ElevenLabs uses the Rachel voice ID and OpenAI TTS uses the onyx voice with the tts-1 model. gTTS uses English with slow set to false.
How do I install audiobook?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is audiobook free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is audiobook safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to audiobook?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
