Create a cloned voice
Clone a voice from an audio sample. The sample must be Base64 encoded and 1 KB to 25 MB. MP3, WAV and WebM are accepted; a non-audio body is refused.
A name for the cloned voice, 1 to 100 characters.
Base64-encoded audio, 1 KB to 25 MB (MP3, WAV or WebM).
Optional original filename, for your reference.
Optional description.
Required and must be true: you confirm you have the right to clone this voice.
curl -X POST 'https://backend.omnidim.io/api/v1/voices' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "name": "Front desk", "filename": "sample.mp3", "language": "en", "gender": "female", "consent": true }'
Authorization
BearerAuth Bearer token authentication. Obtain your API key from the OmniDimension dashboard.
In: header
Header Parameters
Optional. Send a unique value per clone; a retry with the same key and body returns the first clone instead of creating a second. Every clone costs money at the provider, so this makes a retry safe. Up to 255 printable characters.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response body
application/jsonResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
