{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/createSpeechRequest", "title": "createSpeechRequest", "type": "object", "description": "Speech request.", "properties": { "input": { "type": "string", "description": "The text to synthesize audio for. The maximum length is 4096 characters.", "maxLength": 4096 }, "voice": { "type": "string", "description": "The voice to use for speech synthesis.", "enum": [ "alloy", "echo", "fable", "onyx", "nova", "shimmer" ] }, "response_format": { "type": "string", "description": "The format to synthesize the audio in.", "enum": [ "mp3", "opus", "aac", "flac" ] }, "speed": { "description": "The speed of the synthesize audio. Select a value from `0.25` to `4.0`. `1.0` is the default.", "type": "number", "default": 1, "minimum": 0.25, "maximum": 4 } }, "required": [ "input", "voice" ] }