Create speech
Changed onGenerates audio from the input text.
Returns the audio file content, or a stream of audio events.
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/audio/speech
- AuthHTTP bearer
Request body
Example request
{
"voice": {
"id": "voice_1234"
}
}Response
OK
Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the media type
audio/aacfor the response with the status - info
added the media type
audio/flacfor the response with the status - info
added the media type
audio/mpegfor the response with the status - info
added the media type
audio/opusfor the response with the status - info
added the media type
audio/pcmfor the response with the status - info
added the media type
audio/wavfor the response with the status
- info