Create voice
Changed onCreates 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.
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/audio/voices
- AuthHTTP bearer
Request body
Response
OK
Changes
- warning
added the new
promptenum value to theresponse property for the response status - info
added
promptmapping keys to the request discriminator - info
added the media type
application/jsonto the request body - info
added to the request body
oneOflist - info
added the optional property
to the response with the status
- warning
- breaking
the
response's property type changed from no type tostringfor status - warning
added the new
audio_sampleenum value to theresponse property for the response status - info
removed
subschema #1subschema #2from theresponse propertyanyOflist for the response status
- breaking