text-to-speech
Generate speech audio from text. Use when a user asks to generate speech, read text aloud, create audio from text, or do text-to-speech / TTS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate speech audio from text. Use when a user asks to generate speech, read text aloud, create audio from text, or do text-to-speech / TTS.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Analyze Foreman session logs to extract costs, errors, conversation flow, token usage, and agent behavior patterns. Use when asked about session costs, debugging failed sessions, auditing agent behavior, generating usage reports, or reviewing what happened in past sessions. Session logs are JSONL files at ~/foreman-logs/YYYY/MM/DD/session-name.jsonl.
Transcribe voice messages and audio files to text using faster-whisper locally on CPU. Use when a user sends a voice note or audio file.
| name | text-to-speech |
| description | Generate speech audio from text. Use when a user asks to generate speech, read text aloud, create audio from text, or do text-to-speech / TTS. |
Generate natural-sounding speech from text using Kokoro TTS running locally on CPU. No external API keys required.
tts.py — Generate speech from text# Text from argument (default voice: af_heart, default format: ogg)
uv run scripts/tts.py "Hello, world!" -o output.ogg
# Text from stdin
echo "Hello world" | uv run scripts/tts.py - -o output.ogg
# Text from file
uv run scripts/tts.py --file input.txt -o output.ogg
# Different voice
uv run scripts/tts.py "Hello!" -o output.ogg --voice am_adam
# British English voice
uv run scripts/tts.py "Good day!" -o output.ogg --voice bf_emma
# WAV output (larger files)
uv run scripts/tts.py "Hello!" -o output.wav
# Adjust speed (0.5 = slow, 2.0 = fast)
uv run scripts/tts.py "Hello!" -o output.ogg --speed 1.2
# List all available voices
uv run scripts/tts.py --list-voices
Dependencies (kokoro-onnx, soundfile) are declared inline via PEP 723 and handled automatically by uv run. Model files (~336 MB total) are downloaded on first use and cached in ~/.cache/kokoro-tts/.
First run is slower due to dependency resolution and model download. Subsequent runs take a few seconds for short texts.
Default voice is af_heart (US English, female). Use --list-voices to see all 30+ voices across English (US/GB), French, Italian, Japanese, and Mandarin. Language is auto-detected from the voice name prefix; override with --lang if needed.
Format is auto-detected from the output file extension, or can be set explicitly with --format.