@aws-sdk/client-transcribe-streaming 3.445.0 → 3.450.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
|
|
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.
|
|
4
|
+
"version": "3.450.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,23 +22,23 @@
|
|
|
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.
|
|
25
|
+
"@aws-sdk/client-sts": "3.450.0",
|
|
26
26
|
"@aws-sdk/core": "3.445.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
28
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
29
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-sdk-transcribe-streaming": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/middleware-websocket": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.450.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
37
|
"@aws-sdk/region-config-resolver": "3.433.0",
|
|
38
|
-
"@aws-sdk/types": "3.
|
|
39
|
-
"@aws-sdk/util-endpoints": "3.
|
|
40
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
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
42
|
"@smithy/config-resolver": "^2.0.16",
|
|
43
43
|
"@smithy/eventstream-serde-browser": "^2.0.12",
|
|
44
44
|
"@smithy/eventstream-serde-config-resolver": "^2.0.12",
|