Piper TTS
Local text-to-speech. Type something, pick a voice, hear it.
API
| Method | Path | Returns |
|---|---|---|
| GET | /health | status + installed voices |
| GET | /voices | array of voice names |
| GET · POST | /tts | audio/wav |
/tts parameters
| Field | Default | Meaning |
|---|---|---|
text | — | Required. Max 5000 characters. |
voice | first installed | Filename stem of a model in voices/. |
speaker | 0 | Speaker id, multi-speaker models only. |
length_scale | model default | Phoneme length. Above 1 is slower, below 1 faster. |
noise_scale | model default | Generator noise — expressiveness. |
noise_w_scale | model default | Phoneme width noise — cadence variation. |
Accepts JSON, form fields, or a query string. Errors:
400 bad input, 404 unknown voice,
413 text too long, 503 no voices installed.
Examples