@aws-sdk/client-transcribe-streaming 3.449.0 → 3.451.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.
@@ -127,6 +127,10 @@ const se_StartStreamTranscriptionCommand = async (input, context) => {
127
127
  ],
128
128
  "x-amzn-transcribe-language-options": input.LanguageOptions,
129
129
  "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
130
+ "x-amzn-transcribe-identify-multiple-languages": [
131
+ () => isSerializableHeaderValue(input.IdentifyMultipleLanguages),
132
+ () => input.IdentifyMultipleLanguages.toString(),
133
+ ],
130
134
  "x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
131
135
  "x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
132
136
  });
@@ -320,6 +324,10 @@ const de_StartStreamTranscriptionCommand = async (output, context) => {
320
324
  ],
321
325
  LanguageOptions: [, output.headers["x-amzn-transcribe-language-options"]],
322
326
  PreferredLanguage: [, output.headers["x-amzn-transcribe-preferred-language"]],
327
+ IdentifyMultipleLanguages: [
328
+ () => void 0 !== output.headers["x-amzn-transcribe-identify-multiple-languages"],
329
+ () => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-identify-multiple-languages"]),
330
+ ],
323
331
  VocabularyNames: [, output.headers["x-amzn-transcribe-vocabulary-names"]],
324
332
  VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]],
325
333
  });
@@ -122,6 +122,10 @@ export const se_StartStreamTranscriptionCommand = async (input, context) => {
122
122
  ],
123
123
  "x-amzn-transcribe-language-options": input.LanguageOptions,
124
124
  "x-amzn-transcribe-preferred-language": input.PreferredLanguage,
125
+ "x-amzn-transcribe-identify-multiple-languages": [
126
+ () => isSerializableHeaderValue(input.IdentifyMultipleLanguages),
127
+ () => input.IdentifyMultipleLanguages.toString(),
128
+ ],
125
129
  "x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
126
130
  "x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
127
131
  });
@@ -312,6 +316,10 @@ export const de_StartStreamTranscriptionCommand = async (output, context) => {
312
316
  ],
313
317
  LanguageOptions: [, output.headers["x-amzn-transcribe-language-options"]],
314
318
  PreferredLanguage: [, output.headers["x-amzn-transcribe-preferred-language"]],
319
+ IdentifyMultipleLanguages: [
320
+ () => void 0 !== output.headers["x-amzn-transcribe-identify-multiple-languages"],
321
+ () => __parseBoolean(output.headers["x-amzn-transcribe-identify-multiple-languages"]),
322
+ ],
315
323
  VocabularyNames: [, output.headers["x-amzn-transcribe-vocabulary-names"]],
316
324
  VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]],
317
325
  });
@@ -29,7 +29,7 @@ export interface StartStreamTranscriptionCommandOutput extends StartStreamTransc
29
29
  * <ul>
30
30
  * <li>
31
31
  * <p>
32
- * <code>language-code</code> or <code>identify-language</code>
32
+ * <code>language-code</code> or <code>identify-language</code> or <code>identify-multiple-language</code>
33
33
  * </p>
34
34
  * </li>
35
35
  * <li>
@@ -89,6 +89,7 @@ export interface StartStreamTranscriptionCommandOutput extends StartStreamTransc
89
89
  * IdentifyLanguage: true || false,
90
90
  * LanguageOptions: "STRING_VALUE",
91
91
  * PreferredLanguage: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR" || "ja-JP" || "ko-KR" || "zh-CN" || "hi-IN" || "th-TH",
92
+ * IdentifyMultipleLanguages: true || false,
92
93
  * VocabularyNames: "STRING_VALUE",
93
94
  * VocabularyFilterNames: "STRING_VALUE",
94
95
  * };
@@ -179,6 +180,7 @@ export interface StartStreamTranscriptionCommandOutput extends StartStreamTransc
179
180
  * // IdentifyLanguage: true || false,
180
181
  * // LanguageOptions: "STRING_VALUE",
181
182
  * // PreferredLanguage: "en-US" || "en-GB" || "es-US" || "fr-CA" || "fr-FR" || "en-AU" || "it-IT" || "de-DE" || "pt-BR" || "ja-JP" || "ko-KR" || "zh-CN" || "hi-IN" || "th-TH",
183
+ * // IdentifyMultipleLanguages: true || false,
182
184
  * // VocabularyNames: "STRING_VALUE",
183
185
  * // VocabularyFilterNames: "STRING_VALUE",
184
186
  * // };
