{ "$id":                                "https://schemas.mpai.community/OSD/V1.5/data/SpeechEventDescriptors.json",
  "$schema":                            "https://json-schema.org/draft/2020-12/schema",
  "title":                              "SpeechEvent Descriptors V1.5",
  "description":                        "SpeechEvent descriptor set.",
  "type":                               "object",
  "required":                           [ "Header", "SpeechEventDescriptorsID", "SpeechEventDescriptorsSpaceTime", "Trace" ],
  "additionalProperties":               false,
  "properties":                         {

    "Header":                           { "type": "string", "pattern": "^OSD-SED-V[0-9],{1,2},[.][0-9],{1,2}$" },
    "MInstanceID":                      { "type": "string" },
    "UEnvironmentID":                   { "type": "string" },
    "SpeechEventDescriptorsID":         { "type": "string" },
    "SpeechEventDescriptorsSpaceTime":  { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpaceTime.json" },

    "SpeechEventDescriptors":           { "type": "array", "items": { "type": "object", "additionalProperties": false, "properties": {
      "SpeechEventIDOrSpeechEvent":     { "description": "Embedded Event Descriptors (recursive) or an Event ID (by reference).",
                                          "type": "array", "minItems": 1, "maxItems": 1, "items": { "oneOf": [
                                        { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/SpeechEventDescriptors.json" },
                                        { "type": "string" } ] } } } } },

    "DataXMData":                       { "$ref": "https://schemas.mpai.community/PTF/V1.0/data/DataExchangeMetadata.json" },
    "DescrMetadata":                    { "type": "string", "maxLength": 2048 } } }
