{
 "$id": "/v1/schemas/transcript-v1.json",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "additionalProperties": false,
 "description": "A versioned event transcript returned by the Audiobly API.",
 "properties": {
  "created_at": {
   "format": "date-time",
   "type": "string"
  },
  "duration": {
   "type": [
    "number",
    "null"
   ]
  },
  "event_id": {
   "format": "uuid",
   "type": "string"
  },
  "full_text": {
   "type": "string"
  },
  "session_id": {
   "format": "uuid",
   "type": [
    "string",
    "null"
   ]
  },
  "source": {
   "description": "What produced this version: \"asr\" for the machine transcript, or a later step such as \"editor\", \"live\" or \"import\".",
   "type": "string"
  },
  "utterances": {
   "items": {
    "additionalProperties": false,
    "properties": {
     "end": {
      "type": [
       "number",
       "null"
      ]
     },
     "speaker": {
      "type": "string"
     },
     "start": {
      "description": "Seconds from the start of the audio; null for imported transcripts, which have no audio timing.",
      "type": [
       "number",
       "null"
      ]
     },
     "text": {
      "type": "string"
     }
    },
    "required": [
     "speaker",
     "start",
     "end",
     "text"
    ],
    "type": "object"
   },
   "type": "array"
  },
  "version": {
   "type": "integer"
  }
 },
 "required": [
  "event_id",
  "session_id",
  "version",
  "source",
  "duration",
  "full_text",
  "utterances",
  "created_at"
 ],
 "title": "Transcript v1",
 "type": "object"
}
