Speech
Convert text to audio with the OpenAI Audio Speech API.
Submit text, voice, and output-format parameters. The response body contains binary audio that the client should save or process using the requested format.
/v1/audio/speechConverts input text to speech and returns the result as binary audio content.
Authorization
bearerAuth Use Bearer your-api-key in the Authorization Header.
In: header
Request Body
application/json
Text-to-speech request parameters.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json