Skip to main content
POST
/
v1
/
voices
Register a voice
curl --request POST \
  --url https://api.spitch.app/v1/voices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form audio='@example-file' \
  --form 'transcript=<string>' \
  --form 'name=<string>' \
  --form consent=true
{
  "voice_id": "<string>",
  "name": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "language": "<string>"
}

Authorizations

Authorization
string
header
required

Authenticate with Authorization: Bearer <token>. The service accepts JWTs, API keys, and guest tokens through this bearer token header.

Body

multipart/form-data

Multipart form data for registering a custom voice. The reference audio must belong to the consenting speaker and match the supplied transcript.

audio
file
required

Reference audio sample for the voice.

transcript
string
required

Transcript of the reference audio sample.

name
string
required

Human-readable display name for the registered voice.

Must be true to confirm permission to create this voice.

language
string

Optional ISO 639 language code for the reference audio.

Response

Successful Response

voice_id
string
required
kind
enum<string>
required
Available options:
system,
custom
status
enum<string>
required
Available options:
ready,
deleted
name
string
required
created_at
string
required
updated_at
string
required
language
string | null