# Send Pocket TTS Complete Documentation to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "lb-pocket-tts-skill",
    "name": "Pocket TTS Complete Documentation",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/leonaaardob/lb-pocket-tts-skill",
    "canonicalUrl": "https://clawhub.ai/leonaaardob/lb-pocket-tts-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/lb-pocket-tts-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=lb-pocket-tts-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "docs/export_voice.md",
      "docs/generate.md",
      "docs/python-api.md",
      "docs/serve.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/lb-pocket-tts-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/lb-pocket-tts-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/lb-pocket-tts-skill",
    "agentUrl": "https://openagent3.xyz/skills/lb-pocket-tts-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/lb-pocket-tts-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/lb-pocket-tts-skill/agent.md"
  }
}
```
## Documentation

### Pocket TTS

Lightweight CPU-friendly text-to-speech with voice cloning. No GPU required.

### When to Use

Generating speech from text on CPU without GPU
Voice cloning from audio samples
Streaming audio generation (low latency)
Local TTS without API dependencies
Real-time speech synthesis (~6x faster than real-time)

### Key Features

100M parameters - Small, efficient model
CPU-optimized - No GPU needed, uses only 2 cores
~6x real-time - Fast generation on modern CPUs
~200ms latency - To first audio chunk (streaming)
Voice cloning - From 3-10s audio samples
24kHz mono WAV - High-quality output
English only - More languages planned

### Installation

pip install pocket-tts
# or
uv add pocket-tts

### Generate Speech

# Basic generation (default voice)
pocket-tts generate --text "Hello world"

# Custom voice (local file, URL, or safetensors)
pocket-tts generate --voice ./my_voice.wav
pocket-tts generate --voice "hf://kyutai/tts-voices/alba-mackenna/casual.wav"
pocket-tts generate --voice ./voice.safetensors

# Quality tuning
pocket-tts generate --temperature 0.7 --lsd-decode-steps 3

See docs/generate.md for full CLI reference.

### Start Web Server

# Start FastAPI server with web UI
pocket-tts serve

# Custom host/port
pocket-tts serve --host localhost --port 8080

See docs/serve.md for server options.

### Export Voice Embeddings

Convert audio files to .safetensors for faster loading:

# Single file
pocket-tts export-voice voice.mp3 voice.safetensors

# Batch conversion
pocket-tts export-voice voices/ embeddings/ --truncate

See docs/export_voice.md for export options.

### Basic Usage

from pocket_tts import TTSModel
import scipy.io.wavfile

# Load model
model = TTSModel.load_model()

# Get voice state
voice = model.get_state_for_audio_prompt(
    "hf://kyutai/tts-voices/alba-mackenna/casual.wav"
)

# Generate audio
audio = model.generate_audio(voice, "Hello world!")

# Save
scipy.io.wavfile.write("output.wav", model.sample_rate, audio.numpy())

### Load Model

model = TTSModel.load_model(
    config="b6369a24",       # Model variant
    temp=0.7,                # Temperature (0.5-1.0)
    lsd_decode_steps=1,      # Generation steps (1-5)
    eos_threshold=-4.0       # End-of-sequence threshold
)

### Voice State

# From audio file/URL
voice = model.get_state_for_audio_prompt("./voice.wav")
voice = model.get_state_for_audio_prompt("hf://kyutai/tts-voices/alba-mackenna/casual.wav")

# From safetensors (fast loading)
voice = model.get_state_for_audio_prompt("./voice.safetensors")

### Streaming Generation

# Stream audio chunks
for chunk in model.generate_audio_stream(voice, "Long text..."):
    # Process/save/play each chunk as generated
    print(f"Chunk: {chunk.shape[0]} samples")

### Multi-Voice Management

# Preload multiple voices
voices = {
    "casual": model.get_state_for_audio_prompt("hf://kyutai/tts-voices/alba-mackenna/casual.wav"),
    "announcer": model.get_state_for_audio_prompt("./announcer.safetensors"),
}

# Use different voices
audio1 = model.generate_audio(voices["casual"], "Hey there!")
audio2 = model.generate_audio(voices["announcer"], "Breaking news!")

See docs/python-api.md for complete API reference.

### Available Voices

Pre-made voices from hf://kyutai/tts-voices/:

alba-mackenna/casual.wav (default, female)
jessica-jian/casual.wav (female)
voice-donations/Selfie.wav (male, marius)
voice-donations/Butter.wav (male, javert)
ears/p010/freeform_speech_01.wav (male, jean)
vctk/p244_023.wav (female, fantine)
vctk/p262_023.wav (female, eponine)
vctk/p303_023.wav (female, azelma)

Or clone any voice from your own audio samples.

### Voice Cloning Tips

Clean audio - Remove background noise (use Adobe Podcast Enhance)
Length - 3-10 seconds of speech is ideal
Quality - Input quality affects output quality
Format - WAV, MP3, or any common audio format supported

### Performance Tips

CPU-only - GPU provides no speedup (model too small, batch size 1)
2 cores - Uses only 2 CPU cores efficiently
Streaming - Low latency (<200ms to first chunk)
Safetensors - Pre-process voices to .safetensors for instant loading

### Output Format

All commands output WAV files:

Sample rate: 24 kHz
Channels: Mono
Bit depth: 16-bit PCM

### Links

GitHub
Tech Report
Paper (arXiv)
HuggingFace Model
Voice Repository
Live Demo
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: leonaaardob
- Version: 0.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/lb-pocket-tts-skill)
- [Send to Agent page](https://openagent3.xyz/skills/lb-pocket-tts-skill/agent)
- [JSON manifest](https://openagent3.xyz/skills/lb-pocket-tts-skill/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/lb-pocket-tts-skill/agent.md)
- [Download page](https://openagent3.xyz/downloads/lb-pocket-tts-skill)