Create voice
POST/audio/voices
Creates a voice from a text prompt or from a consent recording and an audio sample.
For prompt-based creation, send type: "prompt" with a name and prompt as JSON or multipart form data. For creation from an audio sample, send type: "audio_sample" with a name, audio_sample, and consent recording ID as multipart form data. The type defaults to audio_sample when omitted.
Returns the saved voice’s metadata. Voices created from text prompts are supported only in Live, not in Realtime or the speech endpoint. The response does not include preview audio.
Create voice
curl https://api.openai.com/v1/audio/voices \
-X POST \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "prompt",
"name": "Warm narrator",
"prompt": "A warm, calm narrator with a clear, measured delivery.",
"model": "auto"
}'
{
"id": "id",
"created_at": 0,
"name": "name",
"object": "audio.voice",
"type": "audio_sample"
}Returns Examples
{
"id": "id",
"created_at": 0,
"name": "name",
"object": "audio.voice",
"type": "audio_sample"
}