{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-transcribe/json-schema/amazon-transcribe-start-medical-stream-transcription-response-schema.json",
  "title": "StartMedicalStreamTranscriptionResponse",
  "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/StartMedicalStreamTranscriptionResponse",
  "type": "object",
  "properties": {
    "RequestId": {
      "type": "string",
      "description": "Provides the identifier for your streaming request."
    },
    "LanguageCode": {
      "type": "string",
      "enum": [
        "en-US",
        "en-GB",
        "es-US",
        "fr-CA",
        "fr-FR",
        "en-AU",
        "it-IT",
        "de-DE",
        "pt-BR",
        "ja-JP",
        "ko-KR",
        "zh-CN",
        "th-TH",
        "es-ES",
        "ar-SA",
        "pt-PT",
        "ca-ES",
        "ar-AE",
        "hi-IN",
        "zh-HK",
        "nl-NL",
        "no-NO",
        "sv-SE",
        "pl-PL",
        "fi-FI",
        "zh-TW",
        "en-IN",
        "en-IE",
        "en-NZ",
        "en-AB",
        "en-ZA",
        "en-WL",
        "de-CH",
        "af-ZA",
        "eu-ES",
        "hr-HR",
        "cs-CZ",
        "da-DK",
        "fa-IR",
        "gl-ES",
        "el-GR",
        "he-IL",
        "id-ID",
        "lv-LV",
        "ms-MY",
        "ro-RO",
        "ru-RU",
        "sr-RS",
        "sk-SK",
        "so-SO",
        "tl-PH",
        "uk-UA",
        "vi-VN",
        "zu-ZA",
        "am-ET",
        "be-BY",
        "bg-BG",
        "bn-IN",
        "bs-BA",
        "ckb-IQ",
        "ckb-IR",
        "cy-WL",
        "es-MX",
        "et-ET",
        "fa-AF",
        "gu-IN",
        "ht-HT",
        "hu-HU",
        "hy-AM",
        "is-IS",
        "jv-ID",
        "ka-GE",
        "kab-DZ",
        "kk-KZ",
        "km-KH",
        "kn-IN",
        "lg-IN",
        "lt-LT",
        "mk-MK",
        "ml-IN",
        "mr-IN",
        "my-MM",
        "ne-NP",
        "or-IN",
        "pa-IN",
        "ps-AF",
        "si-LK",
        "sl-SI",
        "sq-AL",
        "su-ID",
        "sw-BI",
        "sw-KE",
        "sw-RW",
        "sw-TZ",
        "sw-UG",
        "ta-IN",
        "te-IN",
        "tr-TR",
        "uz-UZ"
      ],
      "description": "Provides the language code that you specified in your request. This must be en-US."
    },
    "MediaSampleRateHertz": {
      "type": "integer",
      "description": "Provides the sample rate that you specified in your request."
    },
    "MediaEncoding": {
      "type": "string",
      "enum": [
        "pcm",
        "ogg-opus",
        "flac",
        "g711-alaw",
        "g711-ulaw",
        "g729"
      ],
      "description": "Provides the media encoding you specified in your request."
    },
    "VocabularyName": {
      "type": "string",
      "description": "Provides the name of the custom vocabulary that you specified in your request."
    },
    "Specialty": {
      "type": "string",
      "enum": [
        "PRIMARYCARE",
        "CARDIOLOGY",
        "NEUROLOGY",
        "ONCOLOGY",
        "RADIOLOGY",
        "UROLOGY"
      ],
      "description": "Provides the medical specialty that you specified in your request."
    },
    "Type": {
      "type": "string",
      "enum": [
        "CONVERSATION",
        "DICTATION"
      ],
      "description": "Provides the type of audio you specified in your request."
    },
    "ShowSpeakerLabel": {
      "type": "boolean",
      "description": "Shows whether speaker partitioning was enabled for your transcription."
    },
    "SessionId": {
      "type": "string",
      "description": "Provides the identifier for your transcription session."
    },
    "TranscriptResultStream": {
      "$ref": "#/$defs/MedicalTranscriptResultStream"
    },
    "EnableChannelIdentification": {
      "type": "boolean",
      "description": "Shows whether channel identification was enabled for your transcription."
    },
    "NumberOfChannels": {
      "type": "integer",
      "description": "Provides the number of channels that you specified in your request."
    },
    "ContentIdentificationType": {
      "type": "string",
      "enum": [
        "PHI"
      ],
      "description": "Shows whether content identification was enabled for your transcription."
    }
  },
  "$defs": {
    "BadRequestException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "ConflictException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "InternalFailureException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "LimitExceededException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "MedicalAlternative": {
      "type": "object",
      "properties": {
        "Transcript": {
          "type": "string",
          "description": "Contains transcribed text."
        },
        "Items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MedicalItem"
          },
          "description": "Contains words, phrases, or punctuation marks in your transcription output."
        },
        "Entities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MedicalEntity"
          },
          "description": "Contains entities identified as personal health information (PHI) in your transcription output."
        }
      }
    },
    "MedicalEntity": {
      "type": "object",
      "properties": {
        "StartTime": {
          "type": "number",
          "description": "The start time, in seconds, of the utterance that was identified as PHI."
        },
        "EndTime": {
          "type": "number",
          "description": "The end time, in seconds, of the utterance that was identified as PHI."
        },
        "Category": {
          "type": "string",
          "description": "The category of information identified. The only category is PHI."
        },
        "Content": {
          "type": "string",
          "description": "The word or words identified as PHI."
        },
        "Confidence": {
          "type": "number",
          "description": "The confidence score associated with the identified PHI entity in your audio. 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."
        }
      }
    },
    "MedicalItem": {
      "type": "object",
      "properties": {
        "StartTime": {
          "type": "number",
          "description": "The start time, in seconds, of the transcribed item."
        },
        "EndTime": {
          "type": "number",
          "description": "The end time, in seconds, of the transcribed 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."
        },
        "Speaker": {
          "type": "string",
          "description": "If speaker partitioning is enabled, Speaker labels the speaker of the specified item."
        }
      }
    },
    "MedicalResult": {
      "type": "object",
      "properties": {
        "ResultId": {
          "type": "string",
          "description": "Provides a unique identifier for the Result."
        },
        "StartTime": {
          "type": "number",
          "description": "The start time, in seconds, of the Result."
        },
        "EndTime": {
          "type": "number",
          "description": "The end time, in seconds, of the Result."
        },
        "IsPartial": {
          "type": "boolean",
          "description": "Indicates if the segment is complete. If IsPartial is true, the segment is not complete. If IsPartial is false, the segment is complete."
        },
        "Alternatives": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MedicalAlternative"
          },
          "description": "A list of possible alternative transcriptions for the input audio. Each alternative may contain one or more of Items, Entities, or Transcript."
        },
        "ChannelId": {
          "type": "string",
          "description": "Indicates the channel identified for the Result."
        }
      }
    },
    "MedicalTranscriptEvent": {
      "type": "object",
      "properties": {
        "Transcript": {
          "$ref": "#/$defs/TranscribestreamingMedicalTranscript"
        }
      }
    },
    "MedicalTranscriptResultStream": {
      "type": "object",
      "properties": {
        "TranscriptEvent": {
          "$ref": "#/$defs/MedicalTranscriptEvent"
        },
        "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."
    },
    "ServiceUnavailableException": {
      "type": "object",
      "properties": {
        "Message": {
          "type": "string"
        }
      }
    },
    "TranscribestreamingMedicalTranscript": {
      "type": "object",
      "properties": {
        "Results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MedicalResult"
          },
          "description": "Contains a set of transcription results from one or more audio segments, along with additional information per your request parameters. This can include information relating to alternative transcriptions, channel identification, partial result stabilization, language identification, and other transcription-related data."
        }
      }
    }
  }
}