Atmee.aiDocs
APIAPI referenceAvatars

Replace the voice

PUT
/v1/avatars/{avatarId}/voice

Replaces the avatar's voice sample and re-runs the build stages that depend on it; poll GET /v1/avatars/{avatarId} for progress. A draft gets its voice this way (on v2, the first candidate is captured once the portrait is there too).

  • Body: one 10 to 60 second recording of clear speech (mp3, wav, m4a, aac, ogg, flac, opus or webm, up to 12 MB) as the file part. Where POST /v1/uploads is available, JSON {"voice": "<https URL or upload:<uploadId>>"} also works, with a voice upload consumed on success.
  • Silence, pure tones or heavy noise fail the voice stage.
  • Scope: avatars:write.

Authorization

headerX-Api-Key<token>

Your secret API key (sk_atmee_...; older keys start sk_live_), sent as X-Api-Key. Keep it on your server and never send it to a browser.

Path Parameters

avatarId*string
Formatuuid

Request Body

  1. body
file*file
Formatbinary

Response Body

Accepted; the affected build stages re-run.

application/json
  1. response
avatarId*string
Formatuuid
status*"building"
Value in"building"
Example Request
curl -X PUT 'https://api.atmanity.us/v1/avatars/497f6eca-6276-4993-bfeb-53cbbbba6f08/voice' \  -H 'Content-Type: application/json' \  -d '{  "voice": "string"}'
Example Response
{  "avatarId": "ac572b6e-802b-4b9e-a602-0786d4441e67",  "status": "building"}