Skip to main content
POST
/
voices
Create Voice
curl --request POST \
  --url https://api.revring.ai/v1/voices \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'displayName=<string>' \
  --form voice='@example-file' \
  --form 'language=<string>'
{
  "data": {
    "id": "<string>",
    "displayName": "<string>",
    "language": "<string>",
    "source": "<string>",
    "status": "<string>",
    "gender": "<string>",
    "category": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

API key for authentication. Generate API keys from the RevRing dashboard.

Body

multipart/form-data
displayName
string
required

Name for the new voice

voice
file
required

Audio sample of a single speaker (about 10 to 30 seconds)

language
string

Language code the voice speaks (e.g. 'en'). Defaults to 'en'.

Response

The created voice

data
object

A voice available to your organization. Use its id as an agent's voiceId.