@@ -1919,7 +1919,7 @@ export interface StartStreamTranscriptionRequest {
1919
1919
  * enabled channel identification, automatic language identification identifies the dominant language on
1920
1920
  * each audio channel.</p>
1921
1921
  * <p>Note that you must include either <code>LanguageCode</code> or
1922
- * <code>IdentifyLanguage</code> in your request. If you include both parameters, your request
1922
+ * <code>IdentifyLanguage</code> or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job
1923
1923
  * fails.</p>
1924
1924
  * <p>Streaming language identification can't be combined with custom language models or
1925
1925
  * redaction.</p>
@@ -1950,6 +1950,14 @@ export interface StartStreamTranscriptionRequest {
1950
1950
  * <code>LanguageOptions</code> in your request.</p>
1951
1951
  */
1952
1952
  PreferredLanguage?: LanguageCode;
1953
+ /**
1954
+ * @public
1955
+ * <p>Enables automatic multi-language identification in your transcription job request. Use this parameter if your stream contains more than one language. If your stream contains only one language, use IdentifyLanguage instead.</p>
1956
+ * <p>If you include <code>IdentifyMultipleLanguages</code>, you can optionally include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your stream. Including <code>LanguageOptions</code> restricts <code>IdentifyMultipleLanguages</code> to only the language options that you specify, which can improve transcription accuracy.</p>
1957
+ * <p>If you want to apply a custom vocabulary or a custom vocabulary filter to your automatic multiple language identification request, include <code>VocabularyNames</code> or <code>VocabularyFilterNames</code>.</p>
1958
+ * <p>Note that you must include one of <code>LanguageCode</code>, <code>IdentifyLanguage</code>, or <code>IdentifyMultipleLanguages</code> in your request. If you include more than one of these parameters, your transcription job fails.</p>
1959
+ */
1960
+ IdentifyMultipleLanguages?: boolean;
1953
1961
  /**
1954
1962
  * @public
1955
1963
  * <p>Specify the names of the custom vocabularies that you want to use when processing your
@@ -2246,6 +2254,11 @@ export interface StartStreamTranscriptionResponse {
2246
2254
  * <p>Provides the preferred language that you specified in your request.</p>
2247
2255
  */
2248
2256
  PreferredLanguage?: LanguageCode;
2257
+ /**
2258
+ * @public
2259
+ * <p>Shows whether automatic multi-language identification was enabled for your transcription.</p>
2260
+ */
2261
+ IdentifyMultipleLanguages?: boolean;
2249
2262
  /**
2250
2263
  * @public
2251
2264
  * <p>Provides the names of the custom vocabularies that you specified in your request.</p>
@@ -577,6 +577,7 @@ export interface StartStreamTranscriptionRequest {
577
577
  IdentifyLanguage?: boolean;
578
578
  LanguageOptions?: string;
579
579
  PreferredLanguage?: LanguageCode;
580
+ IdentifyMultipleLanguages?: boolean;
580
581
  VocabularyNames?: string;
581
582
  VocabularyFilterNames?: string;
582
583
  }
@@ -691,6 +692,7 @@ export interface StartStreamTranscriptionResponse {
691
692
  IdentifyLanguage?: boolean;
692
693
  LanguageOptions?: string;
693
694
  PreferredLanguage?: LanguageCode;
695
+ IdentifyMultipleLanguages?: boolean;
694
696
  VocabularyNames?: string;
695
697
  VocabularyFilterNames?: string;
696
698
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.449.0",
4
+ "version": "3.451.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -22,49 +22,49 @@
22
22
  "dependencies": {
23
23
  "@aws-crypto/sha256-browser": "3.0.0",
24
24
  "@aws-crypto/sha256-js": "3.0.0",
25
- "@aws-sdk/client-sts": "3.449.0",
26
- "@aws-sdk/core": "3.445.0",
27
- "@aws-sdk/credential-provider-node": "3.449.0",
28
- "@aws-sdk/eventstream-handler-node": "3.449.0",
29
- "@aws-sdk/middleware-eventstream": "3.449.0",
30
- "@aws-sdk/middleware-host-header": "3.449.0",
31
- "@aws-sdk/middleware-logger": "3.449.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.449.0",
33
- "@aws-sdk/middleware-sdk-transcribe-streaming": "3.449.0",
34
- "@aws-sdk/middleware-signing": "3.449.0",
35
- "@aws-sdk/middleware-user-agent": "3.449.0",
36
- "@aws-sdk/middleware-websocket": "3.449.0",
37
- "@aws-sdk/region-config-resolver": "3.433.0",
38
- "@aws-sdk/types": "3.449.0",
39
- "@aws-sdk/util-endpoints": "3.449.0",
40
- "@aws-sdk/util-user-agent-browser": "3.449.0",
41
- "@aws-sdk/util-user-agent-node": "3.449.0",
42
- "@smithy/config-resolver": "^2.0.16",
43
- "@smithy/eventstream-serde-browser": "^2.0.12",
44
- "@smithy/eventstream-serde-config-resolver": "^2.0.12",
45
- "@smithy/eventstream-serde-node": "^2.0.12",
46
- "@smithy/fetch-http-handler": "^2.2.4",
47
- "@smithy/hash-node": "^2.0.12",
48
- "@smithy/invalid-dependency": "^2.0.12",
49
- "@smithy/middleware-content-length": "^2.0.14",
50
- "@smithy/middleware-endpoint": "^2.1.3",
51
- "@smithy/middleware-retry": "^2.0.18",
52
- "@smithy/middleware-serde": "^2.0.12",
53
- "@smithy/middleware-stack": "^2.0.6",
54
- "@smithy/node-config-provider": "^2.1.3",
55
- "@smithy/node-http-handler": "^2.1.8",
56
- "@smithy/protocol-http": "^3.0.8",
57
- "@smithy/smithy-client": "^2.1.12",
58
- "@smithy/types": "^2.4.0",
59
- "@smithy/url-parser": "^2.0.12",
60
- "@smithy/util-base64": "^2.0.0",
25
+ "@aws-sdk/client-sts": "3.451.0",
26
+ "@aws-sdk/core": "3.451.0",
27
+ "@aws-sdk/credential-provider-node": "3.451.0",
28
+ "@aws-sdk/eventstream-handler-node": "3.451.0",
29
+ "@aws-sdk/middleware-eventstream": "3.451.0",
30
+ "@aws-sdk/middleware-host-header": "3.451.0",
31
+ "@aws-sdk/middleware-logger": "3.451.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.451.0",
33
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "3.451.0",
34
+ "@aws-sdk/middleware-signing": "3.451.0",
35
+ "@aws-sdk/middleware-user-agent": "3.451.0",
36
+ "@aws-sdk/middleware-websocket": "3.451.0",
37
+ "@aws-sdk/region-config-resolver": "3.451.0",
38
+ "@aws-sdk/types": "3.451.0",
39
+ "@aws-sdk/util-endpoints": "3.451.0",
40
+ "@aws-sdk/util-user-agent-browser": "3.451.0",
41
+ "@aws-sdk/util-user-agent-node": "3.451.0",
42
+ "@smithy/config-resolver": "^2.0.18",
43
+ "@smithy/eventstream-serde-browser": "^2.0.13",
44
+ "@smithy/eventstream-serde-config-resolver": "^2.0.13",
45
+ "@smithy/eventstream-serde-node": "^2.0.13",
46
+ "@smithy/fetch-http-handler": "^2.2.6",
47
+ "@smithy/hash-node": "^2.0.15",
48
+ "@smithy/invalid-dependency": "^2.0.13",
49
+ "@smithy/middleware-content-length": "^2.0.15",
50
+ "@smithy/middleware-endpoint": "^2.2.0",
51
+ "@smithy/middleware-retry": "^2.0.20",
52
+ "@smithy/middleware-serde": "^2.0.13",
53
+ "@smithy/middleware-stack": "^2.0.7",
54
+ "@smithy/node-config-provider": "^2.1.5",
55
+ "@smithy/node-http-handler": "^2.1.9",
56
+ "@smithy/protocol-http": "^3.0.9",
57
+ "@smithy/smithy-client": "^2.1.15",
58
+ "@smithy/types": "^2.5.0",
59
+ "@smithy/url-parser": "^2.0.13",
60
+ "@smithy/util-base64": "^2.0.1",
61
61
  "@smithy/util-body-length-browser": "^2.0.0",
62
62
  "@smithy/util-body-length-node": "^2.1.0",
63
- "@smithy/util-defaults-mode-browser": "^2.0.16",
64
- "@smithy/util-defaults-mode-node": "^2.0.21",
65
- "@smithy/util-endpoints": "^1.0.2",
66
- "@smithy/util-retry": "^2.0.5",
67
- "@smithy/util-utf8": "^2.0.0",
63
+ "@smithy/util-defaults-mode-browser": "^2.0.19",
64
+ "@smithy/util-defaults-mode-node": "^2.0.25",
65
+ "@smithy/util-endpoints": "^1.0.4",
66
+ "@smithy/util-retry": "^2.0.6",
67
+ "@smithy/util-utf8": "^2.0.2",
68
68
  "tslib": "^2.5.0"
69
69
  },
70
70
  "devDependencies": {