Skip to Content

Speech and Voices

List providers and voices, and speak short text.

Choose a voice

List providers

GET /api/v1/providers returns each enabled provider's id, name, type, models, defaultModel, selected, selectedModel and acceptsCustomModel. Keys and base URLs are never included.

List voices

GET /api/v1/voices follows the caller's saved provider and model, then the instance default. provider and model select others, within the administrator's policy.

statusMeaning
listedThe provider named these voices
defaultsIt has no voice list; these are its standard voices
unreachableIt did not answer, so the voices are unconfirmed

Voice IDs are the provider's own strings, stable within that provider and model. They are not global names. The caller's cloned voices start with clone:.

Voices with audio

GET /api/v1/documents/{id}/cached-voices lists the voices a document already has audio for, newest first, with the modelSpeed it was made at, its segments and its durationMs at 1x. An audiobook naming the same provider, model, voice and modelSpeed reuses that audio.

Voices whose audio no longer matches the reading settings, or whose provider is disabled, are left out.

Speak text

curl -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  --data '{"text":"Hello there."}' \
  --output hello.mp3 \
  https://reader.example/api/v1/speech

POST /api/v1/speech needs audio:generate and returns audio/mpeg for up to 2000 characters.

It speaks with the saved provider, model, voice and speed. Optional provider, model, voice and modelSpeed (0.5 to 3) select others, under the same rules as an audiobook.

Characters count against the caller's speech limits. Nothing is saved: the audio is not cached and does not appear in the library. Split longer text and request it in order.

On this page

Edit this page