@aws-sdk/client-transcribe-streaming 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/TranscribeStreamingServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_restJson1.js +67 -124
- package/dist-es/index.js +1 -0
- package/dist-es/models/TranscribeStreamingServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_restJson1.js +85 -139
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/TranscribeStreamingServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/ts3.4/TranscribeStreaming.d.ts +15 -0
- package/dist-types/ts3.4/TranscribeStreamingClient.d.ts +82 -0
- package/dist-types/ts3.4/commands/StartMedicalStreamTranscriptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartStreamTranscriptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/TranscribeStreamingServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +653 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +40 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +40 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +39 -39
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { StartStreamTranscriptionRequest, StartStreamTranscriptionResponse } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, TranscribeStreamingClientResolvedConfig } from "../TranscribeStreamingClient";
|
|
5
|
+
export interface StartStreamTranscriptionCommandInput extends StartStreamTranscriptionRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StartStreamTranscriptionCommandOutput extends StartStreamTranscriptionResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class StartStreamTranscriptionCommand extends $Command<StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput, TranscribeStreamingClientResolvedConfig> {
|
|
11
|
+
readonly input: StartStreamTranscriptionCommandInput;
|
|
12
|
+
constructor(input: StartStreamTranscriptionCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TranscribeStreamingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class TranscribeStreamingServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { TranscribeStreamingServiceException as __BaseException } from "./TranscribeStreamingServiceException";
|
|
3
|
+
|
|
4
|
+
export interface Entity {
|
|
5
|
+
|
|
6
|
+
StartTime?: number;
|
|
7
|
+
|
|
8
|
+
EndTime?: number;
|
|
9
|
+
|
|
10
|
+
Category?: string;
|
|
11
|
+
|
|
12
|
+
Type?: string;
|
|
13
|
+
|
|
14
|
+
Content?: string;
|
|
15
|
+
|
|
16
|
+
Confidence?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace Entity {
|
|
19
|
+
|
|
20
|
+
const filterSensitiveLog: (obj: Entity) => any;
|
|
21
|
+
}
|
|
22
|
+
export declare enum ItemType {
|
|
23
|
+
PRONUNCIATION = "pronunciation",
|
|
24
|
+
PUNCTUATION = "punctuation"
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Item {
|
|
28
|
+
|
|
29
|
+
StartTime?: number;
|
|
30
|
+
|
|
31
|
+
EndTime?: number;
|
|
32
|
+
|
|
33
|
+
Type?: ItemType | string;
|
|
34
|
+
|
|
35
|
+
Content?: string;
|
|
36
|
+
|
|
37
|
+
VocabularyFilterMatch?: boolean;
|
|
38
|
+
|
|
39
|
+
Speaker?: string;
|
|
40
|
+
|
|
41
|
+
Confidence?: number;
|
|
42
|
+
|
|
43
|
+
Stable?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace Item {
|
|
46
|
+
|
|
47
|
+
const filterSensitiveLog: (obj: Item) => any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface Alternative {
|
|
51
|
+
|
|
52
|
+
Transcript?: string;
|
|
53
|
+
|
|
54
|
+
Items?: Item[];
|
|
55
|
+
|
|
56
|
+
Entities?: Entity[];
|
|
57
|
+
}
|
|
58
|
+
export declare namespace Alternative {
|
|
59
|
+
|
|
60
|
+
const filterSensitiveLog: (obj: Alternative) => any;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface AudioEvent {
|
|
64
|
+
|
|
65
|
+
AudioChunk?: Uint8Array;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace AudioEvent {
|
|
68
|
+
|
|
69
|
+
const filterSensitiveLog: (obj: AudioEvent) => any;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare type AudioStream = AudioStream.AudioEventMember | AudioStream.$UnknownMember;
|
|
73
|
+
export declare namespace AudioStream {
|
|
74
|
+
|
|
75
|
+
interface AudioEventMember {
|
|
76
|
+
AudioEvent: AudioEvent;
|
|
77
|
+
$unknown?: never;
|
|
78
|
+
}
|
|
79
|
+
interface $UnknownMember {
|
|
80
|
+
AudioEvent?: never;
|
|
81
|
+
$unknown: [
|
|
82
|
+
string,
|
|
83
|
+
any
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
interface Visitor<T> {
|
|
87
|
+
AudioEvent: (value: AudioEvent) => T;
|
|
88
|
+
_: (name: string, value: any) => T;
|
|
89
|
+
}
|
|
90
|
+
const visit: <T>(value: AudioStream, visitor: Visitor<T>) => T;
|
|
91
|
+
|
|
92
|
+
const filterSensitiveLog: (obj: AudioStream) => any;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export declare class BadRequestException extends __BaseException {
|
|
96
|
+
readonly name: "BadRequestException";
|
|
97
|
+
readonly $fault: "client";
|
|
98
|
+
Message?: string;
|
|
99
|
+
|
|
100
|
+
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export declare class ConflictException extends __BaseException {
|
|
104
|
+
readonly name: "ConflictException";
|
|
105
|
+
readonly $fault: "client";
|
|
106
|
+
Message?: string;
|
|
107
|
+
|
|
108
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
109
|
+
}
|
|
110
|
+
export declare enum ContentIdentificationType {
|
|
111
|
+
PII = "PII"
|
|
112
|
+
}
|
|
113
|
+
export declare enum ContentRedactionType {
|
|
114
|
+
PII = "PII"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export declare class InternalFailureException extends __BaseException {
|
|
118
|
+
readonly name: "InternalFailureException";
|
|
119
|
+
readonly $fault: "server";
|
|
120
|
+
Message?: string;
|
|
121
|
+
|
|
122
|
+
constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
|
|
123
|
+
}
|
|
124
|
+
export declare enum LanguageCode {
|
|
125
|
+
DE_DE = "de-DE",
|
|
126
|
+
EN_AU = "en-AU",
|
|
127
|
+
EN_GB = "en-GB",
|
|
128
|
+
EN_US = "en-US",
|
|
129
|
+
ES_US = "es-US",
|
|
130
|
+
FR_CA = "fr-CA",
|
|
131
|
+
FR_FR = "fr-FR",
|
|
132
|
+
IT_IT = "it-IT",
|
|
133
|
+
JA_JP = "ja-JP",
|
|
134
|
+
KO_KR = "ko-KR",
|
|
135
|
+
PT_BR = "pt-BR",
|
|
136
|
+
ZH_CN = "zh-CN"
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface LanguageWithScore {
|
|
140
|
+
|
|
141
|
+
LanguageCode?: LanguageCode | string;
|
|
142
|
+
|
|
143
|
+
Score?: number;
|
|
144
|
+
}
|
|
145
|
+
export declare namespace LanguageWithScore {
|
|
146
|
+
|
|
147
|
+
const filterSensitiveLog: (obj: LanguageWithScore) => any;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export declare class LimitExceededException extends __BaseException {
|
|
151
|
+
readonly name: "LimitExceededException";
|
|
152
|
+
readonly $fault: "client";
|
|
153
|
+
Message?: string;
|
|
154
|
+
|
|
155
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
156
|
+
}
|
|
157
|
+
export declare enum MediaEncoding {
|
|
158
|
+
FLAC = "flac",
|
|
159
|
+
OGG_OPUS = "ogg-opus",
|
|
160
|
+
PCM = "pcm"
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface MedicalEntity {
|
|
164
|
+
|
|
165
|
+
StartTime?: number;
|
|
166
|
+
|
|
167
|
+
EndTime?: number;
|
|
168
|
+
|
|
169
|
+
Category?: string;
|
|
170
|
+
|
|
171
|
+
Content?: string;
|
|
172
|
+
|
|
173
|
+
Confidence?: number;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace MedicalEntity {
|
|
176
|
+
|
|
177
|
+
const filterSensitiveLog: (obj: MedicalEntity) => any;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface MedicalItem {
|
|
181
|
+
|
|
182
|
+
StartTime?: number;
|
|
183
|
+
|
|
184
|
+
EndTime?: number;
|
|
185
|
+
|
|
186
|
+
Type?: ItemType | string;
|
|
187
|
+
|
|
188
|
+
Content?: string;
|
|
189
|
+
|
|
190
|
+
Confidence?: number;
|
|
191
|
+
|
|
192
|
+
Speaker?: string;
|
|
193
|
+
}
|
|
194
|
+
export declare namespace MedicalItem {
|
|
195
|
+
|
|
196
|
+
const filterSensitiveLog: (obj: MedicalItem) => any;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface MedicalAlternative {
|
|
200
|
+
|
|
201
|
+
Transcript?: string;
|
|
202
|
+
|
|
203
|
+
Items?: MedicalItem[];
|
|
204
|
+
|
|
205
|
+
Entities?: MedicalEntity[];
|
|
206
|
+
}
|
|
207
|
+
export declare namespace MedicalAlternative {
|
|
208
|
+
|
|
209
|
+
const filterSensitiveLog: (obj: MedicalAlternative) => any;
|
|
210
|
+
}
|
|
211
|
+
export declare enum MedicalContentIdentificationType {
|
|
212
|
+
PHI = "PHI"
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface MedicalResult {
|
|
216
|
+
|
|
217
|
+
ResultId?: string;
|
|
218
|
+
|
|
219
|
+
StartTime?: number;
|
|
220
|
+
|
|
221
|
+
EndTime?: number;
|
|
222
|
+
|
|
223
|
+
IsPartial?: boolean;
|
|
224
|
+
|
|
225
|
+
Alternatives?: MedicalAlternative[];
|
|
226
|
+
|
|
227
|
+
ChannelId?: string;
|
|
228
|
+
}
|
|
229
|
+
export declare namespace MedicalResult {
|
|
230
|
+
|
|
231
|
+
const filterSensitiveLog: (obj: MedicalResult) => any;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface MedicalTranscript {
|
|
235
|
+
|
|
236
|
+
Results?: MedicalResult[];
|
|
237
|
+
}
|
|
238
|
+
export declare namespace MedicalTranscript {
|
|
239
|
+
|
|
240
|
+
const filterSensitiveLog: (obj: MedicalTranscript) => any;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export interface MedicalTranscriptEvent {
|
|
244
|
+
|
|
245
|
+
Transcript?: MedicalTranscript;
|
|
246
|
+
}
|
|
247
|
+
export declare namespace MedicalTranscriptEvent {
|
|
248
|
+
|
|
249
|
+
const filterSensitiveLog: (obj: MedicalTranscriptEvent) => any;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
253
|
+
readonly name: "ServiceUnavailableException";
|
|
254
|
+
readonly $fault: "server";
|
|
255
|
+
Message?: string;
|
|
256
|
+
|
|
257
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export declare type MedicalTranscriptResultStream = MedicalTranscriptResultStream.BadRequestExceptionMember | MedicalTranscriptResultStream.ConflictExceptionMember | MedicalTranscriptResultStream.InternalFailureExceptionMember | MedicalTranscriptResultStream.LimitExceededExceptionMember | MedicalTranscriptResultStream.ServiceUnavailableExceptionMember | MedicalTranscriptResultStream.TranscriptEventMember | MedicalTranscriptResultStream.$UnknownMember;
|
|
261
|
+
export declare namespace MedicalTranscriptResultStream {
|
|
262
|
+
|
|
263
|
+
interface TranscriptEventMember {
|
|
264
|
+
TranscriptEvent: MedicalTranscriptEvent;
|
|
265
|
+
BadRequestException?: never;
|
|
266
|
+
LimitExceededException?: never;
|
|
267
|
+
InternalFailureException?: never;
|
|
268
|
+
ConflictException?: never;
|
|
269
|
+
ServiceUnavailableException?: never;
|
|
270
|
+
$unknown?: never;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
interface BadRequestExceptionMember {
|
|
274
|
+
TranscriptEvent?: never;
|
|
275
|
+
BadRequestException: BadRequestException;
|
|
276
|
+
LimitExceededException?: never;
|
|
277
|
+
InternalFailureException?: never;
|
|
278
|
+
ConflictException?: never;
|
|
279
|
+
ServiceUnavailableException?: never;
|
|
280
|
+
$unknown?: never;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface LimitExceededExceptionMember {
|
|
284
|
+
TranscriptEvent?: never;
|
|
285
|
+
BadRequestException?: never;
|
|
286
|
+
LimitExceededException: LimitExceededException;
|
|
287
|
+
InternalFailureException?: never;
|
|
288
|
+
ConflictException?: never;
|
|
289
|
+
ServiceUnavailableException?: never;
|
|
290
|
+
$unknown?: never;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
interface InternalFailureExceptionMember {
|
|
294
|
+
TranscriptEvent?: never;
|
|
295
|
+
BadRequestException?: never;
|
|
296
|
+
LimitExceededException?: never;
|
|
297
|
+
InternalFailureException: InternalFailureException;
|
|
298
|
+
ConflictException?: never;
|
|
299
|
+
ServiceUnavailableException?: never;
|
|
300
|
+
$unknown?: never;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
interface ConflictExceptionMember {
|
|
304
|
+
TranscriptEvent?: never;
|
|
305
|
+
BadRequestException?: never;
|
|
306
|
+
LimitExceededException?: never;
|
|
307
|
+
InternalFailureException?: never;
|
|
308
|
+
ConflictException: ConflictException;
|
|
309
|
+
ServiceUnavailableException?: never;
|
|
310
|
+
$unknown?: never;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
interface ServiceUnavailableExceptionMember {
|
|
314
|
+
TranscriptEvent?: never;
|
|
315
|
+
BadRequestException?: never;
|
|
316
|
+
LimitExceededException?: never;
|
|
317
|
+
InternalFailureException?: never;
|
|
318
|
+
ConflictException?: never;
|
|
319
|
+
ServiceUnavailableException: ServiceUnavailableException;
|
|
320
|
+
$unknown?: never;
|
|
321
|
+
}
|
|
322
|
+
interface $UnknownMember {
|
|
323
|
+
TranscriptEvent?: never;
|
|
324
|
+
BadRequestException?: never;
|
|
325
|
+
LimitExceededException?: never;
|
|
326
|
+
InternalFailureException?: never;
|
|
327
|
+
ConflictException?: never;
|
|
328
|
+
ServiceUnavailableException?: never;
|
|
329
|
+
$unknown: [
|
|
330
|
+
string,
|
|
331
|
+
any
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
interface Visitor<T> {
|
|
335
|
+
TranscriptEvent: (value: MedicalTranscriptEvent) => T;
|
|
336
|
+
BadRequestException: (value: BadRequestException) => T;
|
|
337
|
+
LimitExceededException: (value: LimitExceededException) => T;
|
|
338
|
+
InternalFailureException: (value: InternalFailureException) => T;
|
|
339
|
+
ConflictException: (value: ConflictException) => T;
|
|
340
|
+
ServiceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
341
|
+
_: (name: string, value: any) => T;
|
|
342
|
+
}
|
|
343
|
+
const visit: <T>(value: MedicalTranscriptResultStream, visitor: Visitor<T>) => T;
|
|
344
|
+
|
|
345
|
+
const filterSensitiveLog: (obj: MedicalTranscriptResultStream) => any;
|
|
346
|
+
}
|
|
347
|
+
export declare enum PartialResultsStability {
|
|
348
|
+
HIGH = "high",
|
|
349
|
+
LOW = "low",
|
|
350
|
+
MEDIUM = "medium"
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface Result {
|
|
354
|
+
|
|
355
|
+
ResultId?: string;
|
|
356
|
+
|
|
357
|
+
StartTime?: number;
|
|
358
|
+
|
|
359
|
+
EndTime?: number;
|
|
360
|
+
|
|
361
|
+
IsPartial?: boolean;
|
|
362
|
+
|
|
363
|
+
Alternatives?: Alternative[];
|
|
364
|
+
|
|
365
|
+
ChannelId?: string;
|
|
366
|
+
|
|
367
|
+
LanguageCode?: LanguageCode | string;
|
|
368
|
+
|
|
369
|
+
LanguageIdentification?: LanguageWithScore[];
|
|
370
|
+
}
|
|
371
|
+
export declare namespace Result {
|
|
372
|
+
|
|
373
|
+
const filterSensitiveLog: (obj: Result) => any;
|
|
374
|
+
}
|
|
375
|
+
export declare enum Specialty {
|
|
376
|
+
CARDIOLOGY = "CARDIOLOGY",
|
|
377
|
+
NEUROLOGY = "NEUROLOGY",
|
|
378
|
+
ONCOLOGY = "ONCOLOGY",
|
|
379
|
+
PRIMARYCARE = "PRIMARYCARE",
|
|
380
|
+
RADIOLOGY = "RADIOLOGY",
|
|
381
|
+
UROLOGY = "UROLOGY"
|
|
382
|
+
}
|
|
383
|
+
export declare enum Type {
|
|
384
|
+
CONVERSATION = "CONVERSATION",
|
|
385
|
+
DICTATION = "DICTATION"
|
|
386
|
+
}
|
|
387
|
+
export interface StartMedicalStreamTranscriptionRequest {
|
|
388
|
+
|
|
389
|
+
LanguageCode: LanguageCode | string | undefined;
|
|
390
|
+
|
|
391
|
+
MediaSampleRateHertz: number | undefined;
|
|
392
|
+
|
|
393
|
+
MediaEncoding: MediaEncoding | string | undefined;
|
|
394
|
+
|
|
395
|
+
VocabularyName?: string;
|
|
396
|
+
|
|
397
|
+
Specialty: Specialty | string | undefined;
|
|
398
|
+
|
|
399
|
+
Type: Type | string | undefined;
|
|
400
|
+
|
|
401
|
+
ShowSpeakerLabel?: boolean;
|
|
402
|
+
|
|
403
|
+
SessionId?: string;
|
|
404
|
+
|
|
405
|
+
AudioStream: AsyncIterable<AudioStream> | undefined;
|
|
406
|
+
|
|
407
|
+
EnableChannelIdentification?: boolean;
|
|
408
|
+
|
|
409
|
+
NumberOfChannels?: number;
|
|
410
|
+
|
|
411
|
+
ContentIdentificationType?: MedicalContentIdentificationType | string;
|
|
412
|
+
}
|
|
413
|
+
export declare namespace StartMedicalStreamTranscriptionRequest {
|
|
414
|
+
|
|
415
|
+
const filterSensitiveLog: (obj: StartMedicalStreamTranscriptionRequest) => any;
|
|
416
|
+
}
|
|
417
|
+
export interface StartMedicalStreamTranscriptionResponse {
|
|
418
|
+
|
|
419
|
+
RequestId?: string;
|
|
420
|
+
|
|
421
|
+
LanguageCode?: LanguageCode | string;
|
|
422
|
+
|
|
423
|
+
MediaSampleRateHertz?: number;
|
|
424
|
+
|
|
425
|
+
MediaEncoding?: MediaEncoding | string;
|
|
426
|
+
|
|
427
|
+
VocabularyName?: string;
|
|
428
|
+
|
|
429
|
+
Specialty?: Specialty | string;
|
|
430
|
+
|
|
431
|
+
Type?: Type | string;
|
|
432
|
+
|
|
433
|
+
ShowSpeakerLabel?: boolean;
|
|
434
|
+
|
|
435
|
+
SessionId?: string;
|
|
436
|
+
|
|
437
|
+
TranscriptResultStream?: AsyncIterable<MedicalTranscriptResultStream>;
|
|
438
|
+
|
|
439
|
+
EnableChannelIdentification?: boolean;
|
|
440
|
+
|
|
441
|
+
NumberOfChannels?: number;
|
|
442
|
+
|
|
443
|
+
ContentIdentificationType?: MedicalContentIdentificationType | string;
|
|
444
|
+
}
|
|
445
|
+
export declare namespace StartMedicalStreamTranscriptionResponse {
|
|
446
|
+
|
|
447
|
+
const filterSensitiveLog: (obj: StartMedicalStreamTranscriptionResponse) => any;
|
|
448
|
+
}
|
|
449
|
+
export declare enum VocabularyFilterMethod {
|
|
450
|
+
MASK = "mask",
|
|
451
|
+
REMOVE = "remove",
|
|
452
|
+
TAG = "tag"
|
|
453
|
+
}
|
|
454
|
+
export interface StartStreamTranscriptionRequest {
|
|
455
|
+
|
|
456
|
+
LanguageCode?: LanguageCode | string;
|
|
457
|
+
|
|
458
|
+
MediaSampleRateHertz: number | undefined;
|
|
459
|
+
|
|
460
|
+
MediaEncoding: MediaEncoding | string | undefined;
|
|
461
|
+
|
|
462
|
+
VocabularyName?: string;
|
|
463
|
+
|
|
464
|
+
SessionId?: string;
|
|
465
|
+
|
|
466
|
+
AudioStream: AsyncIterable<AudioStream> | undefined;
|
|
467
|
+
|
|
468
|
+
VocabularyFilterName?: string;
|
|
469
|
+
|
|
470
|
+
VocabularyFilterMethod?: VocabularyFilterMethod | string;
|
|
471
|
+
|
|
472
|
+
ShowSpeakerLabel?: boolean;
|
|
473
|
+
|
|
474
|
+
EnableChannelIdentification?: boolean;
|
|
475
|
+
|
|
476
|
+
NumberOfChannels?: number;
|
|
477
|
+
|
|
478
|
+
EnablePartialResultsStabilization?: boolean;
|
|
479
|
+
|
|
480
|
+
PartialResultsStability?: PartialResultsStability | string;
|
|
481
|
+
|
|
482
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
483
|
+
|
|
484
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
485
|
+
|
|
486
|
+
PiiEntityTypes?: string;
|
|
487
|
+
|
|
488
|
+
LanguageModelName?: string;
|
|
489
|
+
|
|
490
|
+
IdentifyLanguage?: boolean;
|
|
491
|
+
|
|
492
|
+
LanguageOptions?: string;
|
|
493
|
+
|
|
494
|
+
PreferredLanguage?: LanguageCode | string;
|
|
495
|
+
}
|
|
496
|
+
export declare namespace StartStreamTranscriptionRequest {
|
|
497
|
+
|
|
498
|
+
const filterSensitiveLog: (obj: StartStreamTranscriptionRequest) => any;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface Transcript {
|
|
502
|
+
|
|
503
|
+
Results?: Result[];
|
|
504
|
+
}
|
|
505
|
+
export declare namespace Transcript {
|
|
506
|
+
|
|
507
|
+
const filterSensitiveLog: (obj: Transcript) => any;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface TranscriptEvent {
|
|
511
|
+
|
|
512
|
+
Transcript?: Transcript;
|
|
513
|
+
}
|
|
514
|
+
export declare namespace TranscriptEvent {
|
|
515
|
+
|
|
516
|
+
const filterSensitiveLog: (obj: TranscriptEvent) => any;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export declare type TranscriptResultStream = TranscriptResultStream.BadRequestExceptionMember | TranscriptResultStream.ConflictExceptionMember | TranscriptResultStream.InternalFailureExceptionMember | TranscriptResultStream.LimitExceededExceptionMember | TranscriptResultStream.ServiceUnavailableExceptionMember | TranscriptResultStream.TranscriptEventMember | TranscriptResultStream.$UnknownMember;
|
|
520
|
+
export declare namespace TranscriptResultStream {
|
|
521
|
+
|
|
522
|
+
interface TranscriptEventMember {
|
|
523
|
+
TranscriptEvent: TranscriptEvent;
|
|
524
|
+
BadRequestException?: never;
|
|
525
|
+
LimitExceededException?: never;
|
|
526
|
+
InternalFailureException?: never;
|
|
527
|
+
ConflictException?: never;
|
|
528
|
+
ServiceUnavailableException?: never;
|
|
529
|
+
$unknown?: never;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
interface BadRequestExceptionMember {
|
|
533
|
+
TranscriptEvent?: never;
|
|
534
|
+
BadRequestException: BadRequestException;
|
|
535
|
+
LimitExceededException?: never;
|
|
536
|
+
InternalFailureException?: never;
|
|
537
|
+
ConflictException?: never;
|
|
538
|
+
ServiceUnavailableException?: never;
|
|
539
|
+
$unknown?: never;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
interface LimitExceededExceptionMember {
|
|
543
|
+
TranscriptEvent?: never;
|
|
544
|
+
BadRequestException?: never;
|
|
545
|
+
LimitExceededException: LimitExceededException;
|
|
546
|
+
InternalFailureException?: never;
|
|
547
|
+
ConflictException?: never;
|
|
548
|
+
ServiceUnavailableException?: never;
|
|
549
|
+
$unknown?: never;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
interface InternalFailureExceptionMember {
|
|
553
|
+
TranscriptEvent?: never;
|
|
554
|
+
BadRequestException?: never;
|
|
555
|
+
LimitExceededException?: never;
|
|
556
|
+
InternalFailureException: InternalFailureException;
|
|
557
|
+
ConflictException?: never;
|
|
558
|
+
ServiceUnavailableException?: never;
|
|
559
|
+
$unknown?: never;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
interface ConflictExceptionMember {
|
|
563
|
+
TranscriptEvent?: never;
|
|
564
|
+
BadRequestException?: never;
|
|
565
|
+
LimitExceededException?: never;
|
|
566
|
+
InternalFailureException?: never;
|
|
567
|
+
ConflictException: ConflictException;
|
|
568
|
+
ServiceUnavailableException?: never;
|
|
569
|
+
$unknown?: never;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
interface ServiceUnavailableExceptionMember {
|
|
573
|
+
TranscriptEvent?: never;
|
|
574
|
+
BadRequestException?: never;
|
|
575
|
+
LimitExceededException?: never;
|
|
576
|
+
InternalFailureException?: never;
|
|
577
|
+
ConflictException?: never;
|
|
578
|
+
ServiceUnavailableException: ServiceUnavailableException;
|
|
579
|
+
$unknown?: never;
|
|
580
|
+
}
|
|
581
|
+
interface $UnknownMember {
|
|
582
|
+
TranscriptEvent?: never;
|
|
583
|
+
BadRequestException?: never;
|
|
584
|
+
LimitExceededException?: never;
|
|
585
|
+
InternalFailureException?: never;
|
|
586
|
+
ConflictException?: never;
|
|
587
|
+
ServiceUnavailableException?: never;
|
|
588
|
+
$unknown: [
|
|
589
|
+
string,
|
|
590
|
+
any
|
|
591
|
+
];
|
|
592
|
+
}
|
|
593
|
+
interface Visitor<T> {
|
|
594
|
+
TranscriptEvent: (value: TranscriptEvent) => T;
|
|
595
|
+
BadRequestException: (value: BadRequestException) => T;
|
|
596
|
+
LimitExceededException: (value: LimitExceededException) => T;
|
|
597
|
+
InternalFailureException: (value: InternalFailureException) => T;
|
|
598
|
+
ConflictException: (value: ConflictException) => T;
|
|
599
|
+
ServiceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
600
|
+
_: (name: string, value: any) => T;
|
|
601
|
+
}
|
|
602
|
+
const visit: <T>(value: TranscriptResultStream, visitor: Visitor<T>) => T;
|
|
603
|
+
|
|
604
|
+
const filterSensitiveLog: (obj: TranscriptResultStream) => any;
|
|
605
|
+
}
|
|
606
|
+
export interface StartStreamTranscriptionResponse {
|
|
607
|
+
|
|
608
|
+
RequestId?: string;
|
|
609
|
+
|
|
610
|
+
LanguageCode?: LanguageCode | string;
|
|
611
|
+
|
|
612
|
+
MediaSampleRateHertz?: number;
|
|
613
|
+
|
|
614
|
+
MediaEncoding?: MediaEncoding | string;
|
|
615
|
+
|
|
616
|
+
VocabularyName?: string;
|
|
617
|
+
|
|
618
|
+
SessionId?: string;
|
|
619
|
+
|
|
620
|
+
TranscriptResultStream?: AsyncIterable<TranscriptResultStream>;
|
|
621
|
+
|
|
622
|
+
VocabularyFilterName?: string;
|
|
623
|
+
|
|
624
|
+
VocabularyFilterMethod?: VocabularyFilterMethod | string;
|
|
625
|
+
|
|
626
|
+
ShowSpeakerLabel?: boolean;
|
|
627
|
+
|
|
628
|
+
EnableChannelIdentification?: boolean;
|
|
629
|
+
|
|
630
|
+
NumberOfChannels?: number;
|
|
631
|
+
|
|
632
|
+
EnablePartialResultsStabilization?: boolean;
|
|
633
|
+
|
|
634
|
+
PartialResultsStability?: PartialResultsStability | string;
|
|
635
|
+
|
|
636
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
637
|
+
|
|
638
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
639
|
+
|
|
640
|
+
PiiEntityTypes?: string;
|
|
641
|
+
|
|
642
|
+
LanguageModelName?: string;
|
|
643
|
+
|
|
644
|
+
IdentifyLanguage?: boolean;
|
|
645
|
+
|
|
646
|
+
LanguageOptions?: string;
|
|
647
|
+
|
|
648
|
+
PreferredLanguage?: LanguageCode | string;
|
|
649
|
+
}
|
|
650
|
+
export declare namespace StartStreamTranscriptionResponse {
|
|
651
|
+
|
|
652
|
+
const filterSensitiveLog: (obj: StartStreamTranscriptionResponse) => any;
|
|
653
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { EventStreamSerdeContext as __EventStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { StartMedicalStreamTranscriptionCommandInput, StartMedicalStreamTranscriptionCommandOutput } from "../commands/StartMedicalStreamTranscriptionCommand";
|
|
4
|
+
import { StartStreamTranscriptionCommandInput, StartStreamTranscriptionCommandOutput } from "../commands/StartStreamTranscriptionCommand";
|
|
5
|
+
export declare const serializeAws_restJson1StartMedicalStreamTranscriptionCommand: (input: StartMedicalStreamTranscriptionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
|
|
6
|
+
export declare const serializeAws_restJson1StartStreamTranscriptionCommand: (input: StartStreamTranscriptionCommandInput, context: __SerdeContext & __EventStreamSerdeContext) => Promise<__HttpRequest>;
|
|
7
|
+
export declare const deserializeAws_restJson1StartMedicalStreamTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartMedicalStreamTranscriptionCommandOutput>;
|
|
8
|
+
export declare const deserializeAws_restJson1StartStreamTranscriptionCommand: (output: __HttpResponse, context: __SerdeContext & __EventStreamSerdeContext) => Promise<StartStreamTranscriptionCommandOutput>;
|