Xpersona
C

Castreader Openclaw Skill

CLAWHUB · Unverified

URL to audio: extract any web page and convert to natural AI speech (Kokoro TTS). The only skill that turns a URL into a podcast-quality MP3 — no API key nee... Skill: Castreader Openclaw Skill Owner: vinxu Summary: URL to audio: extract any web page and convert to natural AI speech (Kokoro TTS). The only skill that turns a URL into a podcast-quality MP3 — no API key nee... Tags: latest:3.2.14 Version history: v3.2.14 | 2026-03-30T16:36:19.915Z | user Improve README: clearer value prop, remove deleted scripts, fix links, optimize SKILL.md for search v3.2.13 | 2026-03-30T16:0

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fq3s780haf58jdqhe46zwdn83hd32:castreader
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-vinxu-castreader/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

154,877 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: castreader
description: >
  URL to audio: extract any web page and convert to natural AI speech (Kokoro TTS).
  The only skill that turns a URL into a podcast-quality MP3 — no API key needed.
  Also reads synced books from WeChat Reading / Kindle library aloud.
  Triggers: read this article, listen to webpage, URL to audio, text-to-speech,
  read aloud, web page reader, article to podcast, read a book chapter.
version: 3.2.13
metadata:
  openclaw:
    emoji: "🔊"
    requires:
      anyBins: ["node"]
    os: ["darwin", "linux", "win32"]
    homepage: https://castreader.ai/openclaw
---

# CastReader — Read Web Pages & Books Aloud

## Setup (once per session)

```
cd <skill-directory> && npm install
```

## How to find target (chatId)

User messages look like: `[Telegram username id:8716240840 ...]`
The number after `id:` is the target. You MUST use this number in every `message` tool call.
Example: target is `"8716240840"`.

---

## Mode A: When user sends a URL

### Step 1: Extract article

```
node scripts/read-url.js "<url>" 0
```

Returns: `{ title, language, totalParagraphs, totalCharacters, paragraphs[] }`

### Step 2: Show info + ask user to choose

Reply with this text:

```
📖 {title}
🌐 {language} · 📝 {totalParagraphs} paragraphs · 📊 {totalCharacters} chars

📋 Summary:
{write 2-3 sentence summary from paragraphs}

Reply a number to choose:
1️⃣ Listen to full article (~{totalCharacters} chars, ~{Math.ceil(totalCharacters / 200)} sec to generate)
2️⃣ Listen to summary only (~{summary_char_count} chars, ~{Math.ceil(summary_char_count / 200)} sec to generate)
```

**STOP. Wait for user to reply 1 or 2.**

### Step 3a: User chose 1 (full article)

Reply: `🎙️ Generating full audio (~{totalCharacters} chars, ~{Math.ceil(totalCharacters / 200)} seconds)...`

```
node scripts/read-url.js "<url>" all
```

Then send the audio file using the `message` tool:
```json
{"action":"send", "target":"<chatId>", "channel":"telegram", "filePath":"<audioFile>", "caption":"🔊 {title}"}
```

Reply: `✅ Done!`

### Step 3b: User chose 2 (summary only)

Reply: `🎙️ Generating summary audio...`

Save the SAME summary text you showed in Step 2 to a file and generate:
```
echo "<summary text>" > /tmp/castreader-summary.txt
node scripts/generate-text.js /tmp/castreader-summary.txt <language>
```

Then send the audio file using the `message` tool:
```json
{"action":"send", "target":"<chatId>", "channel":"telegram", "filePath":"/tmp/castreader-summary.mp3", "caption":"📋 Summary: {title}"}
```

Reply: `✅ Done!`

---

## Mode B: When user asks to read a book (微信读书 / Kindle)

Books are synced from WeChat Reading or Kindle to `~/castreader-library/books/`.
Each book is stored in a folder like `书名-hashid` (e.g. `儒林外史-dc532c705c6d3edc5503acc`).

**⚠️ CRITICAL: You MUST use `sync-books.js --list` to get the exact book folder ID. NEVER guess or construct the folder path yourself. The folder name includes a title prefix that you cannot predict.**

