Turn text into a spoken audio file through tts-1 on local. Use when the user asks for audio of some text. Each run is billed: confirm with the user first.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Text To Speech?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maimorylab-text-to-speech)
---
name: bootagent-text-to-speech
description: "Turn text into a spoken audio file through tts-1 on local. Use when the user asks for audio of some text. Each run is billed: confirm with the user first."
---
# Text to speech
Generated by BootAgent. It calls `tts-1` on the user's local account. BootAgent rewrites this Skill when the model or Provider changes, so do not edit it.
## When to use
When the user asks you to turn text into spoken audio: reading out a summary, producing a voice-over draft.
## Command
Run the script from the user's working directory, using the absolute path to this Skill:
```bash
node <this Skill's directory>/scripts/run.mjs speak --text "<text>" [--voice <name>] [--format mp3|wav|opus|aac|flac|pcm] [--out <file or directory>]
```
- `--text`: what to say, at most 4096 characters. Split longer text into several runs.
- `--voice`: the voice name. Default `alloy`; other models may name their voices differently, and the Provider's error says so.
- `--format`: audio format. Default `mp3`.
- `--out`: a file path, or a directory. Default `~/.bootagent/output`, outside the Skill directory.
- `--timeout`: seconds to wait. Default 120.
The saved file path is printed to stdout. Existing files are never overwritten.
## Rules
- Every run costs money, billed by the length of the text. Before each run, tell the user what text you are about to speak and wait for them to agree.
- Never print, echo or log environment variables, `~/.bootagent/skill-env/local.env`, or anything that could reveal the API key. The script reads the key itself; you never need it.
- Only send files the user asked about. They go to the user's own Provider and nowhere else.
## Exit codes
| Code | Meaning | What to tell the user |
| --- | --- | --- |
| 0 | Success | Report the result. |
| 2 | Bad arguments or input file | Fix the command, or ask the user for the right file. |
| 3 | Setup problem: Node.js older than 18, or no API key found | Ask the user to restart the Agent so it picks up `BOOTAGENT_LOCAL_API_KEY`, or to reinstall this Skill from BootAgent. |
| 4 | The Provider refused the request | Show the Provider's message. The model may not support this input; the user can choose another model in BootAgent. |
| 5 | The Provider rejected the API key | Ask the user to check the local key in BootAgent. |
| 6 | The Provider was unreachable, busy or timed out | Suggest trying again later. |
`node <this Skill's directory>/scripts/run.mjs check` confirms the key is available without sending a request.