import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartCallAnalyticsStreamTranscriptionRequest, StartCallAnalyticsStreamTranscriptionResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartCallAnalyticsStreamTranscriptionCommand}. */ export interface StartCallAnalyticsStreamTranscriptionCommandInput extends StartCallAnalyticsStreamTranscriptionRequest { } /** * @public * * The output of {@link StartCallAnalyticsStreamTranscriptionCommand}. */ export interface StartCallAnalyticsStreamTranscriptionCommandOutput extends StartCallAnalyticsStreamTranscriptionResponse, __MetadataBearer { } declare const StartCallAnalyticsStreamTranscriptionCommand_base: { new (input: StartCallAnalyticsStreamTranscriptionCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartCallAnalyticsStreamTranscriptionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Starts a bidirectional HTTP/2 or WebSocket stream where audio is streamed to * Amazon Transcribe and the transcription results are streamed to your application. Use this operation * for Call Analytics transcriptions.

*

The following parameters are required:

* *

For more information on streaming with Amazon Transcribe, see Transcribing streaming audio.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { TranscribeStreamingClient, StartCallAnalyticsStreamTranscriptionCommand } from "@aws-sdk/client-transcribe-streaming"; // ES Modules import * // const { TranscribeStreamingClient, StartCallAnalyticsStreamTranscriptionCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import * // import type { TranscribeStreamingClientConfig } from "@aws-sdk/client-transcribe-streaming"; * const config = {}; // type is TranscribeStreamingClientConfig * const client = new TranscribeStreamingClient(config); * const input = { // StartCallAnalyticsStreamTranscriptionRequest * LanguageCode: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * MediaSampleRateHertz: Number("int"), // required * MediaEncoding: "pcm" || "ogg-opus" || "flac" || "g711-alaw" || "g711-ulaw" || "g729", // required * VocabularyName: "STRING_VALUE", * SessionId: "STRING_VALUE", * AudioStream: { // AudioStream Union: only one key present * AudioEvent: { // AudioEvent * AudioChunk: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * }, * ConfigurationEvent: { // ConfigurationEvent * ChannelDefinitions: [ // ChannelDefinitions * { // ChannelDefinition * ChannelId: Number("int"), // required * ParticipantRole: "AGENT" || "CUSTOMER", // required * }, * ], * PostCallAnalyticsSettings: { // PostCallAnalyticsSettings * OutputLocation: "STRING_VALUE", // required * DataAccessRoleArn: "STRING_VALUE", // required * ContentRedactionOutput: "redacted" || "redacted_and_unredacted", * OutputEncryptionKMSKeyId: "STRING_VALUE", * }, * }, * }, * VocabularyFilterName: "STRING_VALUE", * VocabularyFilterMethod: "remove" || "mask" || "tag", * LanguageModelName: "STRING_VALUE", * IdentifyLanguage: true || false, * LanguageOptions: "STRING_VALUE", * PreferredLanguage: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * VocabularyNames: "STRING_VALUE", * VocabularyFilterNames: "STRING_VALUE", * EnablePartialResultsStabilization: true || false, * PartialResultsStability: "high" || "medium" || "low", * ContentIdentificationType: "PII", * ContentRedactionType: "PII", * PiiEntityTypes: "STRING_VALUE", * }; * const command = new StartCallAnalyticsStreamTranscriptionCommand(input); * const response = await client.send(command); * // { // StartCallAnalyticsStreamTranscriptionResponse * // RequestId: "STRING_VALUE", * // LanguageCode: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * // MediaSampleRateHertz: Number("int"), * // MediaEncoding: "pcm" || "ogg-opus" || "flac" || "g711-alaw" || "g711-ulaw" || "g729", * // VocabularyName: "STRING_VALUE", * // SessionId: "STRING_VALUE", * // CallAnalyticsTranscriptResultStream: { // CallAnalyticsTranscriptResultStream Union: only one key present * // UtteranceEvent: { // UtteranceEvent * // UtteranceId: "STRING_VALUE", * // IsPartial: true || false, * // ParticipantRole: "AGENT" || "CUSTOMER", * // BeginOffsetMillis: Number("long"), * // EndOffsetMillis: Number("long"), * // Transcript: "STRING_VALUE", * // Items: [ // CallAnalyticsItemList * // { // CallAnalyticsItem * // BeginOffsetMillis: Number("long"), * // EndOffsetMillis: Number("long"), * // Type: "pronunciation" || "punctuation", * // Content: "STRING_VALUE", * // Confidence: Number("double"), * // VocabularyFilterMatch: true || false, * // Stable: true || false, * // }, * // ], * // Entities: [ // CallAnalyticsEntityList * // { // CallAnalyticsEntity * // BeginOffsetMillis: Number("long"), * // EndOffsetMillis: Number("long"), * // Category: "STRING_VALUE", * // Type: "STRING_VALUE", * // Content: "STRING_VALUE", * // Confidence: Number("double"), * // }, * // ], * // Sentiment: "POSITIVE" || "NEGATIVE" || "MIXED" || "NEUTRAL", * // IssuesDetected: [ // IssuesDetected * // { // IssueDetected * // CharacterOffsets: { // CharacterOffsets * // Begin: Number("int"), * // End: Number("int"), * // }, * // }, * // ], * // LanguageCode: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * // LanguageIdentification: [ // CallAnalyticsLanguageIdentification * // { // CallAnalyticsLanguageWithScore * // LanguageCode: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * // Score: Number("double"), * // }, * // ], * // }, * // CategoryEvent: { // CategoryEvent * // MatchedCategories: [ // StringList * // "STRING_VALUE", * // ], * // MatchedDetails: { // MatchedCategoryDetails * // "": { // PointsOfInterest * // TimestampRanges: [ // TimestampRanges * // { // TimestampRange * // BeginOffsetMillis: Number("long"), * // EndOffsetMillis: Number("long"), * // }, * // ], * // }, * // }, * // }, * // BadRequestException: { // BadRequestException * // Message: "STRING_VALUE", * // }, * // LimitExceededException: { // LimitExceededException * // Message: "STRING_VALUE", * // }, * // InternalFailureException: { // InternalFailureException * // Message: "STRING_VALUE", * // }, * // ConflictException: { // ConflictException * // Message: "STRING_VALUE", * // }, * // ServiceUnavailableException: { // ServiceUnavailableException * // Message: "STRING_VALUE", * // }, * // }, * // VocabularyFilterName: "STRING_VALUE", * // VocabularyFilterMethod: "remove" || "mask" || "tag", * // LanguageModelName: "STRING_VALUE", * // IdentifyLanguage: true || false, * // LanguageOptions: "STRING_VALUE", * // PreferredLanguage: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR", * // VocabularyNames: "STRING_VALUE", * // VocabularyFilterNames: "STRING_VALUE", * // EnablePartialResultsStabilization: true || false, * // PartialResultsStability: "high" || "medium" || "low", * // ContentIdentificationType: "PII", * // ContentRedactionType: "PII", * // PiiEntityTypes: "STRING_VALUE", * // }; * * ``` * * @param StartCallAnalyticsStreamTranscriptionCommandInput - {@link StartCallAnalyticsStreamTranscriptionCommandInput} * @returns {@link StartCallAnalyticsStreamTranscriptionCommandOutput} * @see {@link StartCallAnalyticsStreamTranscriptionCommandInput} for command's `input` shape. * @see {@link StartCallAnalyticsStreamTranscriptionCommandOutput} for command's `response` shape. * @see {@link TranscribeStreamingClientResolvedConfig | config} for TranscribeStreamingClient's `config` shape. * * @throws {@link BadRequestException} (client fault) *

One or more arguments to the StartStreamTranscription, * StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription * operation was not valid. For example, MediaEncoding or LanguageCode * used unsupported values. Check the specified parameters and try your request again.

* * @throws {@link ConflictException} (client fault) *

A new stream started with the same session ID. The current stream has been terminated.

* * @throws {@link InternalFailureException} (server fault) *

A problem occurred while processing the audio. Amazon Transcribe terminated * processing.

* * @throws {@link LimitExceededException} (client fault) *

Your client has exceeded one of the Amazon Transcribe limits, typically the concurrent stream * service quota. This error can also occur if a stream exceeds the maximum session duration. In rare * cases, this error can also occur if you increase your number of concurrent streams too quickly. * Reduce your number of concurrent streams and try your request again using an exponential backoff * strategy.

* * @throws {@link ServiceUnavailableException} (server fault) *

The service is currently unavailable. Try your request later.

* * @throws {@link TranscribeStreamingServiceException} *

Base exception class for all service exceptions from TranscribeStreaming service.

* * * @public */ export declare class StartCallAnalyticsStreamTranscriptionCommand extends StartCallAnalyticsStreamTranscriptionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartCallAnalyticsStreamTranscriptionRequest; output: StartCallAnalyticsStreamTranscriptionResponse; }; sdk: { input: StartCallAnalyticsStreamTranscriptionCommandInput; output: StartCallAnalyticsStreamTranscriptionCommandOutput; }; }; }