Skip to main content

OpenAISpeechRequest

Strict, like every request here: OpenAI's own API refuses a field it does not recognise with a 400, so a refusal holds a client to nothing it was not already held to.

Attributes (7)
AttributeTypeRequiredDescription
modelstringYesAn engine id, or engine:variant.
inputstringYes
voicestringNoAbsent means the engine's default.
response_format'mp3' | 'opus' | 'aac' | 'flac' | 'wav' | 'pcm'NoAbsent means mp3. aac is always refused.
speednumberNoCarried by a speed dial, or refused.
instructionsstringNoRefused unless empty.
stream_format'audio' | 'sse'Nosse is always refused.