Replace the voice
PUT
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
filepart. WherePOST /v1/uploadsis available, JSON{"voice": "<https URL or upload:<uploadId>>"}also works, with avoiceupload consumed on success. - Silence, pure tones or heavy noise fail the voice stage.
- Scope:
avatars:write.
header
X-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.
avatarId*stringFormat
uuid- body
file*fileFormat
binaryAccepted; the affected build stages re-run.
application/json- response
avatarId*stringFormat
uuidstatus*"building"Value in
"building"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"}
