{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/webex/json-schema/webex-get-location-call-recording-announcement-object-schema.json",
  "title": "GetLocationCallRecordingAnnouncementObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/webex-features-call-recording-api-openapi.yml#/components/schemas/GetLocationCallRecordingAnnouncementObject",
  "type": "object",
  "required": [
    "useOrgLevelAnnouncementEnabled",
    "start",
    "stop",
    "pause",
    "resume",
    "failureEndWithCall",
    "failureProceedWithCall"
  ],
  "properties": {
    "useOrgLevelAnnouncementEnabled": {
      "type": "boolean",
      "description": "Flag to indicate whether to use the organization level call recording announcement settings. If the flag is set to true, indicates that the callRecordingAnnouncementSelection setting is inherited from the organization-level configuration. If the flag is set to false, indicates that the callRecordingAnnouncementSelection setting is customized at the location level."
    },
    "start": {
      "type": "object",
      "description": "The start announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    },
    "stop": {
      "type": "object",
      "description": "The stop announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    },
    "pause": {
      "type": "object",
      "description": "The pause announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    },
    "resume": {
      "type": "object",
      "description": "The resume announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    },
    "failureProceedWithCall": {
      "type": "object",
      "description": "The failure proceed with call announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    },
    "failureEndWithCall": {
      "type": "object",
      "description": "The failure end with call announcement settings for this location.",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "DEFAULT"
          ],
          "description": "Type of announcement file to be played.\n * `CUSTOM` - Custom announcement file.\n * `DEFAULT` - Default announcement file.\n"
        },
        "audioAnnouncementFile": {
          "type": "object",
          "description": "The custom audio announcement file to be played.",
          "properties": {
            "id": {
              "type": "string",
              "description": "Unique identifier for the custom audio announcement file."
            },
            "fileName": {
              "type": "string",
              "description": "The original file name of the uploaded custom audio announcement."
            },
            "mediaFileType": {
              "type": "string",
              "enum": [
                "WAV"
              ],
              "description": "Type of the announcement file. Type is an enum with supported values WAV"
            },
            "level": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "LOCATION"
              ],
              "description": "Announcement audio file level."
            },
            "isTextToSpeech": {
              "type": "boolean",
              "description": "Indicates if the announcement is created by TTS."
            }
          }
        }
      }
    }
  }
}