{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transcribe/json-schema/amazon-transcribe-start-call-analytics-stream-transcription-response-schema.json",
  "title": "StartCallAnalyticsStreamTranscriptionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-transcribe-operations-api-openapi.yml#/components/schemas/StartCallAnalyticsStreamTranscriptionResponse",
  "type": "object",
  "properties": {
    "RequestId": {
      "type": "string",
      "description": "Provides the identifier for your real-time Call Analytics request."
    },
    "LanguageCode": {
      "type": "string",
      "enum": [
        "en-US",
        "en-GB",
        "es-US",
        "fr-CA",
        "fr-FR",
        "en-AU",
        "it-IT",
        "de-DE",
        "pt-BR"
      ],
      "description": "Provides the language code that you specified in your Call Analytics request."
    },
    "MediaSampleRateHertz": {
      "type": "integer",
      "description": "Provides the sample rate that you specified in your Call Analytics request."
    },
    "MediaEncoding": {
      "type": "string",
      "enum": [
        "pcm",
        "ogg-opus",
        "flac",
        "g711-alaw",
        "g711-ulaw",
        "g729"
      ],
      "description": "Provides the media encoding you specified in your Call Analytics request."
    },
    "VocabularyName": {
      "type": "string",
      "description": "Provides the name of the custom vocabulary that you specified in your Call Analytics request."
    },
    "SessionId": {
      "type": "string",
      "description": "Provides the identifier for your Call Analytics transcription session."
    },
    "CallAnalyticsTranscriptResultStream": {
      "$ref": "#/$defs/CallAnalyticsTranscriptResultStream"
    },
    "VocabularyFilterName": {
      "type": "string",
      "description": "Provides the name of the custom vocabulary filter that you specified in your Call Analytics request."
    },
    "VocabularyFilterMethod": {
      "type": "string",
      "enum": [
        "remove",
        "mask",
        "tag"
      ],
      "description": "Provides the vocabulary filtering method used in your Call Analytics transcription."
    },
    "LanguageModelName": {
      "type": "string",
      "description": "Provides the name of the custom language model that you specified in your Call Analytics request."
    },
    "IdentifyLanguage": {
      "type": "boolean",
      "description": "Shows whether automatic language identification was enabled for your Call Analytics transcription."
    },
    "LanguageOptions": {
      "type": "string",
      "description": "Provides the language codes that you specified in your Call Analytics request."
    },
    "PreferredLanguage": {
      "type": "string",
      "enum": [
        "en-US",
        "en-GB",
        "es-US",
        "fr-CA",
        "fr-FR",
        "en-AU",
        "it-IT",
        "de-DE",
        "pt-BR"
      ],
      "description": "Provides the preferred language that you specified in your Call Analytics request."
    },
    "VocabularyNames": {
      "type": "string",
      "description": "Provides the names of the custom vocabularies that you specified in your Call Analytics request."
    },
    "VocabularyFilterNames": {
      "type": "string",
      "description": "Provides the names of the custom vocabulary filters that you specified in your Call Analytics request."
    },
    "EnablePartialResultsStabilization": {
      "type": "boolean",
      "description": "Shows whether partial results stabilization was enabled for your Call Analytics transcription."
    },
    "PartialResultsStability": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ],
      "description": "Provides the stabilization level used for your transcription."
    },
    "ContentIdentificationType": {
      "type": "string",
      "enum": [
        "PII"
      ],
      "description": "Shows whether content identification was enabled for your Call Analytics transcription."
    },
    "ContentRedactionType": {
      "type": "string",
      "enum": [
        "PII"
      ],
      "description": "Shows whether content redaction was enabled for your Call Analytics transcription."
    },
    "PiiEntityTypes": {
      "type": "string",
      "description": "Lists the PII entity types you specified in your Call Analytics request."
    }
  },
  "$defs": {
    "BadRequestException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "CallAnalyticsEntity": {
      "type": "object",
      "properties": {
        "BeginOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the start of the identified entity."
        },
        "EndOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the end of the identified entity."
        },
        "Category": {
          "type": "string",
          "description": "The category of information identified. For example, PII."
        },
        "Type": {
          "type": "string",
          "description": "The type of PII identified. For example, NAME or CREDIT_DEBIT_NUMBER."
        },
        "Content": {
          "type": "string",
          "description": "The word or words that represent the identified entity."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence score associated with the identification of an entity in your transcript. Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified entity correctly matches the entity spoken in your media."
        }
      }
    },
    "CallAnalyticsItem": {
      "type": "object",
      "properties": {
        "BeginOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the start of the identified item."
        },
        "EndOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the end of the identified item."
        },
        "Type": {
          "type": "string",
          "enum": [
            "pronunciation",
            "punctuation"
          ],
          "description": "The type of item identified. Options are: PRONUNCIATION (spoken words) and PUNCTUATION."
        },
        "Content": {
          "type": "string",
          "description": "The word or punctuation that was transcribed."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence score associated with a word or phrase in your transcript. Confidence scores are values between 0 and 1. A larger value indicates a higher probability that the identified item correctly matches the item spoken in your media."
        },
        "VocabularyFilterMatch": {
          "type": "boolean",
          "description": "Indicates whether the specified item matches a word in the vocabulary filter included in your Call Analytics request. If true, there is a vocabulary filter match."
        },
        "Stable": {
          "type": "boolean",
          "description": "If partial result stabilization is enabled, Stable indicates whether the specified item is stable (true) or if it may change when the segment is complete (false)."
        }
      }
    },
    "CallAnalyticsLanguageWithScore": {
      "type": "object",
      "properties": {
        "LanguageCode": {
          "type": "string",
          "enum": [
            "en-US",
            "en-GB",
            "es-US",
            "fr-CA",
            "fr-FR",
            "en-AU",
            "it-IT",
            "de-DE",
            "pt-BR"
          ],
          "description": "The language code of the identified language."
        },
        "Score": {
          "type": "number",
          "description": "The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language."
        }
      }
    },
    "CallAnalyticsTranscriptResultStream": {
      "type": "object",
      "properties": {
        "UtteranceEvent": {
          "$ref": "#/$defs/UtteranceEvent"
        },
        "CategoryEvent": {
          "$ref": "#/$defs/CategoryEvent"
        },
        "BadRequestException": {
          "$ref": "#/$defs/BadRequestException"
        },
        "LimitExceededException": {
          "$ref": "#/$defs/LimitExceededException"
        },
        "InternalFailureException": {
          "$ref": "#/$defs/InternalFailureException"
        },
        "ConflictException": {
          "$ref": "#/$defs/ConflictException"
        },
        "ServiceUnavailableException": {
          "$ref": "#/$defs/ServiceUnavailableException"
        }
      },
      "description": "Exactly one member is set."
    },
    "CategoryEvent": {
      "type": "object",
      "properties": {
        "MatchedCategories": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Lists the categories that were matched in your audio segment."
        },
        "MatchedDetails": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/PointsOfInterest"
          },
          "description": "Contains information about the matched categories, including category names and timestamps."
        }
      }
    },
    "CharacterOffsets": {
      "type": "object",
      "properties": {
        "Begin": {
          "type": "integer",
          "description": "Provides the character count of the first character where a match is identified. For example, the first character associated with an issue or a category match in a segment transcript."
        },
        "End": {
          "type": "integer",
          "description": "Provides the character count of the last character where a match is identified. For example, the last character associated with an issue or a category match in a segment transcript."
        }
      }
    },
    "ConflictException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "InternalFailureException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "IssueDetected": {
      "type": "object",
      "properties": {
        "CharacterOffsets": {
          "$ref": "#/$defs/CharacterOffsets"
        }
      }
    },
    "LimitExceededException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "PointsOfInterest": {
      "type": "object",
      "properties": {
        "TimestampRanges": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TimestampRange"
          },
          "description": "Contains the timestamp ranges (start time through end time) of matched categories and rules."
        }
      }
    },
    "ServiceUnavailableException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "TimestampRange": {
      "type": "object",
      "properties": {
        "BeginOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the start of the category match."
        },
        "EndOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the end of the category match."
        }
      }
    },
    "UtteranceEvent": {
      "type": "object",
      "properties": {
        "UtteranceId": {
          "type": "string",
          "description": "The unique identifier that is associated with the specified UtteranceEvent."
        },
        "IsPartial": {
          "type": "boolean",
          "description": "Indicates whether the segment in the UtteranceEvent is complete (FALSE) or partial (TRUE)."
        },
        "ParticipantRole": {
          "type": "string",
          "enum": [
            "AGENT",
            "CUSTOMER"
          ],
          "description": "Provides the role of the speaker for each audio channel, either CUSTOMER or AGENT."
        },
        "BeginOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent."
        },
        "EndOffsetMillis": {
          "type": "integer",
          "description": "The time, in milliseconds, from the beginning of the audio stream to the start of the UtteranceEvent."
        },
        "Transcript": {
          "type": "string",
          "description": "Contains transcribed text."
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CallAnalyticsItem"
          },
          "description": "Contains words, phrases, or punctuation marks that are associated with the specified UtteranceEvent."
        },
        "Entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CallAnalyticsEntity"
          },
          "description": "Contains entities identified as personally identifiable information (PII) in your transcription output."
        },
        "Sentiment": {
          "type": "string",
          "enum": [
            "POSITIVE",
            "NEGATIVE",
            "MIXED",
            "NEUTRAL"
          ],
          "description": "Provides the sentiment that was detected in the specified segment."
        },
        "IssuesDetected": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IssueDetected"
          },
          "description": "Provides the issue that was detected in the specified segment."
        },
        "LanguageCode": {
          "type": "string",
          "enum": [
            "en-US",
            "en-GB",
            "es-US",
            "fr-CA",
            "fr-FR",
            "en-AU",
            "it-IT",
            "de-DE",
            "pt-BR"
          ],
          "description": "The language code that represents the language spoken in your audio stream."
        },
        "LanguageIdentification": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CallAnalyticsLanguageWithScore"
          },
          "description": "The language code of the dominant language identified in your stream."
        }
      }
    }
  }
}