{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CreateSpeechRequest",
  "type": "object",
  "description": "Request body for generating speech from text.",
  "properties": {
    "model": {
      "type": "string",
      "description": "The TTS model to use."
    },
    "input": {
      "type": "string",
      "description": "The text to generate audio for."
    },
    "voice": {
      "type": "string",
      "description": "The voice to use when generating the audio."
    },
    "response_format": {
      "type": "string",
      "description": "The format to audio in."
    },
    "speed": {
      "type": "number",
      "description": "The speed of the generated audio."
    }
  }
}