{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audioscrape-com/json-schema/audioscrape-com-transcript-schema.json",
  "title": "Transcript",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audioscrape-com-episodes-api-openapi.yml#/components/schemas/Transcript",
  "type": "object",
  "required": [
    "segments",
    "speakers",
    "total_segments"
  ],
  "properties": {
    "partial": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/TranscriptPartial",
          "description": "Present (with HTTP 206) when the recording is still being\ntranscribed in parts and `segments` covers only the finished ones.\nSpeaker labels are provisional until the response is a plain 200."
        }
      ]
    },
    "segments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TranscriptSegment"
      }
    },
    "speakers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "total_segments": {
      "type": "integer",
      "minimum": 0
    }
  },
  "$defs": {
    "TranscriptPartial": {
      "type": "object",
      "required": [
        "pieces_done",
        "pieces_total",
        "seconds_transcribed",
        "seconds_total",
        "speakers_final"
      ],
      "properties": {
        "pieces_done": {
          "type": "integer",
          "format": "int32"
        },
        "pieces_total": {
          "type": "integer",
          "format": "int32"
        },
        "seconds_total": {
          "type": "integer",
          "format": "int64"
        },
        "seconds_transcribed": {
          "type": "integer",
          "format": "int64"
        },
        "speakers_final": {
          "type": "boolean"
        }
      }
    },
    "TranscriptSegment": {
      "type": "object",
      "required": [
        "text",
        "start",
        "end"
      ],
      "properties": {
        "end": {
          "type": "number",
          "format": "double"
        },
        "speaker": {
          "type": [
            "string",
            "null"
          ]
        },
        "start": {
          "type": "number",
          "format": "double"
        },
        "text": {
          "type": "string"
        }
      }
    }
  }
}