TRANSCRIBE-STREAMING

StartCallAnalyticsStreamTranscription

enum_CallAnalyticsLanguageCode := [ "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR" ]
enum_ContentIdentificationType := [ "PII" ]
enum_ContentRedactionOutput := [ "redacted", "redacted_and_unredacted" ]
enum_ContentRedactionType := [ "PII" ]
enum_MediaEncoding := [ "pcm", "ogg-opus", "flac" ]
enum_PartialResultsStability := [ "high", "medium", "low" ]
enum_ParticipantRole := [ "AGENT", "CUSTOMER" ]
enum_VocabularyFilterMethod := [ "remove", "mask", "tag" ]

valid {
    input.Body.AudioStream.AudioEvent.AudioChunk == BLOB
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ChannelId == INTEGER
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ParticipantRole == enum_ParticipantRole[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputLocation == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.DataAccessRoleArn == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.ContentRedactionOutput == enum_ContentRedactionOutput[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputEncryptionKMSKeyId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartMedicalStreamTranscription

enum_ContentRedactionOutput := [ "redacted", "redacted_and_unredacted" ]
enum_LanguageCode := [ "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" ]
enum_MediaEncoding := [ "pcm", "ogg-opus", "flac" ]
enum_MedicalContentIdentificationType := [ "PHI" ]
enum_ParticipantRole := [ "AGENT", "CUSTOMER" ]
enum_Specialty := [ "PRIMARYCARE", "CARDIOLOGY", "NEUROLOGY", "ONCOLOGY", "RADIOLOGY", "UROLOGY" ]
enum_Type := [ "CONVERSATION", "DICTATION" ]

valid {
    input.Body.AudioStream.AudioEvent.AudioChunk == BLOB
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ChannelId == INTEGER
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ParticipantRole == enum_ParticipantRole[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputLocation == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.DataAccessRoleArn == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.ContentRedactionOutput == enum_ContentRedactionOutput[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputEncryptionKMSKeyId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}

StartStreamTranscription

enum_ContentIdentificationType := [ "PII" ]
enum_ContentRedactionOutput := [ "redacted", "redacted_and_unredacted" ]
enum_ContentRedactionType := [ "PII" ]
enum_LanguageCode := [ "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" ]
enum_MediaEncoding := [ "pcm", "ogg-opus", "flac" ]
enum_PartialResultsStability := [ "high", "medium", "low" ]
enum_ParticipantRole := [ "AGENT", "CUSTOMER" ]
enum_VocabularyFilterMethod := [ "remove", "mask", "tag" ]

valid {
    input.Body.AudioStream.AudioEvent.AudioChunk == BLOB
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ChannelId == INTEGER
    input.Body.AudioStream.ConfigurationEvent.ChannelDefinitions[_].ParticipantRole == enum_ParticipantRole[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputLocation == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.DataAccessRoleArn == STRING
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.ContentRedactionOutput == enum_ContentRedactionOutput[_]
    input.Body.AudioStream.ConfigurationEvent.PostCallAnalyticsSettings.OutputEncryptionKMSKeyId == STRING
    input.ProviderMetadata.Account == STRING
    input.ProviderMetadata.AccessKeyId == STRING
    input.ProviderMetadata.Region == STRING
}