### Step 1: List 

README.md

# CastReader — URL to Audio

[![OpenClaw Skill](https://img.shields.io/badge/OpenClaw-Skill-blue)](https://clawhub.ai/vinxu/castreader)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-lightgrey)]()

**Paste a URL, get an MP3.** The only OpenClaw skill that extracts article text from any web page and converts it to natural speech. No API key required. Free.

```
User: read this https://paulgraham.com/greatwork.html

Bot:  📖 How to Do Great Work — paulgraham.com
      🌐 English · 📝 85 paragraphs · 📊 12,400 chars

      Reply: 1️⃣ Full article  2️⃣ Summary only

User: 1

Bot:  🎙️ Generating... → 🔊 full.mp3
```

## Install

```bash
clawhub install castreader
```

Requires Node.js 18+.

## What makes it different

Every other TTS skill takes plain text. CastReader is the **only one that handles URLs** — it includes a battle-tested extraction engine with dedicated parsers for 15+ platforms:

| Works on | How |
|----------|-----|
| Notion, Google Docs, Medium, Substack | Dedicated DOM parsers |
| ChatGPT, Claude, Gemini, DeepSeek, Kimi | AI response extraction |
| WeChat Reading (微信读书) | Canvas text via fetch interception |
| Kindle Cloud Reader | OCR + glyph decoding |
| arXiv, Wikipedia | Academic/reference extractors |
| Feishu, Yuque, DingTalk, Fanqie Novel | Chinese platform extractors |
| **Any other website** | Readability + Boilerpipe + JusText fusion algorithm |

## Comparison

| | CastReader | kokoro-tts | openai-tts | mac-tts |
|---|:-:|:-:|:-:|:-:|
| URL → audio | **Yes** | No | No | No |
| Web extraction (15+ sites) | **Yes** | No | No | No |
| Plain text → speech | Yes | Yes | Yes | Yes |
| API key required | **No** | No | Yes | No |
| Languages | 40+ | 40+ | 50+ | System |
| Cost | **Free** | Free | Paid | Free |

## Usage

### URL → audio (one command)

```bash
node scripts/read-url.js "https://example.com/article" all
```

Output:
```json
{
  "title": "Article Title",
  "audioFile": "/tmp/castreader-abc123/full.mp3",
  "fileSizeBytes": 2450000
}
```

### Extract text only (no audio)

```bash
node scripts/read-url.js "https://example.com/article" 0
```

### Text file → audio

```bash
node scripts/generate-text.js /tmp/my-text.txt en
```

### Synced books (WeChat Reading / Kindle)

```bash
node scripts/sync-books.js --list                          # list books
node scripts/sync-books.js --book "<id>" --chapter 3 --audio  # chapter → MP3
```

## Configuration

| Variable | Default | Description |
|----------|---------|-------------|
| `CASTREADER_VOICE` | `af_heart` | Voice selection ([Kokoro voices](https://huggingface.co/hexgrad/Kokoro-82M)) |
| `CASTREADER_SPEED` | `1.5` | Speech speed |
| `CASTREADER_API_URL` | `https://api.castreader.ai` | TTS API endpoint |

## Links

- [CastReader Website](https://castreader.ai)
- [Chrome Extension](https://chromewebstore.google.com/detail/castreader-tts-reader/foammmkhpbeladle

_meta.json

{
  "ownerId": "kn738k2fvx6z3q62zcjnwnrzfx82rs3s",
  "slug": "castreader",
  "version": "3.2.14",
  "publishedAt": 1774888579915
}

references/castreader-api.md

# Castreader API Reference

## TTS API

### Endpoint
`POST {baseUrl}/api/captioned_speech_partly`

Default baseUrl: `https://api.castreader.ai`

### Request Body
```json
{
  "model": "kokoro",
  "input": "Text to convert to speech",
  "voice": "af_heart",
  "response_format": "mp3",
  "return_timestamps": true,
  "speed": 1.5,
  "stream": false,
  "language": "en"
}
```

### Response
```json
{
  "audio": "<base64 encoded MP3>",
  "timestamps": [
    { "word": "Hello", "start_time": 0.0, "end_time": 0.3 },
    { "word": "world", "start_time": 0.35, "end_time": 0.7 }
  ],
  "duration": 5.2,
  "processed_text": "Text that was processed",
  "unprocessed_text": "Remaining text for next call"
}
```

### Key Behavior
- **Partly processing**: Each call only processes a portion of the input text
- `unprocessed_text` contains the remaining text — loop until empty
- Timestamps may use `start/end` or `start_time/end_time` format
- Audio is base64-encoded MP3

### Retry Logic
- Retry on HTTP 502/503/504 (up to 3 times)
- Exponential backoff: 2s × attempt number

## Chrome Extension Messages

### Content Script → Background
| Message Type | Payload | Response |
|---|---|---|
| `TTS_GENERATE` | `{ input, voice?, speed?, language? }` | `{ audioUrl, timestamps, duration }` |
| `GET_SETTINGS` | — | `{ apiBaseUrl, voice, speed, language }` |

### Popup/Background → Content Script
| Message Type | Payload | Effect |
|---|---|---|
| `START_READING` | — | Start extraction + TTS playback |
| `STOP_READING` | — | Stop playback, hide player |
| `TOGGLE_READING` | — | Toggle play/pause/restart |
| `GET_STATUS` | — | Returns current status + playback state |

## Extraction Pipeline

3-layer extraction:
1. **Special extractors** — Site-specific (WeRead, Kindle, Notion, Google Docs, etc.)
2. **Site rules** — CSS selector rules from `site-rules.json`
3. **Visible-Text-Block** — Generic algorithm (text density + link density + context-sensitive classification)

### Bundle API
After injecting `extractor-bundle.js`:
```javascript
const result = await window.__castreaderExtract();
// result: { success, title, paragraphs: [{text, tagName, className}], language, method }
```

skill-card.md

## Description:

Extracts web pages, text files, and synced book chapters, then converts the content into natural-sounding MP3 audio through CastReader/Kokoro TTS.

This skill is ready for commercial/non-commercial use.

## Publisher:

[vinxu](https://clawhub.ai/user/vinxu)

### License/Terms of Use:

MIT-0

## Use Case:

External users and agents use this skill to turn article URLs, extracted text, and synced WeChat Reading or Kindle book chapters into audio for listening workflows. It is useful when a chat agent needs to summarize, present choices, generate MP3 output, and send the resulting audio file back to the user.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill has broad network and local-library access with under-disclosed privacy and containment risks.

Mitigation: Review before installing, run in an isolated account or container, and keep dependencies updated.

Risk: URLs, article text, or book content may be sent to the configured CastReader API for speech generation.

Mitigation: Use only URLs and book content that are acceptable to send to CastReader's API, and avoid private, internal, or sensitive content.

Risk: URL extraction can access arbitrary web targets from the runtime environment.

Mitigation: Avoid internal or localhost URLs and do not run the skill in an environment with access to sensitive internal web services.

## Reference(s):

- [CastReader OpenClaw homepage](https://castreader.ai/openclaw)
- [CastReader API Reference](references/castreader-api.md)
- [Kokoro-82M model](https://huggingface.co/hexgrad/Kokoro-82M)
- [CastReader website](https://castreader.ai)
- [Chrome Extension](https://chromewebstore.google.com/detail/castreader-tts-reader/foammmkhpbeladledijkdljlechlclpb)
- [Edge Add-on](https://microsoftedge.microsoft.com/addons/detail/niidajfbelfcgnkmnpcmdlioclhljaaj)
- [ClawHub skill page](https://clawhub.ai/vinxu/skills/castreader)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, files, guidance]

**Output Format:** [Markdown guidance with inline shell commands and JSON-shaped script results; generated MP3 files are returned by file path for message delivery.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Node.js and network access to the configured CastReader API endpoint; generated audio is written as MP3 files, commonly under /tmp.]

## Skill Version(s):

3.2.14 (source: server release evidence; artifact SKILL.md lists 3.2.13)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Castreader Openclaw Skill and adjacent AI workflows.