@aws-sdk/client-transcribe-streaming 3.476.0 → 3.477.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/protocols/Aws_restJson1.js +161 -210
- package/dist-es/protocols/Aws_restJson1.js +161 -210
- package/package.json +5 -4
|
@@ -1,153 +1,93 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_StartStreamTranscriptionCommand = exports.de_StartMedicalStreamTranscriptionCommand = exports.de_StartCallAnalyticsStreamTranscriptionCommand = exports.se_StartStreamTranscriptionCommand = exports.se_StartMedicalStreamTranscriptionCommand = exports.se_StartCallAnalyticsStreamTranscriptionCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const TranscribeStreamingServiceException_1 = require("../models/TranscribeStreamingServiceException");
|
|
8
8
|
const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
],
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"x-amzn-transcribe-partial-results-stability": input.PartialResultsStability,
|
|
27
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
28
|
-
"x-amzn-transcribe-content-redaction-type": input.ContentRedactionType,
|
|
29
|
-
"x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes,
|
|
30
|
-
});
|
|
31
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/call-analytics-stream-transcription";
|
|
11
|
+
[_xatlc]: input[_LC],
|
|
12
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
13
|
+
[_xatme]: input[_ME],
|
|
14
|
+
[_xatvn]: input[_VN],
|
|
15
|
+
[_xatsi]: input[_SI],
|
|
16
|
+
[_xatvfn]: input[_VFN],
|
|
17
|
+
[_xatvfm]: input[_VFM],
|
|
18
|
+
[_xatlmn]: input[_LMN],
|
|
19
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
20
|
+
[_xatprs]: input[_PRS],
|
|
21
|
+
[_xatcit]: input[_CIT],
|
|
22
|
+
[_xatcrt]: input[_CRT],
|
|
23
|
+
[_xatpet]: input[_PET],
|
|
24
|
+
});
|
|
25
|
+
b.bp("/call-analytics-stream-transcription");
|
|
32
26
|
let body;
|
|
33
27
|
if (input.AudioStream !== undefined) {
|
|
34
28
|
body = se_AudioStream(input.AudioStream, context);
|
|
35
29
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hostname,
|
|
39
|
-
port,
|
|
40
|
-
method: "POST",
|
|
41
|
-
headers,
|
|
42
|
-
path: resolvedPath,
|
|
43
|
-
body,
|
|
44
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
45
32
|
};
|
|
46
33
|
exports.se_StartCallAnalyticsStreamTranscriptionCommand = se_StartCallAnalyticsStreamTranscriptionCommand;
|
|
47
34
|
const se_StartMedicalStreamTranscriptionCommand = async (input, context) => {
|
|
48
|
-
const
|
|
35
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
49
36
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
],
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"x-amzn-transcribe-session-id": input.SessionId,
|
|
64
|
-
"x-amzn-transcribe-enable-channel-identification": [
|
|
65
|
-
() => isSerializableHeaderValue(input.EnableChannelIdentification),
|
|
66
|
-
() => input.EnableChannelIdentification.toString(),
|
|
67
|
-
],
|
|
68
|
-
"x-amzn-transcribe-number-of-channels": [
|
|
69
|
-
() => isSerializableHeaderValue(input.NumberOfChannels),
|
|
70
|
-
() => input.NumberOfChannels.toString(),
|
|
71
|
-
],
|
|
72
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
73
|
-
});
|
|
74
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription";
|
|
37
|
+
[_xatlc]: input[_LC],
|
|
38
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
39
|
+
[_xatme]: input[_ME],
|
|
40
|
+
[_xatvn]: input[_VN],
|
|
41
|
+
[_xats]: input[_S],
|
|
42
|
+
[_xatt]: input[_T],
|
|
43
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
44
|
+
[_xatsi]: input[_SI],
|
|
45
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
46
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
47
|
+
[_xatcit]: input[_CIT],
|
|
48
|
+
});
|
|
49
|
+
b.bp("/medical-stream-transcription");
|
|
75
50
|
let body;
|
|
76
51
|
if (input.AudioStream !== undefined) {
|
|
77
52
|
body = se_AudioStream(input.AudioStream, context);
|
|
78
53
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
hostname,
|
|
82
|
-
port,
|
|
83
|
-
method: "POST",
|
|
84
|
-
headers,
|
|
85
|
-
path: resolvedPath,
|
|
86
|
-
body,
|
|
87
|
-
});
|
|
54
|
+
b.m("POST").h(headers).b(body);
|
|
55
|
+
return b.build();
|
|
88
56
|
};
|
|
89
57
|
exports.se_StartMedicalStreamTranscriptionCommand = se_StartMedicalStreamTranscriptionCommand;
|
|
90
58
|
const se_StartStreamTranscriptionCommand = async (input, context) => {
|
|
91
|
-
const
|
|
59
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
92
60
|
const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
],
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
],
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
],
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
],
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
() => input.EnablePartialResultsStabilization.toString(),
|
|
118
|
-
],
|
|
119
|
-
"x-amzn-transcribe-partial-results-stability": input.PartialResultsStability,
|
|
120
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
121
|
-
"x-amzn-transcribe-content-redaction-type": input.ContentRedactionType,
|
|
122
|
-
"x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes,
|
|
123
|
-
"x-amzn-transcribe-language-model-name": input.LanguageModelName,
|
|
124
|
-
"x-amzn-transcribe-identify-language": [
|
|
125
|
-
() => isSerializableHeaderValue(input.IdentifyLanguage),
|
|
126
|
-
() => input.IdentifyLanguage.toString(),
|
|
127
|
-
],
|
|
128
|
-
"x-amzn-transcribe-language-options": input.LanguageOptions,
|
|
129
|
-
"x-amzn-transcribe-preferred-language": input.PreferredLanguage,
|
|
130
|
-
"x-amzn-transcribe-identify-multiple-languages": [
|
|
131
|
-
() => isSerializableHeaderValue(input.IdentifyMultipleLanguages),
|
|
132
|
-
() => input.IdentifyMultipleLanguages.toString(),
|
|
133
|
-
],
|
|
134
|
-
"x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
|
|
135
|
-
"x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
|
|
136
|
-
});
|
|
137
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
|
|
61
|
+
[_xatlc]: input[_LC],
|
|
62
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
63
|
+
[_xatme]: input[_ME],
|
|
64
|
+
[_xatvn]: input[_VN],
|
|
65
|
+
[_xatsi]: input[_SI],
|
|
66
|
+
[_xatvfn]: input[_VFN],
|
|
67
|
+
[_xatvfm]: input[_VFM],
|
|
68
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
69
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
70
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
71
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
72
|
+
[_xatprs]: input[_PRS],
|
|
73
|
+
[_xatcit]: input[_CIT],
|
|
74
|
+
[_xatcrt]: input[_CRT],
|
|
75
|
+
[_xatpet]: input[_PET],
|
|
76
|
+
[_xatlmn]: input[_LMN],
|
|
77
|
+
[_xatil]: [() => isSerializableHeaderValue(input[_IL]), () => input[_IL].toString()],
|
|
78
|
+
[_xatlo]: input[_LO],
|
|
79
|
+
[_xatpl]: input[_PL],
|
|
80
|
+
[_xatiml]: [() => isSerializableHeaderValue(input[_IML]), () => input[_IML].toString()],
|
|
81
|
+
[_xatvn_]: input[_VNo],
|
|
82
|
+
[_xatvfn_]: input[_VFNo],
|
|
83
|
+
});
|
|
84
|
+
b.bp("/stream-transcription");
|
|
138
85
|
let body;
|
|
139
86
|
if (input.AudioStream !== undefined) {
|
|
140
87
|
body = se_AudioStream(input.AudioStream, context);
|
|
141
88
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
hostname,
|
|
145
|
-
port,
|
|
146
|
-
method: "POST",
|
|
147
|
-
headers,
|
|
148
|
-
path: resolvedPath,
|
|
149
|
-
body,
|
|
150
|
-
});
|
|
89
|
+
b.m("POST").h(headers).b(body);
|
|
90
|
+
return b.build();
|
|
151
91
|
};
|
|
152
92
|
exports.se_StartStreamTranscriptionCommand = se_StartStreamTranscriptionCommand;
|
|
153
93
|
const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
|
|
@@ -156,26 +96,20 @@ const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context)
|
|
|
156
96
|
}
|
|
157
97
|
const contents = (0, smithy_client_1.map)({
|
|
158
98
|
$metadata: deserializeMetadata(output),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
],
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
() => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]),
|
|
174
|
-
],
|
|
175
|
-
PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]],
|
|
176
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
177
|
-
ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]],
|
|
178
|
-
PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]],
|
|
99
|
+
[_RI]: [, output.headers[_xari]],
|
|
100
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
101
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, smithy_client_1.strictParseInt32)(output.headers[_xatsr])],
|
|
102
|
+
[_ME]: [, output.headers[_xatme]],
|
|
103
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
104
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
105
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
106
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
107
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
108
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, smithy_client_1.parseBoolean)(output.headers[_xateprs])],
|
|
109
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
110
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
111
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
112
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
179
113
|
});
|
|
180
114
|
const data = output.body;
|
|
181
115
|
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
@@ -219,30 +153,18 @@ const de_StartMedicalStreamTranscriptionCommand = async (output, context) => {
|
|
|
219
153
|
}
|
|
220
154
|
const contents = (0, smithy_client_1.map)({
|
|
221
155
|
$metadata: deserializeMetadata(output),
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
],
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
() => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-show-speaker-label"]),
|
|
235
|
-
],
|
|
236
|
-
SessionId: [, output.headers["x-amzn-transcribe-session-id"]],
|
|
237
|
-
EnableChannelIdentification: [
|
|
238
|
-
() => void 0 !== output.headers["x-amzn-transcribe-enable-channel-identification"],
|
|
239
|
-
() => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-channel-identification"]),
|
|
240
|
-
],
|
|
241
|
-
NumberOfChannels: [
|
|
242
|
-
() => void 0 !== output.headers["x-amzn-transcribe-number-of-channels"],
|
|
243
|
-
() => (0, smithy_client_1.strictParseInt32)(output.headers["x-amzn-transcribe-number-of-channels"]),
|
|
244
|
-
],
|
|
245
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
156
|
+
[_RI]: [, output.headers[_xari]],
|
|
157
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
158
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, smithy_client_1.strictParseInt32)(output.headers[_xatsr])],
|
|
159
|
+
[_ME]: [, output.headers[_xatme]],
|
|
160
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
161
|
+
[_S]: [, output.headers[_xats]],
|
|
162
|
+
[_T]: [, output.headers[_xatt]],
|
|
163
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, smithy_client_1.parseBoolean)(output.headers[_xatssl])],
|
|
164
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
165
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, smithy_client_1.parseBoolean)(output.headers[_xateci])],
|
|
166
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, smithy_client_1.strictParseInt32)(output.headers[_xatnoc])],
|
|
167
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
246
168
|
});
|
|
247
169
|
const data = output.body;
|
|
248
170
|
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
@@ -286,50 +208,29 @@ const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
|
286
208
|
}
|
|
287
209
|
const contents = (0, smithy_client_1.map)({
|
|
288
210
|
$metadata: deserializeMetadata(output),
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
],
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
],
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
],
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
],
|
|
312
|
-
EnablePartialResultsStabilization: [
|
|
313
|
-
() => void 0 !== output.headers["x-amzn-transcribe-enable-partial-results-stabilization"],
|
|
314
|
-
() => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]),
|
|
315
|
-
],
|
|
316
|
-
PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]],
|
|
317
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
318
|
-
ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]],
|
|
319
|
-
PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]],
|
|
320
|
-
LanguageModelName: [, output.headers["x-amzn-transcribe-language-model-name"]],
|
|
321
|
-
IdentifyLanguage: [
|
|
322
|
-
() => void 0 !== output.headers["x-amzn-transcribe-identify-language"],
|
|
323
|
-
() => (0, smithy_client_1.parseBoolean)(output.headers["x-amzn-transcribe-identify-language"]),
|
|
324
|
-
],
|
|
325
|
-
LanguageOptions: [, output.headers["x-amzn-transcribe-language-options"]],
|
|
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
|
-
],
|
|
331
|
-
VocabularyNames: [, output.headers["x-amzn-transcribe-vocabulary-names"]],
|
|
332
|
-
VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]],
|
|
211
|
+
[_RI]: [, output.headers[_xari]],
|
|
212
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
213
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => (0, smithy_client_1.strictParseInt32)(output.headers[_xatsr])],
|
|
214
|
+
[_ME]: [, output.headers[_xatme]],
|
|
215
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
216
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
217
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
218
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
219
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => (0, smithy_client_1.parseBoolean)(output.headers[_xatssl])],
|
|
220
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => (0, smithy_client_1.parseBoolean)(output.headers[_xateci])],
|
|
221
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => (0, smithy_client_1.strictParseInt32)(output.headers[_xatnoc])],
|
|
222
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => (0, smithy_client_1.parseBoolean)(output.headers[_xateprs])],
|
|
223
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
224
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
225
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
226
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
227
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
228
|
+
[_IL]: [() => void 0 !== output.headers[_xatil], () => (0, smithy_client_1.parseBoolean)(output.headers[_xatil])],
|
|
229
|
+
[_LO]: [, output.headers[_xatlo]],
|
|
230
|
+
[_PL]: [, output.headers[_xatpl]],
|
|
231
|
+
[_IML]: [() => void 0 !== output.headers[_xatiml], () => (0, smithy_client_1.parseBoolean)(output.headers[_xatiml])],
|
|
232
|
+
[_VNo]: [, output.headers[_xatvn_]],
|
|
233
|
+
[_VFNo]: [, output.headers[_xatvfn_]],
|
|
333
234
|
});
|
|
334
235
|
const data = output.body;
|
|
335
236
|
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
@@ -871,6 +772,56 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
871
772
|
value !== "" &&
|
|
872
773
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
873
774
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
775
|
+
const _CIT = "ContentIdentificationType";
|
|
776
|
+
const _CRT = "ContentRedactionType";
|
|
777
|
+
const _ECI = "EnableChannelIdentification";
|
|
778
|
+
const _EPRS = "EnablePartialResultsStabilization";
|
|
779
|
+
const _IL = "IdentifyLanguage";
|
|
780
|
+
const _IML = "IdentifyMultipleLanguages";
|
|
781
|
+
const _LC = "LanguageCode";
|
|
782
|
+
const _LMN = "LanguageModelName";
|
|
783
|
+
const _LO = "LanguageOptions";
|
|
784
|
+
const _ME = "MediaEncoding";
|
|
785
|
+
const _MSRH = "MediaSampleRateHertz";
|
|
786
|
+
const _NOC = "NumberOfChannels";
|
|
787
|
+
const _PET = "PiiEntityTypes";
|
|
788
|
+
const _PL = "PreferredLanguage";
|
|
789
|
+
const _PRS = "PartialResultsStability";
|
|
790
|
+
const _RI = "RequestId";
|
|
791
|
+
const _S = "Specialty";
|
|
792
|
+
const _SI = "SessionId";
|
|
793
|
+
const _SSL = "ShowSpeakerLabel";
|
|
794
|
+
const _T = "Type";
|
|
795
|
+
const _VFM = "VocabularyFilterMethod";
|
|
796
|
+
const _VFN = "VocabularyFilterName";
|
|
797
|
+
const _VFNo = "VocabularyFilterNames";
|
|
798
|
+
const _VN = "VocabularyName";
|
|
799
|
+
const _VNo = "VocabularyNames";
|
|
800
|
+
const _xari = "x-amzn-request-id";
|
|
801
|
+
const _xatcit = "x-amzn-transcribe-content-identification-type";
|
|
802
|
+
const _xatcrt = "x-amzn-transcribe-content-redaction-type";
|
|
803
|
+
const _xateci = "x-amzn-transcribe-enable-channel-identification";
|
|
804
|
+
const _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
|
|
805
|
+
const _xatil = "x-amzn-transcribe-identify-language";
|
|
806
|
+
const _xatiml = "x-amzn-transcribe-identify-multiple-languages";
|
|
807
|
+
const _xatlc = "x-amzn-transcribe-language-code";
|
|
808
|
+
const _xatlmn = "x-amzn-transcribe-language-model-name";
|
|
809
|
+
const _xatlo = "x-amzn-transcribe-language-options";
|
|
810
|
+
const _xatme = "x-amzn-transcribe-media-encoding";
|
|
811
|
+
const _xatnoc = "x-amzn-transcribe-number-of-channels";
|
|
812
|
+
const _xatpet = "x-amzn-transcribe-pii-entity-types";
|
|
813
|
+
const _xatpl = "x-amzn-transcribe-preferred-language";
|
|
814
|
+
const _xatprs = "x-amzn-transcribe-partial-results-stability";
|
|
815
|
+
const _xats = "x-amzn-transcribe-specialty";
|
|
816
|
+
const _xatsi = "x-amzn-transcribe-session-id";
|
|
817
|
+
const _xatsr = "x-amzn-transcribe-sample-rate";
|
|
818
|
+
const _xatssl = "x-amzn-transcribe-show-speaker-label";
|
|
819
|
+
const _xatt = "x-amzn-transcribe-type";
|
|
820
|
+
const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
|
|
821
|
+
const _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
|
|
822
|
+
const _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
|
|
823
|
+
const _xatvn = "x-amzn-transcribe-vocabulary-name";
|
|
824
|
+
const _xatvn_ = "x-amzn-transcribe-vocabulary-names";
|
|
874
825
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
875
826
|
if (encoded.length) {
|
|
876
827
|
return JSON.parse(encoded);
|
|
@@ -1,148 +1,88 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseBoolean as __parseBoolean, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { AudioStream, BadRequestException, ConflictException, InternalFailureException, LimitExceededException, ServiceUnavailableException, } from "../models/models_0";
|
|
4
4
|
import { TranscribeStreamingServiceException as __BaseException } from "../models/TranscribeStreamingServiceException";
|
|
5
5
|
export const se_StartCallAnalyticsStreamTranscriptionCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
],
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"x-amzn-transcribe-partial-results-stability": input.PartialResultsStability,
|
|
24
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
25
|
-
"x-amzn-transcribe-content-redaction-type": input.ContentRedactionType,
|
|
26
|
-
"x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes,
|
|
27
|
-
});
|
|
28
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/call-analytics-stream-transcription";
|
|
8
|
+
[_xatlc]: input[_LC],
|
|
9
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
10
|
+
[_xatme]: input[_ME],
|
|
11
|
+
[_xatvn]: input[_VN],
|
|
12
|
+
[_xatsi]: input[_SI],
|
|
13
|
+
[_xatvfn]: input[_VFN],
|
|
14
|
+
[_xatvfm]: input[_VFM],
|
|
15
|
+
[_xatlmn]: input[_LMN],
|
|
16
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
17
|
+
[_xatprs]: input[_PRS],
|
|
18
|
+
[_xatcit]: input[_CIT],
|
|
19
|
+
[_xatcrt]: input[_CRT],
|
|
20
|
+
[_xatpet]: input[_PET],
|
|
21
|
+
});
|
|
22
|
+
b.bp("/call-analytics-stream-transcription");
|
|
29
23
|
let body;
|
|
30
24
|
if (input.AudioStream !== undefined) {
|
|
31
25
|
body = se_AudioStream(input.AudioStream, context);
|
|
32
26
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
hostname,
|
|
36
|
-
port,
|
|
37
|
-
method: "POST",
|
|
38
|
-
headers,
|
|
39
|
-
path: resolvedPath,
|
|
40
|
-
body,
|
|
41
|
-
});
|
|
27
|
+
b.m("POST").h(headers).b(body);
|
|
28
|
+
return b.build();
|
|
42
29
|
};
|
|
43
30
|
export const se_StartMedicalStreamTranscriptionCommand = async (input, context) => {
|
|
44
|
-
const
|
|
31
|
+
const b = rb(input, context);
|
|
45
32
|
const headers = map({}, isSerializableHeaderValue, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"x-amzn-transcribe-session-id": input.SessionId,
|
|
60
|
-
"x-amzn-transcribe-enable-channel-identification": [
|
|
61
|
-
() => isSerializableHeaderValue(input.EnableChannelIdentification),
|
|
62
|
-
() => input.EnableChannelIdentification.toString(),
|
|
63
|
-
],
|
|
64
|
-
"x-amzn-transcribe-number-of-channels": [
|
|
65
|
-
() => isSerializableHeaderValue(input.NumberOfChannels),
|
|
66
|
-
() => input.NumberOfChannels.toString(),
|
|
67
|
-
],
|
|
68
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
69
|
-
});
|
|
70
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/medical-stream-transcription";
|
|
33
|
+
[_xatlc]: input[_LC],
|
|
34
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
35
|
+
[_xatme]: input[_ME],
|
|
36
|
+
[_xatvn]: input[_VN],
|
|
37
|
+
[_xats]: input[_S],
|
|
38
|
+
[_xatt]: input[_T],
|
|
39
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
40
|
+
[_xatsi]: input[_SI],
|
|
41
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
42
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
43
|
+
[_xatcit]: input[_CIT],
|
|
44
|
+
});
|
|
45
|
+
b.bp("/medical-stream-transcription");
|
|
71
46
|
let body;
|
|
72
47
|
if (input.AudioStream !== undefined) {
|
|
73
48
|
body = se_AudioStream(input.AudioStream, context);
|
|
74
49
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
method: "POST",
|
|
80
|
-
headers,
|
|
81
|
-
path: resolvedPath,
|
|
82
|
-
body,
|
|
83
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
84
52
|
};
|
|
85
53
|
export const se_StartStreamTranscriptionCommand = async (input, context) => {
|
|
86
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
87
55
|
const headers = map({}, isSerializableHeaderValue, {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
],
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
],
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
],
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
],
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
() => input.EnablePartialResultsStabilization.toString(),
|
|
113
|
-
],
|
|
114
|
-
"x-amzn-transcribe-partial-results-stability": input.PartialResultsStability,
|
|
115
|
-
"x-amzn-transcribe-content-identification-type": input.ContentIdentificationType,
|
|
116
|
-
"x-amzn-transcribe-content-redaction-type": input.ContentRedactionType,
|
|
117
|
-
"x-amzn-transcribe-pii-entity-types": input.PiiEntityTypes,
|
|
118
|
-
"x-amzn-transcribe-language-model-name": input.LanguageModelName,
|
|
119
|
-
"x-amzn-transcribe-identify-language": [
|
|
120
|
-
() => isSerializableHeaderValue(input.IdentifyLanguage),
|
|
121
|
-
() => input.IdentifyLanguage.toString(),
|
|
122
|
-
],
|
|
123
|
-
"x-amzn-transcribe-language-options": input.LanguageOptions,
|
|
124
|
-
"x-amzn-transcribe-preferred-language": input.PreferredLanguage,
|
|
125
|
-
"x-amzn-transcribe-identify-multiple-languages": [
|
|
126
|
-
() => isSerializableHeaderValue(input.IdentifyMultipleLanguages),
|
|
127
|
-
() => input.IdentifyMultipleLanguages.toString(),
|
|
128
|
-
],
|
|
129
|
-
"x-amzn-transcribe-vocabulary-names": input.VocabularyNames,
|
|
130
|
-
"x-amzn-transcribe-vocabulary-filter-names": input.VocabularyFilterNames,
|
|
131
|
-
});
|
|
132
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stream-transcription";
|
|
56
|
+
[_xatlc]: input[_LC],
|
|
57
|
+
[_xatsr]: [() => isSerializableHeaderValue(input[_MSRH]), () => input[_MSRH].toString()],
|
|
58
|
+
[_xatme]: input[_ME],
|
|
59
|
+
[_xatvn]: input[_VN],
|
|
60
|
+
[_xatsi]: input[_SI],
|
|
61
|
+
[_xatvfn]: input[_VFN],
|
|
62
|
+
[_xatvfm]: input[_VFM],
|
|
63
|
+
[_xatssl]: [() => isSerializableHeaderValue(input[_SSL]), () => input[_SSL].toString()],
|
|
64
|
+
[_xateci]: [() => isSerializableHeaderValue(input[_ECI]), () => input[_ECI].toString()],
|
|
65
|
+
[_xatnoc]: [() => isSerializableHeaderValue(input[_NOC]), () => input[_NOC].toString()],
|
|
66
|
+
[_xateprs]: [() => isSerializableHeaderValue(input[_EPRS]), () => input[_EPRS].toString()],
|
|
67
|
+
[_xatprs]: input[_PRS],
|
|
68
|
+
[_xatcit]: input[_CIT],
|
|
69
|
+
[_xatcrt]: input[_CRT],
|
|
70
|
+
[_xatpet]: input[_PET],
|
|
71
|
+
[_xatlmn]: input[_LMN],
|
|
72
|
+
[_xatil]: [() => isSerializableHeaderValue(input[_IL]), () => input[_IL].toString()],
|
|
73
|
+
[_xatlo]: input[_LO],
|
|
74
|
+
[_xatpl]: input[_PL],
|
|
75
|
+
[_xatiml]: [() => isSerializableHeaderValue(input[_IML]), () => input[_IML].toString()],
|
|
76
|
+
[_xatvn_]: input[_VNo],
|
|
77
|
+
[_xatvfn_]: input[_VFNo],
|
|
78
|
+
});
|
|
79
|
+
b.bp("/stream-transcription");
|
|
133
80
|
let body;
|
|
134
81
|
if (input.AudioStream !== undefined) {
|
|
135
82
|
body = se_AudioStream(input.AudioStream, context);
|
|
136
83
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
hostname,
|
|
140
|
-
port,
|
|
141
|
-
method: "POST",
|
|
142
|
-
headers,
|
|
143
|
-
path: resolvedPath,
|
|
144
|
-
body,
|
|
145
|
-
});
|
|
84
|
+
b.m("POST").h(headers).b(body);
|
|
85
|
+
return b.build();
|
|
146
86
|
};
|
|
147
87
|
export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, context) => {
|
|
148
88
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -150,26 +90,20 @@ export const de_StartCallAnalyticsStreamTranscriptionCommand = async (output, co
|
|
|
150
90
|
}
|
|
151
91
|
const contents = map({
|
|
152
92
|
$metadata: deserializeMetadata(output),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
() => __parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]),
|
|
168
|
-
],
|
|
169
|
-
PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]],
|
|
170
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
171
|
-
ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]],
|
|
172
|
-
PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]],
|
|
93
|
+
[_RI]: [, output.headers[_xari]],
|
|
94
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
95
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])],
|
|
96
|
+
[_ME]: [, output.headers[_xatme]],
|
|
97
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
98
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
99
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
100
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
101
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
102
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => __parseBoolean(output.headers[_xateprs])],
|
|
103
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
104
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
105
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
106
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
173
107
|
});
|
|
174
108
|
const data = output.body;
|
|
175
109
|
contents.CallAnalyticsTranscriptResultStream = de_CallAnalyticsTranscriptResultStream(data, context);
|
|
@@ -212,30 +146,18 @@ export const de_StartMedicalStreamTranscriptionCommand = async (output, context)
|
|
|
212
146
|
}
|
|
213
147
|
const contents = map({
|
|
214
148
|
$metadata: deserializeMetadata(output),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
],
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
() => __parseBoolean(output.headers["x-amzn-transcribe-show-speaker-label"]),
|
|
228
|
-
],
|
|
229
|
-
SessionId: [, output.headers["x-amzn-transcribe-session-id"]],
|
|
230
|
-
EnableChannelIdentification: [
|
|
231
|
-
() => void 0 !== output.headers["x-amzn-transcribe-enable-channel-identification"],
|
|
232
|
-
() => __parseBoolean(output.headers["x-amzn-transcribe-enable-channel-identification"]),
|
|
233
|
-
],
|
|
234
|
-
NumberOfChannels: [
|
|
235
|
-
() => void 0 !== output.headers["x-amzn-transcribe-number-of-channels"],
|
|
236
|
-
() => __strictParseInt32(output.headers["x-amzn-transcribe-number-of-channels"]),
|
|
237
|
-
],
|
|
238
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
149
|
+
[_RI]: [, output.headers[_xari]],
|
|
150
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
151
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])],
|
|
152
|
+
[_ME]: [, output.headers[_xatme]],
|
|
153
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
154
|
+
[_S]: [, output.headers[_xats]],
|
|
155
|
+
[_T]: [, output.headers[_xatt]],
|
|
156
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => __parseBoolean(output.headers[_xatssl])],
|
|
157
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
158
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => __parseBoolean(output.headers[_xateci])],
|
|
159
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => __strictParseInt32(output.headers[_xatnoc])],
|
|
160
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
239
161
|
});
|
|
240
162
|
const data = output.body;
|
|
241
163
|
contents.TranscriptResultStream = de_MedicalTranscriptResultStream(data, context);
|
|
@@ -278,50 +200,29 @@ export const de_StartStreamTranscriptionCommand = async (output, context) => {
|
|
|
278
200
|
}
|
|
279
201
|
const contents = map({
|
|
280
202
|
$metadata: deserializeMetadata(output),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
],
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
],
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
],
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
],
|
|
304
|
-
EnablePartialResultsStabilization: [
|
|
305
|
-
() => void 0 !== output.headers["x-amzn-transcribe-enable-partial-results-stabilization"],
|
|
306
|
-
() => __parseBoolean(output.headers["x-amzn-transcribe-enable-partial-results-stabilization"]),
|
|
307
|
-
],
|
|
308
|
-
PartialResultsStability: [, output.headers["x-amzn-transcribe-partial-results-stability"]],
|
|
309
|
-
ContentIdentificationType: [, output.headers["x-amzn-transcribe-content-identification-type"]],
|
|
310
|
-
ContentRedactionType: [, output.headers["x-amzn-transcribe-content-redaction-type"]],
|
|
311
|
-
PiiEntityTypes: [, output.headers["x-amzn-transcribe-pii-entity-types"]],
|
|
312
|
-
LanguageModelName: [, output.headers["x-amzn-transcribe-language-model-name"]],
|
|
313
|
-
IdentifyLanguage: [
|
|
314
|
-
() => void 0 !== output.headers["x-amzn-transcribe-identify-language"],
|
|
315
|
-
() => __parseBoolean(output.headers["x-amzn-transcribe-identify-language"]),
|
|
316
|
-
],
|
|
317
|
-
LanguageOptions: [, output.headers["x-amzn-transcribe-language-options"]],
|
|
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
|
-
],
|
|
323
|
-
VocabularyNames: [, output.headers["x-amzn-transcribe-vocabulary-names"]],
|
|
324
|
-
VocabularyFilterNames: [, output.headers["x-amzn-transcribe-vocabulary-filter-names"]],
|
|
203
|
+
[_RI]: [, output.headers[_xari]],
|
|
204
|
+
[_LC]: [, output.headers[_xatlc]],
|
|
205
|
+
[_MSRH]: [() => void 0 !== output.headers[_xatsr], () => __strictParseInt32(output.headers[_xatsr])],
|
|
206
|
+
[_ME]: [, output.headers[_xatme]],
|
|
207
|
+
[_VN]: [, output.headers[_xatvn]],
|
|
208
|
+
[_SI]: [, output.headers[_xatsi]],
|
|
209
|
+
[_VFN]: [, output.headers[_xatvfn]],
|
|
210
|
+
[_VFM]: [, output.headers[_xatvfm]],
|
|
211
|
+
[_SSL]: [() => void 0 !== output.headers[_xatssl], () => __parseBoolean(output.headers[_xatssl])],
|
|
212
|
+
[_ECI]: [() => void 0 !== output.headers[_xateci], () => __parseBoolean(output.headers[_xateci])],
|
|
213
|
+
[_NOC]: [() => void 0 !== output.headers[_xatnoc], () => __strictParseInt32(output.headers[_xatnoc])],
|
|
214
|
+
[_EPRS]: [() => void 0 !== output.headers[_xateprs], () => __parseBoolean(output.headers[_xateprs])],
|
|
215
|
+
[_PRS]: [, output.headers[_xatprs]],
|
|
216
|
+
[_CIT]: [, output.headers[_xatcit]],
|
|
217
|
+
[_CRT]: [, output.headers[_xatcrt]],
|
|
218
|
+
[_PET]: [, output.headers[_xatpet]],
|
|
219
|
+
[_LMN]: [, output.headers[_xatlmn]],
|
|
220
|
+
[_IL]: [() => void 0 !== output.headers[_xatil], () => __parseBoolean(output.headers[_xatil])],
|
|
221
|
+
[_LO]: [, output.headers[_xatlo]],
|
|
222
|
+
[_PL]: [, output.headers[_xatpl]],
|
|
223
|
+
[_IML]: [() => void 0 !== output.headers[_xatiml], () => __parseBoolean(output.headers[_xatiml])],
|
|
224
|
+
[_VNo]: [, output.headers[_xatvn_]],
|
|
225
|
+
[_VFNo]: [, output.headers[_xatvfn_]],
|
|
325
226
|
});
|
|
326
227
|
const data = output.body;
|
|
327
228
|
contents.TranscriptResultStream = de_TranscriptResultStream(data, context);
|
|
@@ -862,6 +763,56 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
862
763
|
value !== "" &&
|
|
863
764
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
864
765
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
766
|
+
const _CIT = "ContentIdentificationType";
|
|
767
|
+
const _CRT = "ContentRedactionType";
|
|
768
|
+
const _ECI = "EnableChannelIdentification";
|
|
769
|
+
const _EPRS = "EnablePartialResultsStabilization";
|
|
770
|
+
const _IL = "IdentifyLanguage";
|
|
771
|
+
const _IML = "IdentifyMultipleLanguages";
|
|
772
|
+
const _LC = "LanguageCode";
|
|
773
|
+
const _LMN = "LanguageModelName";
|
|
774
|
+
const _LO = "LanguageOptions";
|
|
775
|
+
const _ME = "MediaEncoding";
|
|
776
|
+
const _MSRH = "MediaSampleRateHertz";
|
|
777
|
+
const _NOC = "NumberOfChannels";
|
|
778
|
+
const _PET = "PiiEntityTypes";
|
|
779
|
+
const _PL = "PreferredLanguage";
|
|
780
|
+
const _PRS = "PartialResultsStability";
|
|
781
|
+
const _RI = "RequestId";
|
|
782
|
+
const _S = "Specialty";
|
|
783
|
+
const _SI = "SessionId";
|
|
784
|
+
const _SSL = "ShowSpeakerLabel";
|
|
785
|
+
const _T = "Type";
|
|
786
|
+
const _VFM = "VocabularyFilterMethod";
|
|
787
|
+
const _VFN = "VocabularyFilterName";
|
|
788
|
+
const _VFNo = "VocabularyFilterNames";
|
|
789
|
+
const _VN = "VocabularyName";
|
|
790
|
+
const _VNo = "VocabularyNames";
|
|
791
|
+
const _xari = "x-amzn-request-id";
|
|
792
|
+
const _xatcit = "x-amzn-transcribe-content-identification-type";
|
|
793
|
+
const _xatcrt = "x-amzn-transcribe-content-redaction-type";
|
|
794
|
+
const _xateci = "x-amzn-transcribe-enable-channel-identification";
|
|
795
|
+
const _xateprs = "x-amzn-transcribe-enable-partial-results-stabilization";
|
|
796
|
+
const _xatil = "x-amzn-transcribe-identify-language";
|
|
797
|
+
const _xatiml = "x-amzn-transcribe-identify-multiple-languages";
|
|
798
|
+
const _xatlc = "x-amzn-transcribe-language-code";
|
|
799
|
+
const _xatlmn = "x-amzn-transcribe-language-model-name";
|
|
800
|
+
const _xatlo = "x-amzn-transcribe-language-options";
|
|
801
|
+
const _xatme = "x-amzn-transcribe-media-encoding";
|
|
802
|
+
const _xatnoc = "x-amzn-transcribe-number-of-channels";
|
|
803
|
+
const _xatpet = "x-amzn-transcribe-pii-entity-types";
|
|
804
|
+
const _xatpl = "x-amzn-transcribe-preferred-language";
|
|
805
|
+
const _xatprs = "x-amzn-transcribe-partial-results-stability";
|
|
806
|
+
const _xats = "x-amzn-transcribe-specialty";
|
|
807
|
+
const _xatsi = "x-amzn-transcribe-session-id";
|
|
808
|
+
const _xatsr = "x-amzn-transcribe-sample-rate";
|
|
809
|
+
const _xatssl = "x-amzn-transcribe-show-speaker-label";
|
|
810
|
+
const _xatt = "x-amzn-transcribe-type";
|
|
811
|
+
const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
|
|
812
|
+
const _xatvfn = "x-amzn-transcribe-vocabulary-filter-name";
|
|
813
|
+
const _xatvfn_ = "x-amzn-transcribe-vocabulary-filter-names";
|
|
814
|
+
const _xatvn = "x-amzn-transcribe-vocabulary-name";
|
|
815
|
+
const _xatvn_ = "x-amzn-transcribe-vocabulary-names";
|
|
865
816
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
866
817
|
if (encoded.length) {
|
|
867
818
|
return JSON.parse(encoded);
|
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.477.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
25
|
+
"@aws-sdk/core": "3.477.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
27
27
|
"@aws-sdk/eventstream-handler-node": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-eventstream": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
40
40
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
41
41
|
"@smithy/config-resolver": "^2.0.21",
|
|
42
|
+
"@smithy/core": "^1.2.0",
|
|
42
43
|
"@smithy/eventstream-serde-browser": "^2.0.15",
|
|
43
44
|
"@smithy/eventstream-serde-config-resolver": "^2.0.15",
|
|
44
45
|
"@smithy/eventstream-serde-node": "^2.0.15",
|