NexisVoice API
Sign in

Docs Voices

Saved voices on the worker, and why describing a voice per request is usually enough.

Two ways to choose a voice

approach how when
Voice design Send instructions and no voice Default. No setup, no reference audio, no rights question.
Saved voice Send voice with an id from GET /v1/voices When a brand voice must sound identical across many calls.

Voice design

The model derives the voice from the text you put in instructions. Short, physical descriptions work better than adjectives about quality:

instead of write
"high quality voice" "a woman in her thirties, low pitch, close microphone"
"nice narrator" "a calm older narrator, unhurried, slight British accent"
"excited" "bright and quick, as if reading a headline"

Two rules of thumb: name a body, not a mood; and change one thing at a time when comparing takes.

Saved voices

GET /v1/voices
Authorization: Bearer nxs_tts_…
[]

The list is empty on a fresh worker. A saved voice carries an id, a description and metadata, and its audio lives on the worker — the gateway only forwards the list.

Registering one

Registering needs reference audio and its exact transcript, and it happens on the worker, by the operator:

curl -X POST http://127.0.0.1:8080/v1/voices \
  --form-string "ref_text=The exact words spoken in the reference clip." \
  --form-string "name=harbour" \
  --form-string "description=A calm older narrator, slow and warm." \
  --form-string 'metadata={"source":"internal"}' \
  -F "[email protected]"

Only register audio the organisation has the right to clone. A voice is a person; the licence for a recording is not the licence for their voice. This is why the gateway does not expose the upload route.

Once registered, the id appears in GET /v1/voices and works in voice:

curl https://tts.nexis-ai.tech/v1/audio/speech \
  -H "Authorization: Bearer $NEXIS_TTS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"It is good to hear your voice again.","voice":"harbour","response_format":"mp3"}' \
  --output harbour.mp3

OpenAI voice names

alloy, nova, shimmer and friends do not exist here. A name the worker does not know is a 404 from the worker, forwarded as worker_error. If a client hard-codes those names, map them in the client, or ask the operator to register a saved voice under that name.

Caching a voice decision

Voice design is deterministic for the same input + instructions + seed. Cache the audio keyed by a hash of those three values instead of regenerating the same line for every render.