@aws-sdk/client-transcribe-streaming 3.42.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ export interface Entity {
12
12
  */
13
13
  EndTime?: number;
14
14
  /**
15
- * <p>The category of of information identified in this entity; for example, PII.</p>
15
+ * <p>The category of information identified in this entity; for example, PII.</p>
16
16
  */
17
17
  Category?: string;
18
18
  /**
@@ -53,9 +53,9 @@ export interface Item {
53
53
  */
54
54
  EndTime?: number;
55
55
  /**
56
- * <p>The type of the item. <code>PRONUNCIATION</code> indicates that the item is a word that
57
- * was recognized in the input audio. <code>PUNCTUATION</code> indicates that the item was
58
- * interpreted as a pause in the input audio.</p>
56
+ * <p>The type of the item. <code>PRONUNCIATION</code> indicates that the item is a word
57
+ * that was recognized in the input audio. <code>PUNCTUATION</code> indicates that the item
58
+ * was interpreted as a pause in the input audio.</p>
59
59
  */
60
60
  Type?: ItemType | string;
61
61
  /**
@@ -64,17 +64,17 @@ export interface Item {
64
64
  Content?: string;
65
65
  /**
66
66
  * <p>Indicates whether a word in the item matches a word in the vocabulary filter you've chosen
67
- * for your real-time stream. If <code>true</code> then a word in the item matches your
67
+ * for your media stream. If <code>true</code> then a word in the item matches your
68
68
  * vocabulary filter.</p>
69
69
  */
70
70
  VocabularyFilterMatch?: boolean;
71
71
  /**
72
- * <p>If speaker identification is enabled, shows the speakers identified in the real-time
72
+ * <p>If speaker identification is enabled, shows the speakers identified in the media
73
73
  * stream.</p>
74
74
  */
75
75
  Speaker?: string;
76
76
  /**
77
- * <p>A value between 0 and 1 for an item that is a confidence score that Amazon Transcribe assigns to each
77
+ * <p>A value between zero and one for an item that is a confidence score that Amazon Transcribe assigns to each
78
78
  * word or phrase that it transcribes.</p>
79
79
  */
80
80
  Confidence?: number;
@@ -175,12 +175,6 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
175
175
  $fault: "client";
176
176
  Message?: string;
177
177
  }
178
- export declare namespace BadRequestException {
179
- /**
180
- * @internal
181
- */
182
- const filterSensitiveLog: (obj: BadRequestException) => any;
183
- }
184
178
  /**
185
179
  * <p>A new stream started with the same session ID. The current stream has been
186
180
  * terminated.</p>
@@ -190,12 +184,6 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
190
184
  $fault: "client";
191
185
  Message?: string;
192
186
  }
193
- export declare namespace ConflictException {
194
- /**
195
- * @internal
196
- */
197
- const filterSensitiveLog: (obj: ConflictException) => any;
198
- }
199
187
  export declare enum ContentIdentificationType {
200
188
  PII = "PII"
201
189
  }
@@ -211,12 +199,6 @@ export interface InternalFailureException extends __SmithyException, $MetadataBe
211
199
  $fault: "server";
212
200
  Message?: string;
213
201
  }
