{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/runcrate/main/json-schema/runcrate-transcription-response-schema.json",
  "title": "TranscriptionResponse",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/runcrate-api-openapi.json#/components/schemas/TranscriptionResponse",
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string"
    },
    "duration": {
      "type": "number",
      "description": "verbose_json only. Audio duration in seconds."
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "verbose_json only. Detected language code."
    },
    "segments": {
      "type": [
        "array",
        "null"
      ],
      "description": "verbose_json only. Timed segments of the transcript.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "start": {
            "type": "number",
            "description": "Seconds from the start of the audio."
          },
          "end": {
            "type": "number",
            "description": "Seconds from the start of the audio."
          },
          "text": {
            "type": "string"
          }
        }
      }
    }
  }
}