{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/OSD/V1.2/data/AudioVisualSceneDescriptors.json",
  "title": "AudioVisualSceneDescriptors",
  "type": "object",
  "properties": {
    "Header": {
      "type": "string",
      "pattern": "^OSD-AVS-V[0-9]{1,2}[.][0-9]{1,2}$"
    },
    "MInstanceID": {
      "type": "string"
    },
    "AVSceneDescriptorsID": {
      "type": "string"
    },
    "ObjectCount": {
      "type": "integer"
    },
    "AVSceneDescriptorsSpaceTime": {
      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
    },
    "SpeechObjectCount": {
      "type": "integer"
    },
    "SpeechObjectsData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "SpeechObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "SpeechObjectIDOrSpeechObject": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "SpeechObjectID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "SpeechObject": {
                      "$ref": "https://schemas.mpai.community/MMC/V2.3/data/SpeechObject.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "AudioObjectCount": {
      "type": "integer"
    },
    "AudioObjectsData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "AudiopObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "AudioObjectIDOrAudioObject": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "AudioObjectID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "AudioObject": {
                      "$ref": "https://schemas.mpai.community/CAE1/V2.3/data/AudioObject.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "VisualObjectCount": {
      "type": "integer"
    },
    "VisualObjectsData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "VisualObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "VisualObjectIDOrVisualObject": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "VisualObjectID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "VisualObject": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualObject.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "AudioVisualObjectCount": {
      "type": "integer"
    },
    "AudioVisualObjectsData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "AudioVisualObjectSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "AudioVisualObjectIDOrVisualObject": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "AudioVisualObjectID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "AudioVisualObject": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/AudioVisualObject.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "SpeechSceneCount": {
      "type": "integer"
    },
    "SpeechSubScenesData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "SpeechSubSceneSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "SpeechSubSceneIDOrSpeechSubScene": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "SpeechSubSceneID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "SpeechSubScene": {
                      "$ref": "https://schemas.mpai.community/MMC/V2.3/data/SpeechSceneDescriptors.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "AudioSceneCount": {
      "type": "integer"
    },
    "AudioSubScenesData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "AudioSubSceneSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "AudioSubSceneIDOrAudioSubScene": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "AudioSubSceneID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "VisuaAudioSubScene": {
                      "$ref": "https://schemas.mpai.community/CAE1/V2.3/data/AudioSceneDescriptors.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "VisualSceneCount": {
      "type": "integer"
    },
    "VisualSubScenesData": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "VisualSubSceneSpaceTime": {
            "$ref": "https://schemas.mpai.community/OSD/V1.2/data/SpaceTime.json"
          },
          "VisualSubSceneIDOrVisualSubScene": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "VisualSubSceneID": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "properties": {
                    "VisualSubScene": {
                      "$ref": "https://schemas.mpai.community/OSD/V1.2/data/VisualSceneDescriptors.json"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    },
    "BasicScenesOrScenes": {
      "type": "array",
      "oneOf": [
        {
          "$ref": "https://schemas.mpai.community/OSD/V1.2/data/AudioVisualBasicSceneDescriptors.json"
        },
        {
          "$ref": "https://schemas.mpai.community/OSD/V1.2/data/AudioVisualSceneDescriptors.json"
        }
      ]
    },
    "DescrMetadata": {
      "type": "string"
    }
  }
}