214
- export declare namespace InternalFailureException {
215
- /**
216
- * @internal
217
- */
218
- const filterSensitiveLog: (obj: InternalFailureException) => any;
219
- }
220
202
  export declare enum LanguageCode {
221
203
  DE_DE = "de-DE",
222
204
  EN_AU = "en-AU",
@@ -231,6 +213,29 @@ export declare enum LanguageCode {
231
213
  PT_BR = "pt-BR",
232
214
  ZH_CN = "zh-CN"
233
215
  }
216
+ /**
217
+ * <p>The language codes of the identified languages and their associated confidence scores.
218
+ * The confidence score is a value between zero and one; a larger value indicates a higher
219
+ * confidence in the identified language.</p>
220
+ */
221
+ export interface LanguageWithScore {
222
+ /**
223
+ * <p>The language code of the language identified by Amazon Transcribe.</p>
224
+ */
225
+ LanguageCode?: LanguageCode | string;
226
+ /**
227
+ * <p>The confidence score for the associated language code. Confidence scores are values
228
+ * between zero and one; larger values indicate a higher confidence in the identified language.
229
+ * </p>
230
+ */
231
+ Score?: number;
232
+ }
233
+ export declare namespace LanguageWithScore {
234
+ /**
235
+ * @internal
236
+ */
237
+ const filterSensitiveLog: (obj: LanguageWithScore) => any;
238
+ }
234
239
  /**
235
240
  * <p>You have exceeded the maximum number of concurrent transcription streams, are starting
236
241
  * transcription streams too quickly, or the maximum audio length of 4 hours. Wait until a stream
@@ -242,12 +247,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
242
247
  $fault: "client";
243
248
  Message?: string;
244
249
  }
245
- export declare namespace LimitExceededException {
246
- /**
247
- * @internal
248
- */
249
- const filterSensitiveLog: (obj: LimitExceededException) => any;
250
- }
251
250
  export declare enum MediaEncoding {
252
251
  FLAC = "flac",
253
252
  OGG_OPUS = "ogg-opus",
@@ -448,12 +447,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
448
447
  $fault: "server";
449
448
  Message?: string;
450
449
  }
451
- export declare namespace ServiceUnavailableException {
452
- /**
453
- * @internal
454
- */
455
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
456
- }
457
450
  /**
458
451
  * <p>Represents the transcription result stream from Amazon Transcribe Medical to your application.</p>
459
452
  */
@@ -599,7 +592,7 @@ export interface Result {
599
592
  IsPartial?: boolean;
600
593
  /**
601
594
  * <p>A list of possible transcriptions for the audio. Each alternative typically contains one
602
- * <code>item</code> that contains the result of the transcription.</p>
595
+ * <code>item</code> that contains the result of the transcription.</p>
603
596
  */
604
597
  Alternatives?: Alternative[];
605
598
  /**
@@ -609,6 +602,14 @@ export interface Result {
609
602
  * channel in your audio stream.</p>
610
603
  */
611
604
  ChannelId?: string;
605
+ /**
606
+ * <p>The language code of the identified language in your media stream.</p>
607
+ */
608
+ LanguageCode?: LanguageCode | string;
609
+ /**
610
+ * <p>The language code of the dominant language identified in your media.</p>
611
+ */
612
+ LanguageIdentification?: LanguageWithScore[];
612
613
  }
