{ "$id":                              "https://schemas.mpai.community/TFA/V1.5/data/SpeechQualifier.json",
  "$schema":                          "https://json-schema.org/draft/2020-12/schema",

  "title":                            "Speech Qualifier V1.5",
  "description":                      "Qualifier describing the characteristics, structure, and provenance of speech data.",
                                      "type": "object", "required": [ "Header", "SpeechQualifierID", "SubType", "Format" ], 
                                      "additionalProperties": false, "properties": {

    "Header":                         { "type": "string", "pattern": "^TFA-SPQ-V[0-9]{1,2}[.][0-9]{1,2}$" },

    "SpeechQualifierID":              { "type": "string" },

    "SubType":                        { "type": "string" },

    "Format":                         { "type": "object", "additionalProperties": false, "properties": {

      "ContentFormats":               { "type": "object", "additionalProperties": false, "properties": {

        "RawData":                    { "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/PCM.json" },

        "OtherContentFormats":        { "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/SpeechContentFormats.json" } } },

      "TransportFormats":             { "type": "object", "additionalProperties": false, "properties": {

        "FileFormat":                 { "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/SpeechFileFormats.json" },

        "StreamFormat":               { "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/SpeechStreamFormats.json" } } } } },

    "Attributes":                     { "type": "object", "additionalProperties": false, "properties": {

      "Source":                       { "type": "string", "enum": [ "Real", "Synthetic" ] },

      "Metadata":                     { "type": "object", "additionalProperties": false, "properties": {

        "Language":                   { "type": "object", "additionalProperties": false, "properties": {

          "LanguageFormat":           { "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/LanguageFormats.json" },
          "LanguageCode":             { "type": "string" } } },

        "SpeakerIdentity":            { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/InstanceIdentifier.json" },

        "ContentDescription":         { "type": "object", "additionalProperties": false, "properties": {

          "TextObject":               { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/TextObject.json" },

          "EntityInternalStatus":     { "$ref": "https://schemas.mpai.community/MMC/V2.4/data/PersonalStatus.json" } } } } },

      "Device":                       { "type": "object", "additionalProperties": false, "properties": {

        "DeviceID":                   { "type": "string" },

        "DeviceLocation":             { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/PointOfView.json" },

        "MicrophoneDirectivityFormat":{ "$ref": "https://schemas.mpai.community/TFA/V1.5/formats/MicrophoneDirectivityFormats.json" },

        "DeviceSceneGeometry":        { "$ref": "https://schemas.mpai.community/OSD/V1.5/data/DeviceSceneGeometry.json" } } } } },

    "DataExchangeMetadata":           { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/DataExchangeMetadata.json" },
    "Trace":                          { "$ref": "https://schemas.mpai.community/AIF/V3.0/data/Trace.json" },
    "DescrMetadata":                  { "type": "string", "maxLength": 2048 } } }