@aws-sdk/client-transcribe-streaming 3.669.0 → 3.672.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.
- package/dist-cjs/index.js +41 -1
- package/dist-cjs/runtimeConfig.browser.js +1 -1
- package/dist-cjs/runtimeConfig.js +1 -1
- package/dist-es/models/models_0.js +40 -0
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -2
- package/dist-types/commands/StartCallAnalyticsStreamTranscriptionCommand.d.ts +1 -1
- package/dist-types/commands/StartMedicalStreamTranscriptionCommand.d.ts +3 -3
- package/dist-types/commands/StartStreamTranscriptionCommand.d.ts +7 -7
- package/dist-types/models/models_0.d.ts +111 -52
- package/dist-types/ts3.4/models/models_0.d.ts +40 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -389,20 +389,60 @@ var ContentRedactionType = {
|
|
|
389
389
|
PII: "PII"
|
|
390
390
|
};
|
|
391
391
|
var LanguageCode = {
|
|
392
|
+
AF_ZA: "af-ZA",
|
|
393
|
+
AR_AE: "ar-AE",
|
|
394
|
+
AR_SA: "ar-SA",
|
|
395
|
+
CA_ES: "ca-ES",
|
|
396
|
+
CS_CZ: "cs-CZ",
|
|
397
|
+
DA_DK: "da-DK",
|
|
398
|
+
DE_CH: "de-CH",
|
|
392
399
|
DE_DE: "de-DE",
|
|
400
|
+
EL_GR: "el-GR",
|
|
401
|
+
EN_AB: "en-AB",
|
|
393
402
|
EN_AU: "en-AU",
|
|
394
403
|
EN_GB: "en-GB",
|
|
404
|
+
EN_IE: "en-IE",
|
|
405
|
+
EN_IN: "en-IN",
|
|
406
|
+
EN_NZ: "en-NZ",
|
|
395
407
|
EN_US: "en-US",
|
|
408
|
+
EN_WL: "en-WL",
|
|
409
|
+
EN_ZA: "en-ZA",
|
|
410
|
+
ES_ES: "es-ES",
|
|
396
411
|
ES_US: "es-US",
|
|
412
|
+
EU_ES: "eu-ES",
|
|
413
|
+
FA_IR: "fa-IR",
|
|
414
|
+
FI_FI: "fi-FI",
|
|
397
415
|
FR_CA: "fr-CA",
|
|
398
416
|
FR_FR: "fr-FR",
|
|
417
|
+
GL_ES: "gl-ES",
|
|
418
|
+
HE_IL: "he-IL",
|
|
399
419
|
HI_IN: "hi-IN",
|
|
420
|
+
HR_HR: "hr-HR",
|
|
421
|
+
ID_ID: "id-ID",
|
|
400
422
|
IT_IT: "it-IT",
|
|
401
423
|
JA_JP: "ja-JP",
|
|
402
424
|
KO_KR: "ko-KR",
|
|
425
|
+
LV_LV: "lv-LV",
|
|
426
|
+
MS_MY: "ms-MY",
|
|
427
|
+
NL_NL: "nl-NL",
|
|
428
|
+
NO_NO: "no-NO",
|
|
429
|
+
PL_PL: "pl-PL",
|
|
403
430
|
PT_BR: "pt-BR",
|
|
431
|
+
PT_PT: "pt-PT",
|
|
432
|
+
RO_RO: "ro-RO",
|
|
433
|
+
RU_RU: "ru-RU",
|
|
434
|
+
SK_SK: "sk-SK",
|
|
435
|
+
SO_SO: "so-SO",
|
|
436
|
+
SR_RS: "sr-RS",
|
|
437
|
+
SV_SE: "sv-SE",
|
|
404
438
|
TH_TH: "th-TH",
|
|
405
|
-
|
|
439
|
+
TL_PH: "tl-PH",
|
|
440
|
+
UK_UA: "uk-UA",
|
|
441
|
+
VI_VN: "vi-VN",
|
|
442
|
+
ZH_CN: "zh-CN",
|
|
443
|
+
ZH_HK: "zh-HK",
|
|
444
|
+
ZH_TW: "zh-TW",
|
|
445
|
+
ZU_ZA: "zu-ZA"
|
|
406
446
|
};
|
|
407
447
|
var MediaEncoding = {
|
|
408
448
|
FLAC: "flac",
|
|
@@ -28,7 +28,7 @@ const getRuntimeConfig = (config) => {
|
|
|
28
28
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
29
29
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
30
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
31
|
-
(0, util_user_agent_browser_1.
|
|
31
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
32
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => middleware_sdk_transcribe_streaming_1.eventStreamPayloadHandler),
|
|
33
33
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_browser_1.eventStreamSerdeProvider,
|
|
34
34
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
@@ -33,7 +33,7 @@ const getRuntimeConfig = (config) => {
|
|
|
33
33
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
34
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
35
35
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
-
(0, util_user_agent_node_1.
|
|
36
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
37
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventstream_handler_node_1.eventStreamPayloadHandlerProvider,
|
|
38
38
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
|
|
39
39
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
@@ -130,20 +130,60 @@ export const ContentRedactionType = {
|
|
|
130
130
|
PII: "PII",
|
|
131
131
|
};
|
|
132
132
|
export const LanguageCode = {
|
|
133
|
+
AF_ZA: "af-ZA",
|
|
134
|
+
AR_AE: "ar-AE",
|
|
135
|
+
AR_SA: "ar-SA",
|
|
136
|
+
CA_ES: "ca-ES",
|
|
137
|
+
CS_CZ: "cs-CZ",
|
|
138
|
+
DA_DK: "da-DK",
|
|
139
|
+
DE_CH: "de-CH",
|
|
133
140
|
DE_DE: "de-DE",
|
|
141
|
+
EL_GR: "el-GR",
|
|
142
|
+
EN_AB: "en-AB",
|
|
134
143
|
EN_AU: "en-AU",
|
|
135
144
|
EN_GB: "en-GB",
|
|
145
|
+
EN_IE: "en-IE",
|
|
146
|
+
EN_IN: "en-IN",
|
|
147
|
+
EN_NZ: "en-NZ",
|
|
136
148
|
EN_US: "en-US",
|
|
149
|
+
EN_WL: "en-WL",
|
|
150
|
+
EN_ZA: "en-ZA",
|
|
151
|
+
ES_ES: "es-ES",
|
|
137
152
|
ES_US: "es-US",
|
|
153
|
+
EU_ES: "eu-ES",
|
|
154
|
+
FA_IR: "fa-IR",
|
|
155
|
+
FI_FI: "fi-FI",
|
|
138
156
|
FR_CA: "fr-CA",
|
|
139
157
|
FR_FR: "fr-FR",
|
|
158
|
+
GL_ES: "gl-ES",
|
|
159
|
+
HE_IL: "he-IL",
|
|
140
160
|
HI_IN: "hi-IN",
|
|
161
|
+
HR_HR: "hr-HR",
|
|
162
|
+
ID_ID: "id-ID",
|
|
141
163
|
IT_IT: "it-IT",
|
|
142
164
|
JA_JP: "ja-JP",
|
|
143
165
|
KO_KR: "ko-KR",
|
|
166
|
+
LV_LV: "lv-LV",
|
|
167
|
+
MS_MY: "ms-MY",
|
|
168
|
+
NL_NL: "nl-NL",
|
|
169
|
+
NO_NO: "no-NO",
|
|
170
|
+
PL_PL: "pl-PL",
|
|
144
171
|
PT_BR: "pt-BR",
|
|
172
|
+
PT_PT: "pt-PT",
|
|
173
|
+
RO_RO: "ro-RO",
|
|
174
|
+
RU_RU: "ru-RU",
|
|
175
|
+
SK_SK: "sk-SK",
|
|
176
|
+
SO_SO: "so-SO",
|
|
177
|
+
SR_RS: "sr-RS",
|
|
178
|
+
SV_SE: "sv-SE",
|
|
145
179
|
TH_TH: "th-TH",
|
|
180
|
+
TL_PH: "tl-PH",
|
|
181
|
+
UK_UA: "uk-UA",
|
|
182
|
+
VI_VN: "vi-VN",
|
|
146
183
|
ZH_CN: "zh-CN",
|
|
184
|
+
ZH_HK: "zh-HK",
|
|
185
|
+
ZH_TW: "zh-TW",
|
|
186
|
+
ZU_ZA: "zu-ZA",
|
|
147
187
|
};
|
|
148
188
|
export const MediaEncoding = {
|
|
149
189
|
FLAC: "flac",
|
|
@@ -2,7 +2,7 @@ import packageInfo from "../package.json";
|
|
|
2
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
3
|
import { eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming";
|
|
4
4
|
import { WebSocketFetchHandler as WebSocketRequestHandler, } from "@aws-sdk/middleware-websocket";
|
|
5
|
-
import {
|
|
5
|
+
import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
|
|
6
6
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
7
7
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-browser";
|
|
8
8
|
import { FetchHttpHandler as HttpRequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
@@ -24,7 +24,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
24
24
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
25
25
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
26
26
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
27
|
-
|
|
27
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
28
28
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? (() => eventStreamPayloadHandler),
|
|
29
29
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
30
30
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -2,7 +2,7 @@ import packageInfo from "../package.json";
|
|
|
2
2
|
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
3
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
4
|
import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node";
|
|
5
|
-
import { NODE_APP_ID_CONFIG_OPTIONS,
|
|
5
|
+
import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
|
|
6
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
7
7
|
import { eventStreamSerdeProvider } from "@smithy/eventstream-serde-node";
|
|
8
8
|
import { Hash } from "@smithy/hash-node";
|
|
@@ -29,7 +29,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
29
29
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
30
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
31
31
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
|
|
32
|
+
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
33
|
eventStreamPayloadHandlerProvider: config?.eventStreamPayloadHandlerProvider ?? eventStreamPayloadHandlerProvider,
|
|
34
34
|
eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
|
|
35
35
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
@@ -190,7 +190,7 @@ declare const StartCallAnalyticsStreamTranscriptionCommand_base: {
|
|
|
190
190
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
191
191
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
192
192
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
193
|
-
* used
|
|
193
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
194
194
|
*
|
|
195
195
|
* @throws {@link ConflictException} (client fault)
|
|
196
196
|
* <p>A new stream started with the same session ID. The current stream has been terminated.</p>
|
|
@@ -58,7 +58,7 @@ declare const StartMedicalStreamTranscriptionCommand_base: {
|
|
|
58
58
|
* // const { TranscribeStreamingClient, StartMedicalStreamTranscriptionCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import
|
|
59
59
|
* const client = new TranscribeStreamingClient(config);
|
|
60
60
|
* const input = { // StartMedicalStreamTranscriptionRequest
|
|
61
|
-
* 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" || "hi-IN" || "
|
|
61
|
+
* 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", // required
|
|
62
62
|
* MediaSampleRateHertz: Number("int"), // required
|
|
63
63
|
* MediaEncoding: "pcm" || "ogg-opus" || "flac", // required
|
|
64
64
|
* VocabularyName: "STRING_VALUE",
|
|
@@ -93,7 +93,7 @@ declare const StartMedicalStreamTranscriptionCommand_base: {
|
|
|
93
93
|
* const response = await client.send(command);
|
|
94
94
|
* // { // StartMedicalStreamTranscriptionResponse
|
|
95
95
|
* // RequestId: "STRING_VALUE",
|
|
96
|
-
* // 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" || "hi-IN" || "
|
|
96
|
+
* // 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",
|
|
97
97
|
* // MediaSampleRateHertz: Number("int"),
|
|
98
98
|
* // MediaEncoding: "pcm" || "ogg-opus" || "flac",
|
|
99
99
|
* // VocabularyName: "STRING_VALUE",
|
|
@@ -172,7 +172,7 @@ declare const StartMedicalStreamTranscriptionCommand_base: {
|
|
|
172
172
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
173
173
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
174
174
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
175
|
-
* used
|
|
175
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
176
176
|
*
|
|
177
177
|
* @throws {@link ConflictException} (client fault)
|
|
178
178
|
* <p>A new stream started with the same session ID. The current stream has been terminated.</p>
|
|
@@ -55,7 +55,7 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
55
55
|
* // const { TranscribeStreamingClient, StartStreamTranscriptionCommand } = require("@aws-sdk/client-transcribe-streaming"); // CommonJS import
|
|
56
56
|
* const client = new TranscribeStreamingClient(config);
|
|
57
57
|
* const input = { // StartStreamTranscriptionRequest
|
|
58
|
-
* 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" || "hi-IN" || "
|
|
58
|
+
* 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",
|
|
59
59
|
* MediaSampleRateHertz: Number("int"), // required
|
|
60
60
|
* MediaEncoding: "pcm" || "ogg-opus" || "flac", // required
|
|
61
61
|
* VocabularyName: "STRING_VALUE",
|
|
@@ -92,7 +92,7 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
92
92
|
* LanguageModelName: "STRING_VALUE",
|
|
93
93
|
* IdentifyLanguage: true || false,
|
|
94
94
|
* LanguageOptions: "STRING_VALUE",
|
|
95
|
-
* 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" || "
|
|
95
|
+
* 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" || "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",
|
|
96
96
|
* IdentifyMultipleLanguages: true || false,
|
|
97
97
|
* VocabularyNames: "STRING_VALUE",
|
|
98
98
|
* VocabularyFilterNames: "STRING_VALUE",
|
|
@@ -101,7 +101,7 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
101
101
|
* const response = await client.send(command);
|
|
102
102
|
* // { // StartStreamTranscriptionResponse
|
|
103
103
|
* // RequestId: "STRING_VALUE",
|
|
104
|
-
* // 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" || "hi-IN" || "
|
|
104
|
+
* // 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",
|
|
105
105
|
* // MediaSampleRateHertz: Number("int"),
|
|
106
106
|
* // MediaEncoding: "pcm" || "ogg-opus" || "flac",
|
|
107
107
|
* // VocabularyName: "STRING_VALUE",
|
|
@@ -143,10 +143,10 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
143
143
|
* // },
|
|
144
144
|
* // ],
|
|
145
145
|
* // ChannelId: "STRING_VALUE",
|
|
146
|
-
* // 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" || "hi-IN" || "
|
|
146
|
+
* // 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",
|
|
147
147
|
* // LanguageIdentification: [ // LanguageIdentification
|
|
148
148
|
* // { // LanguageWithScore
|
|
149
|
-
* // 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" || "hi-IN" || "
|
|
149
|
+
* // 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",
|
|
150
150
|
* // Score: Number("double"),
|
|
151
151
|
* // },
|
|
152
152
|
* // ],
|
|
@@ -183,7 +183,7 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
183
183
|
* // LanguageModelName: "STRING_VALUE",
|
|
184
184
|
* // IdentifyLanguage: true || false,
|
|
185
185
|
* // LanguageOptions: "STRING_VALUE",
|
|
186
|
-
* // 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" || "
|
|
186
|
+
* // 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" || "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",
|
|
187
187
|
* // IdentifyMultipleLanguages: true || false,
|
|
188
188
|
* // VocabularyNames: "STRING_VALUE",
|
|
189
189
|
* // VocabularyFilterNames: "STRING_VALUE",
|
|
@@ -201,7 +201,7 @@ declare const StartStreamTranscriptionCommand_base: {
|
|
|
201
201
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
202
202
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
203
203
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
204
|
-
* used
|
|
204
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
205
205
|
*
|
|
206
206
|
* @throws {@link ConflictException} (client fault)
|
|
207
207
|
* <p>A new stream started with the same session ID. The current stream has been terminated.</p>
|
|
@@ -190,13 +190,16 @@ export declare const ContentRedactionOutput: {
|
|
|
190
190
|
*/
|
|
191
191
|
export type ContentRedactionOutput = (typeof ContentRedactionOutput)[keyof typeof ContentRedactionOutput];
|
|
192
192
|
/**
|
|
193
|
-
* <p>Allows you to specify additional settings for your
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
* use.</p>
|
|
193
|
+
* <p>Allows you to specify additional settings for your Call Analytics post-call request,
|
|
194
|
+
* including output locations for your redacted transcript, which IAM role to use,
|
|
195
|
+
* and which encryption key to use.</p>
|
|
197
196
|
* <p>
|
|
198
|
-
* <code>
|
|
199
|
-
*
|
|
197
|
+
* <code>DataAccessRoleArn</code> and <code>OutputLocation</code> are required
|
|
198
|
+
* fields.</p>
|
|
199
|
+
* <p>
|
|
200
|
+
* <code>PostCallAnalyticsSettings</code> provides you with the same insights as a
|
|
201
|
+
* Call Analytics post-call transcription. Refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html">Post-call analytics</a> for more information
|
|
202
|
+
* on this feature.</p>
|
|
200
203
|
* @public
|
|
201
204
|
*/
|
|
202
205
|
export interface PostCallAnalyticsSettings {
|
|
@@ -277,8 +280,8 @@ export interface PostCallAnalyticsSettings {
|
|
|
277
280
|
* <code>arn:aws:kms:region:account-ID:alias/ExampleAlias</code>.</p>
|
|
278
281
|
* </li>
|
|
279
282
|
* </ol>
|
|
280
|
-
* <p>Note that the
|
|
281
|
-
* have permission to use the specified KMS key.</p>
|
|
283
|
+
* <p>Note that the role making the
|
|
284
|
+
* request must have permission to use the specified KMS key.</p>
|
|
282
285
|
* @public
|
|
283
286
|
*/
|
|
284
287
|
OutputEncryptionKMSKeyId?: string;
|
|
@@ -295,7 +298,11 @@ export interface ConfigurationEvent {
|
|
|
295
298
|
ChannelDefinitions?: ChannelDefinition[];
|
|
296
299
|
/**
|
|
297
300
|
* <p>Provides additional optional settings for your Call Analytics post-call request, including
|
|
298
|
-
* encryption and output locations for your redacted
|
|
301
|
+
* encryption and output locations for your redacted transcript.</p>
|
|
302
|
+
* <p>
|
|
303
|
+
* <code>PostCallAnalyticsSettings</code> provides you with the same insights as a
|
|
304
|
+
* Call Analytics post-call transcription. Refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/tca-post-call.html">Post-call analytics</a> for more information
|
|
305
|
+
* on this feature.</p>
|
|
299
306
|
* @public
|
|
300
307
|
*/
|
|
301
308
|
PostCallAnalyticsSettings?: PostCallAnalyticsSettings;
|
|
@@ -350,7 +357,7 @@ export declare namespace AudioStream {
|
|
|
350
357
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
351
358
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
352
359
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
353
|
-
* used
|
|
360
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
354
361
|
* @public
|
|
355
362
|
*/
|
|
356
363
|
export declare class BadRequestException extends __BaseException {
|
|
@@ -680,7 +687,7 @@ export interface UtteranceEvent {
|
|
|
680
687
|
IssuesDetected?: IssueDetected[];
|
|
681
688
|
}
|
|
682
689
|
/**
|
|
683
|
-
* <p>Contains detailed information about your Call Analytics
|
|
690
|
+
* <p>Contains detailed information about your real-time Call Analytics session. These details are
|
|
684
691
|
* provided in the <code>UtteranceEvent</code> and <code>CategoryEvent</code> objects.</p>
|
|
685
692
|
* @public
|
|
686
693
|
*/
|
|
@@ -724,7 +731,7 @@ export declare namespace CallAnalyticsTranscriptResultStream {
|
|
|
724
731
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
725
732
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
726
733
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
727
|
-
* used
|
|
734
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
728
735
|
* @public
|
|
729
736
|
*/
|
|
730
737
|
interface BadRequestExceptionMember {
|
|
@@ -847,20 +854,60 @@ export type ContentRedactionType = (typeof ContentRedactionType)[keyof typeof Co
|
|
|
847
854
|
* @enum
|
|
848
855
|
*/
|
|
849
856
|
export declare const LanguageCode: {
|
|
857
|
+
readonly AF_ZA: "af-ZA";
|
|
858
|
+
readonly AR_AE: "ar-AE";
|
|
859
|
+
readonly AR_SA: "ar-SA";
|
|
860
|
+
readonly CA_ES: "ca-ES";
|
|
861
|
+
readonly CS_CZ: "cs-CZ";
|
|
862
|
+
readonly DA_DK: "da-DK";
|
|
863
|
+
readonly DE_CH: "de-CH";
|
|
850
864
|
readonly DE_DE: "de-DE";
|
|
865
|
+
readonly EL_GR: "el-GR";
|
|
866
|
+
readonly EN_AB: "en-AB";
|
|
851
867
|
readonly EN_AU: "en-AU";
|
|
852
868
|
readonly EN_GB: "en-GB";
|
|
869
|
+
readonly EN_IE: "en-IE";
|
|
870
|
+
readonly EN_IN: "en-IN";
|
|
871
|
+
readonly EN_NZ: "en-NZ";
|
|
853
872
|
readonly EN_US: "en-US";
|
|
873
|
+
readonly EN_WL: "en-WL";
|
|
874
|
+
readonly EN_ZA: "en-ZA";
|
|
875
|
+
readonly ES_ES: "es-ES";
|
|
854
876
|
readonly ES_US: "es-US";
|
|
877
|
+
readonly EU_ES: "eu-ES";
|
|
878
|
+
readonly FA_IR: "fa-IR";
|
|
879
|
+
readonly FI_FI: "fi-FI";
|
|
855
880
|
readonly FR_CA: "fr-CA";
|
|
856
881
|
readonly FR_FR: "fr-FR";
|
|
882
|
+
readonly GL_ES: "gl-ES";
|
|
883
|
+
readonly HE_IL: "he-IL";
|
|
857
884
|
readonly HI_IN: "hi-IN";
|
|
885
|
+
readonly HR_HR: "hr-HR";
|
|
886
|
+
readonly ID_ID: "id-ID";
|
|
858
887
|
readonly IT_IT: "it-IT";
|
|
859
888
|
readonly JA_JP: "ja-JP";
|
|
860
889
|
readonly KO_KR: "ko-KR";
|
|
890
|
+
readonly LV_LV: "lv-LV";
|
|
891
|
+
readonly MS_MY: "ms-MY";
|
|
892
|
+
readonly NL_NL: "nl-NL";
|
|
893
|
+
readonly NO_NO: "no-NO";
|
|
894
|
+
readonly PL_PL: "pl-PL";
|
|
861
895
|
readonly PT_BR: "pt-BR";
|
|
896
|
+
readonly PT_PT: "pt-PT";
|
|
897
|
+
readonly RO_RO: "ro-RO";
|
|
898
|
+
readonly RU_RU: "ru-RU";
|
|
899
|
+
readonly SK_SK: "sk-SK";
|
|
900
|
+
readonly SO_SO: "so-SO";
|
|
901
|
+
readonly SR_RS: "sr-RS";
|
|
902
|
+
readonly SV_SE: "sv-SE";
|
|
862
903
|
readonly TH_TH: "th-TH";
|
|
904
|
+
readonly TL_PH: "tl-PH";
|
|
905
|
+
readonly UK_UA: "uk-UA";
|
|
906
|
+
readonly VI_VN: "vi-VN";
|
|
863
907
|
readonly ZH_CN: "zh-CN";
|
|
908
|
+
readonly ZH_HK: "zh-HK";
|
|
909
|
+
readonly ZH_TW: "zh-TW";
|
|
910
|
+
readonly ZU_ZA: "zu-ZA";
|
|
864
911
|
};
|
|
865
912
|
/**
|
|
866
913
|
* @public
|
|
@@ -1123,7 +1170,7 @@ export declare namespace MedicalTranscriptResultStream {
|
|
|
1123
1170
|
* <p>One or more arguments to the <code>StartStreamTranscription</code>,
|
|
1124
1171
|
* <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code>
|
|
1125
1172
|
* operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code>
|
|
1126
|
-
* used
|
|
1173
|
+
* used unsupported values. Check the specified parameters and try your request again.</p>
|
|
1127
1174
|
* @public
|
|
1128
1175
|
*/
|
|
1129
1176
|
interface BadRequestExceptionMember {
|
|
@@ -1316,9 +1363,7 @@ export type VocabularyFilterMethod = (typeof VocabularyFilterMethod)[keyof typeo
|
|
|
1316
1363
|
export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
1317
1364
|
/**
|
|
1318
1365
|
* <p>Specify the language code that represents the language spoken in your audio.</p>
|
|
1319
|
-
* <p>
|
|
1320
|
-
* <code>IdentifyLanguage</code> to enable automatic language identification.</p>
|
|
1321
|
-
* <p>For a list of languages supported with streaming Call Analytics, refer to the
|
|
1366
|
+
* <p>For a list of languages supported with real-time Call Analytics, refer to the
|
|
1322
1367
|
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported
|
|
1323
1368
|
* languages</a> table.</p>
|
|
1324
1369
|
* @public
|
|
@@ -1360,7 +1405,6 @@ export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
|
1360
1405
|
/**
|
|
1361
1406
|
* <p>Specify a name for your Call Analytics transcription session. If you don't include this parameter
|
|
1362
1407
|
* in your request, Amazon Transcribe generates an ID and returns it in the response.</p>
|
|
1363
|
-
* <p>You can use a session ID to retry a streaming session.</p>
|
|
1364
1408
|
* @public
|
|
1365
1409
|
*/
|
|
1366
1410
|
SessionId?: string;
|
|
@@ -1420,7 +1464,8 @@ export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
|
1420
1464
|
/**
|
|
1421
1465
|
* <p>Labels all personally identifiable information (PII) identified in your transcript.</p>
|
|
1422
1466
|
* <p>Content identification is performed at the segment level; PII specified in
|
|
1423
|
-
* <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment
|
|
1467
|
+
* <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment. If you don't
|
|
1468
|
+
* include <code>PiiEntityTypes</code> in your request, all PII is identified.</p>
|
|
1424
1469
|
* <p>You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code>
|
|
1425
1470
|
* in the same request. If you set both, your request returns a
|
|
1426
1471
|
* <code>BadRequestException</code>.</p>
|
|
@@ -1432,10 +1477,10 @@ export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
|
1432
1477
|
/**
|
|
1433
1478
|
* <p>Redacts all personally identifiable information (PII) identified in your transcript.</p>
|
|
1434
1479
|
* <p>Content redaction is performed at the segment level; PII specified in
|
|
1435
|
-
* <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment
|
|
1480
|
+
* <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment. If you don't
|
|
1481
|
+
* include <code>PiiEntityTypes</code> in your request, all PII is redacted.</p>
|
|
1436
1482
|
* <p>You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code>
|
|
1437
|
-
* in the same request. If you set both, your request returns a
|
|
1438
|
-
* <code>BadRequestException</code>.</p>
|
|
1483
|
+
* in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
1439
1484
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable
|
|
1440
1485
|
* information</a>.</p>
|
|
1441
1486
|
* @public
|
|
@@ -1445,14 +1490,17 @@ export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
|
1445
1490
|
* <p>Specify which types of personally identifiable information (PII) you want to redact in your
|
|
1446
1491
|
* transcript. You can include as many types as you'd like, or you can select
|
|
1447
1492
|
* <code>ALL</code>.</p>
|
|
1448
|
-
* <p>
|
|
1449
|
-
* either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
|
|
1450
|
-
* <p>Values must be comma-separated and can include:
|
|
1493
|
+
* <p>Values must be comma-separated and can include: <code>ADDRESS</code>,
|
|
1451
1494
|
* <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>,
|
|
1452
|
-
* <code>
|
|
1453
|
-
* <code>
|
|
1454
|
-
* <code>
|
|
1495
|
+
* <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>,
|
|
1496
|
+
* <code>CREDIT_DEBIT_NUMBER</code>, <code>EMAIL</code>,
|
|
1497
|
+
* <code>NAME</code>, <code>PHONE</code>, <code>PIN</code>,
|
|
1455
1498
|
* <code>SSN</code>, or <code>ALL</code>.</p>
|
|
1499
|
+
* <p>Note that if you include <code>PiiEntityTypes</code> in your request, you must also include
|
|
1500
|
+
* <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
|
|
1501
|
+
* <p>If you include <code>ContentRedactionType</code> or
|
|
1502
|
+
* <code>ContentIdentificationType</code> in your request, but do not include
|
|
1503
|
+
* <code>PiiEntityTypes</code>, all PII is redacted or identified.</p>
|
|
1456
1504
|
* @public
|
|
1457
1505
|
*/
|
|
1458
1506
|
PiiEntityTypes?: string;
|
|
@@ -1462,7 +1510,7 @@ export interface StartCallAnalyticsStreamTranscriptionRequest {
|
|
|
1462
1510
|
*/
|
|
1463
1511
|
export interface StartCallAnalyticsStreamTranscriptionResponse {
|
|
1464
1512
|
/**
|
|
1465
|
-
* <p>Provides the identifier for your Call Analytics
|
|
1513
|
+
* <p>Provides the identifier for your real-time Call Analytics request.</p>
|
|
1466
1514
|
* @public
|
|
1467
1515
|
*/
|
|
1468
1516
|
RequestId?: string;
|
|
@@ -1492,7 +1540,7 @@ export interface StartCallAnalyticsStreamTranscriptionResponse {
|
|
|
1492
1540
|
*/
|
|
1493
1541
|
SessionId?: string;
|
|
1494
1542
|
/**
|
|
1495
|
-
* <p>Provides detailed information about your Call Analytics
|
|
1543
|
+
* <p>Provides detailed information about your real-time Call Analytics session.</p>
|
|
1496
1544
|
* @public
|
|
1497
1545
|
*/
|
|
1498
1546
|
CallAnalyticsTranscriptResultStream?: AsyncIterable<CallAnalyticsTranscriptResultStream>;
|
|
@@ -1617,7 +1665,6 @@ export interface StartMedicalStreamTranscriptionRequest {
|
|
|
1617
1665
|
* <p>Specify a name for your transcription session. If you don't include this parameter in
|
|
1618
1666
|
* your request, Amazon Transcribe Medical generates an ID and returns it in the
|
|
1619
1667
|
* response.</p>
|
|
1620
|
-
* <p>You can use a session ID to retry a streaming session.</p>
|
|
1621
1668
|
* @public
|
|
1622
1669
|
*/
|
|
1623
1670
|
SessionId?: string;
|
|
@@ -1634,13 +1681,18 @@ export interface StartMedicalStreamTranscriptionRequest {
|
|
|
1634
1681
|
* the output for each channel into one transcript.</p>
|
|
1635
1682
|
* <p>If you have multi-channel audio and do not enable channel identification, your audio is
|
|
1636
1683
|
* transcribed in a continuous manner and your transcript is not separated by channel.</p>
|
|
1684
|
+
* <p>If you include <code>EnableChannelIdentification</code> in your request, you must also
|
|
1685
|
+
* include <code>NumberOfChannels</code>.</p>
|
|
1637
1686
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html">Transcribing multi-channel audio</a>.</p>
|
|
1638
1687
|
* @public
|
|
1639
1688
|
*/
|
|
1640
1689
|
EnableChannelIdentification?: boolean;
|
|
1641
1690
|
/**
|
|
1642
|
-
* <p>Specify the number of channels in your audio stream.
|
|
1643
|
-
* supported
|
|
1691
|
+
* <p>Specify the number of channels in your audio stream. This value must be
|
|
1692
|
+
* <code>2</code>, as only two channels are supported. If your audio doesn't contain
|
|
1693
|
+
* multiple channels, do not include this parameter in your request.</p>
|
|
1694
|
+
* <p>If you include <code>NumberOfChannels</code> in your request, you must also
|
|
1695
|
+
* include <code>EnableChannelIdentification</code>.</p>
|
|
1644
1696
|
* @public
|
|
1645
1697
|
*/
|
|
1646
1698
|
NumberOfChannels?: number;
|
|
@@ -1781,7 +1833,6 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1781
1833
|
/**
|
|
1782
1834
|
* <p>Specify a name for your transcription session. If you don't include this parameter in your request,
|
|
1783
1835
|
* Amazon Transcribe generates an ID and returns it in the response.</p>
|
|
1784
|
-
* <p>You can use a session ID to retry a streaming session.</p>
|
|
1785
1836
|
* @public
|
|
1786
1837
|
*/
|
|
1787
1838
|
SessionId?: string;
|
|
@@ -1829,13 +1880,18 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1829
1880
|
* output for each channel into one transcript.</p>
|
|
1830
1881
|
* <p>If you have multi-channel audio and do not enable channel identification, your audio is
|
|
1831
1882
|
* transcribed in a continuous manner and your transcript is not separated by channel.</p>
|
|
1883
|
+
* <p>If you include <code>EnableChannelIdentification</code> in your request, you must also
|
|
1884
|
+
* include <code>NumberOfChannels</code>.</p>
|
|
1832
1885
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/channel-id.html">Transcribing multi-channel audio</a>.</p>
|
|
1833
1886
|
* @public
|
|
1834
1887
|
*/
|
|
1835
1888
|
EnableChannelIdentification?: boolean;
|
|
1836
1889
|
/**
|
|
1837
|
-
* <p>Specify the number of channels in your audio stream.
|
|
1838
|
-
* supported
|
|
1890
|
+
* <p>Specify the number of channels in your audio stream. This value must be
|
|
1891
|
+
* <code>2</code>, as only two channels are supported. If your audio doesn't contain
|
|
1892
|
+
* multiple channels, do not include this parameter in your request.</p>
|
|
1893
|
+
* <p>If you include <code>NumberOfChannels</code> in your request, you must also
|
|
1894
|
+
* include <code>EnableChannelIdentification</code>.</p>
|
|
1839
1895
|
* @public
|
|
1840
1896
|
*/
|
|
1841
1897
|
NumberOfChannels?: number;
|
|
@@ -1860,7 +1916,8 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1860
1916
|
/**
|
|
1861
1917
|
* <p>Labels all personally identifiable information (PII) identified in your transcript.</p>
|
|
1862
1918
|
* <p>Content identification is performed at the segment level; PII specified in
|
|
1863
|
-
* <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment
|
|
1919
|
+
* <code>PiiEntityTypes</code> is flagged upon complete transcription of an audio segment. If you don't
|
|
1920
|
+
* include <code>PiiEntityTypes</code> in your request, all PII is identified.</p>
|
|
1864
1921
|
* <p>You can’t set <code>ContentIdentificationType</code> and <code>ContentRedactionType</code>
|
|
1865
1922
|
* in the same request. If you set both, your request returns a
|
|
1866
1923
|
* <code>BadRequestException</code>.</p>
|
|
@@ -1872,10 +1929,10 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1872
1929
|
/**
|
|
1873
1930
|
* <p>Redacts all personally identifiable information (PII) identified in your transcript.</p>
|
|
1874
1931
|
* <p>Content redaction is performed at the segment level; PII specified in
|
|
1875
|
-
* <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment
|
|
1932
|
+
* <code>PiiEntityTypes</code> is redacted upon complete transcription of an audio segment. If you don't
|
|
1933
|
+
* include <code>PiiEntityTypes</code> in your request, all PII is redacted.</p>
|
|
1876
1934
|
* <p>You can’t set <code>ContentRedactionType</code> and <code>ContentIdentificationType</code>
|
|
1877
|
-
* in the same request. If you set both, your request returns a
|
|
1878
|
-
* <code>BadRequestException</code>.</p>
|
|
1935
|
+
* in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
1879
1936
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/pii-redaction.html">Redacting or identifying personally identifiable
|
|
1880
1937
|
* information</a>.</p>
|
|
1881
1938
|
* @public
|
|
@@ -1885,14 +1942,17 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1885
1942
|
* <p>Specify which types of personally identifiable information (PII) you want to redact in your
|
|
1886
1943
|
* transcript. You can include as many types as you'd like, or you can select
|
|
1887
1944
|
* <code>ALL</code>.</p>
|
|
1888
|
-
* <p>
|
|
1889
|
-
* <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
|
|
1890
|
-
* <p>Values must be comma-separated and can include:
|
|
1945
|
+
* <p>Values must be comma-separated and can include: <code>ADDRESS</code>,
|
|
1891
1946
|
* <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>,
|
|
1892
|
-
* <code>
|
|
1893
|
-
* <code>
|
|
1894
|
-
* <code>
|
|
1947
|
+
* <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>,
|
|
1948
|
+
* <code>CREDIT_DEBIT_NUMBER</code>, <code>EMAIL</code>,
|
|
1949
|
+
* <code>NAME</code>, <code>PHONE</code>, <code>PIN</code>,
|
|
1895
1950
|
* <code>SSN</code>, or <code>ALL</code>.</p>
|
|
1951
|
+
* <p>Note that if you include <code>PiiEntityTypes</code> in your request, you must also include
|
|
1952
|
+
* <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
|
|
1953
|
+
* <p>If you include <code>ContentRedactionType</code> or
|
|
1954
|
+
* <code>ContentIdentificationType</code> in your request, but do not include
|
|
1955
|
+
* <code>PiiEntityTypes</code>, all PII is redacted or identified.</p>
|
|
1896
1956
|
* @public
|
|
1897
1957
|
*/
|
|
1898
1958
|
PiiEntityTypes?: string;
|
|
@@ -1908,9 +1968,9 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1908
1968
|
LanguageModelName?: string;
|
|
1909
1969
|
/**
|
|
1910
1970
|
* <p>Enables automatic language identification for your transcription.</p>
|
|
1911
|
-
* <p>If you include <code>IdentifyLanguage</code>, you
|
|
1971
|
+
* <p>If you include <code>IdentifyLanguage</code>, you must include a list of
|
|
1912
1972
|
* language codes, using <code>LanguageOptions</code>, that you think may be present in
|
|
1913
|
-
* your audio stream.
|
|
1973
|
+
* your audio stream. </p>
|
|
1914
1974
|
* <p>You can also include a preferred language using <code>PreferredLanguage</code>. Adding a
|
|
1915
1975
|
* preferred language can help Amazon Transcribe identify the language faster than if you omit this
|
|
1916
1976
|
* parameter.</p>
|
|
@@ -1927,11 +1987,10 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1927
1987
|
IdentifyLanguage?: boolean;
|
|
1928
1988
|
/**
|
|
1929
1989
|
* <p>Specify two or more language codes that represent the languages you think may be present
|
|
1930
|
-
* in your media; including more than five is not recommended
|
|
1931
|
-
* not include this parameter.</p>
|
|
1990
|
+
* in your media; including more than five is not recommended.</p>
|
|
1932
1991
|
* <p>Including language options can improve the accuracy of language identification.</p>
|
|
1933
1992
|
* <p>If you include <code>LanguageOptions</code> in your request, you must also include
|
|
1934
|
-
* <code>IdentifyLanguage</code>.</p>
|
|
1993
|
+
* <code>IdentifyLanguage</code> or <code>IdentifyMultipleLanguages</code>.</p>
|
|
1935
1994
|
* <p>For a list of languages supported with Amazon Transcribe streaming, refer to the
|
|
1936
1995
|
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported
|
|
1937
1996
|
* languages</a> table.</p>
|
|
@@ -1952,7 +2011,7 @@ export interface StartStreamTranscriptionRequest {
|
|
|
1952
2011
|
PreferredLanguage?: LanguageCode;
|
|
1953
2012
|
/**
|
|
1954
2013
|
* <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>
|
|
1955
|
-
* <p>If you include <code>IdentifyMultipleLanguages</code>, you
|
|
2014
|
+
* <p>If you include <code>IdentifyMultipleLanguages</code>, you must include a list of language codes, using <code>LanguageOptions</code>, that you think may be present in your stream.</p>
|
|
1956
2015
|
* <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>
|
|
1957
2016
|
* <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>
|
|
1958
2017
|
* @public
|
|
@@ -2199,7 +2258,7 @@ export interface StartStreamTranscriptionResponse {
|
|
|
2199
2258
|
*/
|
|
2200
2259
|
ShowSpeakerLabel?: boolean;
|
|
2201
2260
|
/**
|
|
2202
|
-
* <p>Shows whether
|
|
2261
|
+
* <p>Shows whether channel identification was enabled for your transcription.</p>
|
|
2203
2262
|
* @public
|
|
2204
2263
|
*/
|
|
2205
2264
|
EnableChannelIdentification?: boolean;
|
|
@@ -305,20 +305,60 @@ export declare const ContentRedactionType: {
|
|
|
305
305
|
export type ContentRedactionType =
|
|
306
306
|
(typeof ContentRedactionType)[keyof typeof ContentRedactionType];
|
|
307
307
|
export declare const LanguageCode: {
|
|
308
|
+
readonly AF_ZA: "af-ZA";
|
|
309
|
+
readonly AR_AE: "ar-AE";
|
|
310
|
+
readonly AR_SA: "ar-SA";
|
|
311
|
+
readonly CA_ES: "ca-ES";
|
|
312
|
+
readonly CS_CZ: "cs-CZ";
|
|
313
|
+
readonly DA_DK: "da-DK";
|
|
314
|
+
readonly DE_CH: "de-CH";
|
|
308
315
|
readonly DE_DE: "de-DE";
|
|
316
|
+
readonly EL_GR: "el-GR";
|
|
317
|
+
readonly EN_AB: "en-AB";
|
|
309
318
|
readonly EN_AU: "en-AU";
|
|
310
319
|
readonly EN_GB: "en-GB";
|
|
320
|
+
readonly EN_IE: "en-IE";
|
|
321
|
+
readonly EN_IN: "en-IN";
|
|
322
|
+
readonly EN_NZ: "en-NZ";
|
|
311
323
|
readonly EN_US: "en-US";
|
|
324
|
+
readonly EN_WL: "en-WL";
|
|
325
|
+
readonly EN_ZA: "en-ZA";
|
|
326
|
+
readonly ES_ES: "es-ES";
|
|
312
327
|
readonly ES_US: "es-US";
|
|
328
|
+
readonly EU_ES: "eu-ES";
|
|
329
|
+
readonly FA_IR: "fa-IR";
|
|
330
|
+
readonly FI_FI: "fi-FI";
|
|
313
331
|
readonly FR_CA: "fr-CA";
|
|
314
332
|
readonly FR_FR: "fr-FR";
|
|
333
|
+
readonly GL_ES: "gl-ES";
|
|
334
|
+
readonly HE_IL: "he-IL";
|
|
315
335
|
readonly HI_IN: "hi-IN";
|
|
336
|
+
readonly HR_HR: "hr-HR";
|
|
337
|
+
readonly ID_ID: "id-ID";
|
|
316
338
|
readonly IT_IT: "it-IT";
|
|
317
339
|
readonly JA_JP: "ja-JP";
|
|
318
340
|
readonly KO_KR: "ko-KR";
|
|
341
|
+
readonly LV_LV: "lv-LV";
|
|
342
|
+
readonly MS_MY: "ms-MY";
|
|
343
|
+
readonly NL_NL: "nl-NL";
|
|
344
|
+
readonly NO_NO: "no-NO";
|
|
345
|
+
readonly PL_PL: "pl-PL";
|
|
319
346
|
readonly PT_BR: "pt-BR";
|
|
347
|
+
readonly PT_PT: "pt-PT";
|
|
348
|
+
readonly RO_RO: "ro-RO";
|
|
349
|
+
readonly RU_RU: "ru-RU";
|
|
350
|
+
readonly SK_SK: "sk-SK";
|
|
351
|
+
readonly SO_SO: "so-SO";
|
|
352
|
+
readonly SR_RS: "sr-RS";
|
|
353
|
+
readonly SV_SE: "sv-SE";
|
|
320
354
|
readonly TH_TH: "th-TH";
|
|
355
|
+
readonly TL_PH: "tl-PH";
|
|
356
|
+
readonly UK_UA: "uk-UA";
|
|
357
|
+
readonly VI_VN: "vi-VN";
|
|
321
358
|
readonly ZH_CN: "zh-CN";
|
|
359
|
+
readonly ZH_HK: "zh-HK";
|
|
360
|
+
readonly ZH_TW: "zh-TW";
|
|
361
|
+
readonly ZU_ZA: "zu-ZA";
|
|
322
362
|
};
|
|
323
363
|
export type LanguageCode = (typeof LanguageCode)[keyof typeof LanguageCode];
|
|
324
364
|
export interface LanguageWithScore {
|
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.672.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-transcribe-streaming",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
25
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sso-oidc": "3.670.0",
|
|
25
|
+
"@aws-sdk/client-sts": "3.670.0",
|
|
26
26
|
"@aws-sdk/core": "3.667.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.670.0",
|
|
28
28
|
"@aws-sdk/eventstream-handler-node": "3.667.0",
|
|
29
29
|
"@aws-sdk/middleware-eventstream": "3.667.0",
|
|
30
30
|
"@aws-sdk/middleware-host-header": "3.667.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@aws-sdk/region-config-resolver": "3.667.0",
|
|
37
37
|
"@aws-sdk/types": "3.667.0",
|
|
38
38
|
"@aws-sdk/util-endpoints": "3.667.0",
|
|
39
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
39
|
+
"@aws-sdk/util-user-agent-browser": "3.670.0",
|
|
40
40
|
"@aws-sdk/util-user-agent-node": "3.669.0",
|
|
41
41
|
"@smithy/config-resolver": "^3.0.9",
|
|
42
42
|
"@smithy/core": "^2.4.8",
|