613
614
  export declare namespace Result {
614
615
  /**
@@ -767,12 +768,12 @@ export declare enum VocabularyFilterMethod {
767
768
  }
768
769
  export interface StartStreamTranscriptionRequest {
769
770
  /**
770
- * <p>Indicates the source language used in the input audio stream.</p>
771
+ * <p>The language code of the input audio stream.</p>
771
772
  */
772
- LanguageCode: LanguageCode | string | undefined;
773
+ LanguageCode?: LanguageCode | string;
773
774
  /**
774
- * <p>The sample rate, in Hertz, of the input audio. We suggest that you use 8,000 Hz for low
775
- * quality audio and 16,000 Hz for high quality audio.</p>
775
+ * <p>The sample rate, in Hertz (Hz), of the input audio. We suggest that you use 8,000 Hz
776
+ * for low quality audio and 16,000 Hz or higher for high quality audio.</p>
776
777
  */
777
778
  MediaSampleRateHertz: number | undefined;
778
779
  /**
@@ -801,24 +802,24 @@ export interface StartStreamTranscriptionRequest {
801
802
  VocabularyFilterName?: string;
802
803
  /**
803
804
  * <p>The manner in which you use your vocabulary filter to filter words in your transcript.
804
- * <code>Remove</code> removes filtered words from your transcription results.
805
- * <code>Mask</code> masks filtered words with a <code>***</code> in your transcription results.
806
- * <code>Tag</code> keeps the filtered words in your transcription results and tags them. The
807
- * tag appears as <code>VocabularyFilterMatch</code> equal to <code>True</code>
808
- * </p>
805
+ * <code>Remove</code> removes filtered words from your transcription results.
806
+ * <code>Mask</code> masks filtered words with a <code>***</code> in your transcription
807
+ * results. <code>Tag</code> keeps the filtered words in your transcription results and tags
808
+ * them. The tag appears as <code>VocabularyFilterMatch</code> equal to
809
+ * <code>True</code>.</p>
809
810
  */
810
811
  VocabularyFilterMethod?: VocabularyFilterMethod | string;
811
812
  /**
812
- * <p>When <code>true</code>, enables speaker identification in your real-time stream.</p>
813
+ * <p>When <code>true</code>, enables speaker identification in your media stream.</p>
813
814
  */
814
815
  ShowSpeakerLabel?: boolean;
815
816
  /**
816
- * <p>When <code>true</code>, instructs Amazon Transcribe to process each audio channel separately and then
817
- * merge the transcription output of each channel into a single transcription.</p>
817
+ * <p>When <code>true</code>, instructs Amazon Transcribe to process each audio channel separately,
818
+ * then merges the transcription output of each channel into a single transcription.</p>
818
819
  * <p>Amazon Transcribe also produces a transcription of each item. An item includes the start time, end
819
820
  * time, and any alternative transcriptions.</p>
820
821
  * <p>You can't set both <code>ShowSpeakerLabel</code> and
821
- * <code>EnableChannelIdentification</code> in the same request. If you set both, your request
822
+ * <code>EnableChannelIdentification</code> in the same request. If you set both, your request
822
823
  * returns a <code>BadRequestException</code>.</p>
823
824
  */
824
825
  EnableChannelIdentification?: boolean;
@@ -840,26 +841,66 @@ export interface StartStreamTranscriptionRequest {
840
841
  */
841
842
  PartialResultsStability?: PartialResultsStability | string;
842
843
  /**
843
- * <p>Set this field to PII to identify personally identifiable information (PII) in the transcription output. Content identification is performed only upon complete transcription of the audio segments.</p>
844
- * <p>You can’t set both <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
844
+ * <p>Set this field to PII to identify personally identifiable information (PII) in the transcription
845
+ * output. Content identification is performed only upon complete transcription of the audio
846
+ * segments.</p>
847
+ * <p>You can’t set both <code>ContentIdentificationType</code> and
848
+ * <code>ContentRedactionType</code> in the same request. If you set both, your request
849
+ * returns a <code>BadRequestException</code>.</p>
845
850
  */
846
851
  ContentIdentificationType?: ContentIdentificationType | string;
847
852
  /**
848
- * <p>Set this field to PII to redact personally identifiable information (PII) in the transcription output. Content redaction is performed only upon complete transcription of the audio segments.</p>
849
- * <p>You can’t set both <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
853
+ * <p>Set this field to PII to redact personally identifiable information (PII) in the transcription
854
+ * output. Content redaction is performed only upon complete transcription of the audio
855
+ * segments.</p>
856
+ * <p>You can’t set both <code>ContentRedactionType</code> and
857
+ * <code>ContentIdentificationType</code> in the same request. If you set both, your request
858
+ * returns a <code>BadRequestException</code>.</p>
850
859
  */
851
860
  ContentRedactionType?: ContentRedactionType | string;
852
861
  /**
853
- * <p>List the PII entity types you want to identify or redact. In order to specify entity types, you must have
854
- * either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code> enabled.</p>
862
+ * <p>List the PII entity types you want to identify or redact. In order to specify entity types,
863
+ * you must have either <code>ContentIdentificationType</code> or
864
+ * <code>ContentRedactionType</code> enabled.</p>
865
+ * <p>
866
+ * <code>PIIEntityTypes</code> must be comma-separated; the available values are:
867
+ * <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>,
868
+ * <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>,
869
+ * <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>,
870
+ * <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>,
871
+ * <code>SSN</code>, and <code>ALL</code>.</p>
855
872
  * <p>
856
- * <code>PiiEntityTypes</code> is an optional parameter with a default value of <code>ALL</code>.</p>
873
+ * <code>PiiEntityTypes</code> is an optional parameter with a default value of
874
+ * <code>ALL</code>.</p>
857
875
  */
858
876
  PiiEntityTypes?: string;
859
877
  /**
860
878
  * <p>The name of the language model you want to use.</p>
861
879
  */
862
880
  LanguageModelName?: string;
881
+ /**
882
+ * <p>Optional. Set this value to <code>true</code> to enable language identification for
883
+ * your media stream.</p>
884
+ */
885
+ IdentifyLanguage?: boolean;
886
+ /**
887
+ * <p>An object containing a list of languages that might be present in your audio.</p>
888
+ * <p>You must provide two or more language codes to help Amazon Transcribe identify the correct
889
+ * language of your media stream with the highest possible accuracy. You can only select one
890
+ * variant per language; for example, you can't include both <code>en-US</code> and
891
+ * <code>en-UK</code> in the same request.</p>
892
+ * <p>You can only use this parameter if you've set <code>IdentifyLanguage</code> to
893
+ * <code>true</code>in your request.</p>
894
+ */
895
+ LanguageOptions?: string;
896
+ /**
897
+ * <p>Optional. From the subset of languages codes you provided for
898
+ * <code>LanguageOptions</code>, you can select one preferred language for your
899
+ * transcription.</p>
900
+ * <p>You can only use this parameter if you've set <code>IdentifyLanguage</code> to
901
+ * <code>true</code>in your request.</p>
902
+ */
903
+ PreferredLanguage?: LanguageCode | string;
863
904
  }
864
905
  export declare namespace StartStreamTranscriptionRequest {
865
906
  /**
@@ -909,8 +950,7 @@ export declare namespace TranscriptResultStream {
909
950
  /**
910
951
  * <p>A portion of the transcription of the audio stream. Events are sent periodically from
911
952
  * Amazon Transcribe to your application. The event can be a partial transcription of a section of the audio
912
- * stream, or it can be the entire transcription of that portion of the audio stream.
913
- * </p>
953
+ * stream, or it can be the entire transcription of that portion of the audio stream. </p>
914
954
  */
915
955
  interface TranscriptEventMember {
916
956
  TranscriptEvent: TranscriptEvent;
@@ -1014,12 +1054,12 @@ export interface StartStreamTranscriptionResponse {
1014
1054
  */
1015
1055
  RequestId?: string;
1016
1056
  /**
1017
- * <p>The language code for the input audio stream.</p>
1057
+ * <p>The language code of the input audio stream.</p>
1018
1058
  */
1019
1059
  LanguageCode?: LanguageCode | string;
1020
1060
  /**
1021
- * <p>The sample rate for the input audio stream. Use 8,000 Hz for low quality audio and 16,000 Hz
1022
- * for high quality audio.</p>
1061
+ * <p>The sample rate, in Hertz (Hz), for the input audio stream. Use 8,000 Hz for low quality
1062
+ * audio and 16,000 Hz or higher for high quality audio.</p>
1023
1063
  */
1024
1064
  MediaSampleRateHertz?: number;
1025
1065
  /**
@@ -1039,11 +1079,11 @@ export interface StartStreamTranscriptionResponse {
1039
1079
  */
1040
1080
  TranscriptResultStream?: AsyncIterable<TranscriptResultStream>;
1041
1081
  /**
1042
- * <p>The name of the vocabulary filter used in your real-time stream.</p>
1082
+ * <p>The name of the vocabulary filter used in your media stream.</p>
1043
1083
  */
1044
1084
  VocabularyFilterName?: string;
1045
1085
  /**
1046
- * <p>The vocabulary filtering method used in the real-time stream.</p>
1086
+ * <p>The vocabulary filtering method used in the media stream.</p>
1047
1087
  */
1048
1088
  VocabularyFilterMethod?: VocabularyFilterMethod | string;
1049
1089
  /**
@@ -1079,7 +1119,23 @@ export interface StartStreamTranscriptionResponse {
1079
1119
  * <p>Lists the PII entity types you specified in your request.</p>
1080
1120
  */
1081
1121
  PiiEntityTypes?: string;
1122
+ /**
1123
+ * <p>The name of the language model used in your media stream.</p>
1124
+ */
1082
1125
  LanguageModelName?: string;
1126
+ /**
1127
+ * <p>The language code of the language identified in your media stream.</p>
1128
+ */
1129
+ IdentifyLanguage?: boolean;
1130
+ /**
1131
+ * <p>The language codes used in the identification of your media stream's predominant
1132
+ * language.</p>
1133
+ */
1134
+ LanguageOptions?: string;
1135
+ /**
1136
+ * <p>The preferred language you specified in your request.</p>
1137
+ */
1138
+ PreferredLanguage?: LanguageCode | string;
1083
1139
  }
1084
1140
  export declare namespace StartStreamTranscriptionResponse {
1085
1141
  /**
@@ -5,6 +5,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -14,7 +15,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
15
16
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
16
17
  region: string | import("@aws-sdk/types").Provider<any>;
17
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
18
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
18
19
  retryMode: string | import("@aws-sdk/types").Provider<string>;
19
20
  sha256: import("@aws-sdk/types").HashConstructor;
20
21
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -5,10 +5,11 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
14
15
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -6,7 +6,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
6
6
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
7
7
  runtime: string;
8
8
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
9
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
9
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
10
10
  sha256: import("@aws-sdk/types").HashConstructor;
11
11
  apiVersion: string;
12
12
  urlParser: import("@aws-sdk/types").UrlParser;
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
28
28
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
29
29
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
30
30
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
31
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
31
32
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
32
33
  tls?: boolean | undefined;
33
34
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -7,7 +7,7 @@ import { WebSocketInputConfig, WebSocketResolvedConfig } from "@aws-sdk/middlewa
7
7
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
8
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
9
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
10
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
11
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
12
  import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "./commands/StartMedicalStreamTranscriptionCommand";
13
13
  import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "./commands/StartStreamTranscriptionCommand";
@@ -60,6 +60,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
60
60
  defaultUserAgentProvider?: Provider<__UserAgent>;
61
61
 
62
62
  eventStreamSerdeProvider?: __EventStreamSerdeProvider;
63
+
64
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
63
65
  }
64
66
  declare type TranscribeStreamingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & EventStreamInputConfig & WebSocketInputConfig & UserAgentInputConfig & EventStreamSerdeInputConfig;
65
67
 
@@ -96,20 +96,12 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
96
96
  $fault: "client";
97
97
  Message?: string;
98
98
  }
99
- export declare namespace BadRequestException {
100
-
101
- const filterSensitiveLog: (obj: BadRequestException) => any;
102
- }
103
99
 
104
100
  export interface ConflictException extends __SmithyException, $MetadataBearer {
105
101
  name: "ConflictException";
106
102
  $fault: "client";
107
103
  Message?: string;
108
104
  }
109
- export declare namespace ConflictException {
110
-
111
- const filterSensitiveLog: (obj: ConflictException) => any;
112
- }
113
105
  export declare enum ContentIdentificationType {
114
106
  PII = "PII"
115
107
  }
@@ -122,10 +114,6 @@ export interface InternalFailureException extends __SmithyException, $MetadataBe
122
114
  $fault: "server";
123
115
  Message?: string;
124
116
  }
125
- export declare namespace InternalFailureException {
126
-
127
- const filterSensitiveLog: (obj: InternalFailureException) => any;
128
- }
129
117
  export declare enum LanguageCode {
130
118
  DE_DE = "de-DE",
131
119
  EN_AU = "en-AU",
@@ -141,15 +129,22 @@ export declare enum LanguageCode {
141
129
  ZH_CN = "zh-CN"
142
130
  }
143
131
 
132
+ export interface LanguageWithScore {
133
+
134
+ LanguageCode?: LanguageCode | string;
135
+
136
+ Score?: number;
137
+ }
138
+ export declare namespace LanguageWithScore {
139
+
140
+ const filterSensitiveLog: (obj: LanguageWithScore) => any;
141
+ }
142
+
144
143
  export interface LimitExceededException extends __SmithyException, $MetadataBearer {
145
144
  name: "LimitExceededException";
146
145
  $fault: "client";
147
146
  Message?: string;
148
147
  }
149
- export declare namespace LimitExceededException {
150
-
151
- const filterSensitiveLog: (obj: LimitExceededException) => any;
152
- }
153
148
  export declare enum MediaEncoding {
154
149
  FLAC = "flac",
155
150
  OGG_OPUS = "ogg-opus",
@@ -250,10 +245,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
250
245
  $fault: "server";
251
246
  Message?: string;
252
247
  }
253
- export declare namespace ServiceUnavailableException {
254
-
255
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
256
- }
257
248
 
258
249
  export declare type MedicalTranscriptResultStream = MedicalTranscriptResultStream.BadRequestExceptionMember | MedicalTranscriptResultStream.ConflictExceptionMember | MedicalTranscriptResultStream.InternalFailureExceptionMember | MedicalTranscriptResultStream.LimitExceededExceptionMember | MedicalTranscriptResultStream.ServiceUnavailableExceptionMember | MedicalTranscriptResultStream.TranscriptEventMember | MedicalTranscriptResultStream.$UnknownMember;
259
250
  export declare namespace MedicalTranscriptResultStream {
@@ -361,6 +352,10 @@ export interface Result {
361
352
  Alternatives?: Alternative[];
362
353
 
363
354
  ChannelId?: string;
355
+
356
+ LanguageCode?: LanguageCode | string;
357
+
358
+ LanguageIdentification?: LanguageWithScore[];
364
359
  }
365
360
  export declare namespace Result {
366
361
 
@@ -447,7 +442,7 @@ export declare enum VocabularyFilterMethod {
447
442
  }
448
443
  export interface StartStreamTranscriptionRequest {
449
444
 
450
- LanguageCode: LanguageCode | string | undefined;
445
+ LanguageCode?: LanguageCode | string;
451
446
 
452
447
  MediaSampleRateHertz: number | undefined;
453
448
 
@@ -480,6 +475,12 @@ export interface StartStreamTranscriptionRequest {
480
475
  PiiEntityTypes?: string;
481
476
 
482
477
  LanguageModelName?: string;
478
+
479
+ IdentifyLanguage?: boolean;
480
+
481
+ LanguageOptions?: string;
482
+
483
+ PreferredLanguage?: LanguageCode | string;
483
484
  }
484
485
  export declare namespace StartStreamTranscriptionRequest {
485
486
 
@@ -626,7 +627,14 @@ export interface StartStreamTranscriptionResponse {
626
627
  ContentRedactionType?: ContentRedactionType | string;
627
628
 
628
629
  PiiEntityTypes?: string;
630
+
629
631
  LanguageModelName?: string;
632
+
633
+ IdentifyLanguage?: boolean;
634
+
635
+ LanguageOptions?: string;
636
+
637
+ PreferredLanguage?: LanguageCode | string;
630
638
  }
631
639
  export declare namespace StartStreamTranscriptionResponse {
632
640
 
@@ -3,6 +3,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -3,10 +3,11 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
12
13
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
@@ -4,7 +4,7 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient";
4
4
  export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig) => {
5
5
  runtime: string;
6
6
  eventStreamPayloadHandlerProvider: import("@aws-sdk/types").EventStreamPayloadHandlerProvider;
7
- requestHandler: WebSocketHandler | (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler);
7
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | WebSocketHandler;
8
8
  sha256: import("@aws-sdk/types").HashConstructor;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: TranscribeStreamingClientConfig)
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
28
  eventStreamSerdeProvider: import("@aws-sdk/types").EventStreamSerdeProvider;
29
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
29
30
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
31
  tls?: boolean | undefined;
31
32
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;