/
models_0.ts
5041 lines (4514 loc) · 210 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { TranscribeServiceException as __BaseException } from "./TranscribeServiceException";
/**
* <p>A time range, in milliseconds, between two points in your media file.</p>
* <p>You can use <code>StartTime</code> and <code>EndTime</code> to search a custom
* segment. For example, setting <code>StartTime</code> to 10000 and <code>EndTime</code>
* to 50000 only searches for your specified criteria in the audio contained between the 10,000
* millisecond mark and the 50,000 millisecond mark of your media file. You must use
* <code>StartTime</code> and <code>EndTime</code> as a set; that is, if you include one,
* you must include both.</p>
* <p>You can use also <code>First</code> to search from the start of the audio until the time
* you specify, or <code>Last</code> to search from the time you specify until the end of the
* audio. For example, setting <code>First</code> to 50000 only searches for your specified
* criteria in the audio contained between the start of the media file to the 50,000 millisecond
* mark. You can use <code>First</code> and <code>Last</code> independently of each
* other.</p>
* <p>If you prefer to use percentage instead of milliseconds, see
* .</p>
*/
export interface AbsoluteTimeRange {
/**
* <p>The time, in milliseconds, when Amazon Transcribe starts searching for the specified
* criteria in your audio. If you include <code>StartTime</code> in your request, you must also
* include <code>EndTime</code>.</p>
*/
StartTime?: number;
/**
* <p>The time, in milliseconds, when Amazon Transcribe stops searching for the specified criteria
* in your audio. If you include <code>EndTime</code> in your request, you must also include
* <code>StartTime</code>.</p>
*/
EndTime?: number;
/**
* <p>The time, in milliseconds, from the start of your media file until the value you specify in
* which Amazon Transcribe searches for your specified criteria.</p>
*/
First?: number;
/**
* <p>The time, in milliseconds, from the value you specify until the end of your media file in
* which Amazon Transcribe searches for your specified criteria.</p>
*/
Last?: number;
}
/**
* <p>Your request didn't pass one or more validation tests. This can occur when the entity you're
* trying to delete doesn't exist or if it's in a non-terminal state (such as
* <code>IN PROGRESS</code>). See the exception message field for more information.</p>
*/
export class BadRequestException extends __BaseException {
readonly name: "BadRequestException" = "BadRequestException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>) {
super({
name: "BadRequestException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, BadRequestException.prototype);
this.Message = opts.Message;
}
}
export enum BaseModelName {
NARROW_BAND = "NarrowBand",
WIDE_BAND = "WideBand",
}
export enum CallAnalyticsJobStatus {
COMPLETED = "COMPLETED",
FAILED = "FAILED",
IN_PROGRESS = "IN_PROGRESS",
QUEUED = "QUEUED",
}
export enum ParticipantRole {
AGENT = "AGENT",
CUSTOMER = "CUSTOMER",
}
/**
* <p>Allows you to specify which speaker is on which channel. For example, if your agent is the
* first participant to speak, you would set <code>ChannelId</code> to <code>0</code> (to
* indicate the first channel) and <code>ParticipantRole</code> to <code>AGENT</code> (to
* indicate that it's the agent speaking).</p>
*/
export interface ChannelDefinition {
/**
* <p>Specify the audio channel you want to define.</p>
*/
ChannelId?: number;
/**
* <p>Specify the speaker you want to define. Omitting this parameter is equivalent to specifying
* both participants.</p>
*/
ParticipantRole?: ParticipantRole | string;
}
export enum LanguageCode {
AF_ZA = "af-ZA",
AR_AE = "ar-AE",
AR_SA = "ar-SA",
DA_DK = "da-DK",
DE_CH = "de-CH",
DE_DE = "de-DE",
EN_AB = "en-AB",
EN_AU = "en-AU",
EN_GB = "en-GB",
EN_IE = "en-IE",
EN_IN = "en-IN",
EN_NZ = "en-NZ",
EN_US = "en-US",
EN_WL = "en-WL",
EN_ZA = "en-ZA",
ES_ES = "es-ES",
ES_US = "es-US",
FA_IR = "fa-IR",
FR_CA = "fr-CA",
FR_FR = "fr-FR",
HE_IL = "he-IL",
HI_IN = "hi-IN",
ID_ID = "id-ID",
IT_IT = "it-IT",
JA_JP = "ja-JP",
KO_KR = "ko-KR",
MS_MY = "ms-MY",
NL_NL = "nl-NL",
PT_BR = "pt-BR",
PT_PT = "pt-PT",
RU_RU = "ru-RU",
TA_IN = "ta-IN",
TE_IN = "te-IN",
TH_TH = "th-TH",
TR_TR = "tr-TR",
ZH_CN = "zh-CN",
ZH_TW = "zh-TW",
}
/**
* <p>Describes the Amazon S3 location of the media file you want to use in your
* request.</p>
*/
export interface Media {
/**
* <p>The Amazon S3 location of the media file you want to transcribe. For
* example:</p>
* <ul>
* <li>
* <p>
* <code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code>
* </p>
* </li>
* </ul>
* <p>Note that the Amazon S3 bucket that contains your input media must be located
* in the same Amazon Web Services Region where you're making your transcription
* request.</p>
*/
MediaFileUri?: string;
/**
* <p>The Amazon S3 location of the media file you want to redact. For
* example:</p>
* <ul>
* <li>
* <p>
* <code>s3://DOC-EXAMPLE-BUCKET/my-media-file.flac</code>
* </p>
* </li>
* <li>
* <p>
* <code>s3://DOC-EXAMPLE-BUCKET/media-files/my-media-file.flac</code>
* </p>
* </li>
* </ul>
* <p>Note that the Amazon S3 bucket that contains your input media must be located
* in the same Amazon Web Services Region where you're making your transcription
* request.</p>
* <important>
* <p>
* <code>RedactedMediaFileUri</code> is only supported for Call Analytics
* (<code>StartCallAnalyticsJob</code>) transcription requests.</p>
* </important>
*/
RedactedMediaFileUri?: string;
}
export enum MediaFormat {
AMR = "amr",
FLAC = "flac",
MP3 = "mp3",
MP4 = "mp4",
OGG = "ogg",
WAV = "wav",
WEBM = "webm",
}
export enum PiiEntityType {
ADDRESS = "ADDRESS",
ALL = "ALL",
BANK_ACCOUNT_NUMBER = "BANK_ACCOUNT_NUMBER",
BANK_ROUTING = "BANK_ROUTING",
CREDIT_DEBIT_CVV = "CREDIT_DEBIT_CVV",
CREDIT_DEBIT_EXPIRY = "CREDIT_DEBIT_EXPIRY",
CREDIT_DEBIT_NUMBER = "CREDIT_DEBIT_NUMBER",
EMAIL = "EMAIL",
NAME = "NAME",
PHONE = "PHONE",
PIN = "PIN",
SSN = "SSN",
}
export enum RedactionOutput {
REDACTED = "redacted",
REDACTED_AND_UNREDACTED = "redacted_and_unredacted",
}
export enum RedactionType {
PII = "PII",
}
/**
* <p>Allows you to redact or flag specified personally identifiable information (PII) in your transcript. If
* you use <code>ContentRedaction</code>, you must also include the sub-parameters:
* <code>PiiEntityTypes</code>, <code>RedactionOutput</code>, and
* <code>RedactionType</code>.</p>
*/
export interface ContentRedaction {
/**
* <p>Specify the category of information you want to redact; <code>PII</code> (personally
* identifiable information) is the only valid value. You can use <code>PiiEntityTypes</code> to
* choose which types of PII you want to redact.</p>
*/
RedactionType: RedactionType | string | undefined;
/**
* <p>Specify if you want only a redacted transcript, or if you want a redacted and an unredacted
* transcript.</p>
* <p>When you choose <code>redacted</code> Amazon Transcribe creates only a redacted
* transcript.</p>
* <p>When you choose <code>redacted_and_unredacted</code> Amazon Transcribe creates
* a redacted and an unredacted transcript (as two separate files).</p>
*/
RedactionOutput: RedactionOutput | string | undefined;
/**
* <p>Specify which types of personally identifiable information (PII) you want to redact in your
* transcript. You can include as many types as you'd like, or you can select
* <code>ALL</code>.</p>
*/
PiiEntityTypes?: (PiiEntityType | string)[];
}
/**
* <p>If using automatic language identification (<code>IdentifyLanguage</code>) in your request
* and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary
* filter, include <code>LanguageIdSettings</code> with the relevant sub-parameters
* (<code>VocabularyName</code>, <code>LanguageModelName</code>, and
* <code>VocabularyFilterName</code>).</p>
* <p>You can specify two or more language codes that represent the languages you think may be
* present in your media; including more than five is not recommended. Each language code you
* include can have an associated custom language model, custom vocabulary, and custom
* vocabulary filter. The languages you specify must match the languages of the specified custom
* language models, custom vocabularies, and custom vocabulary filters.</p>
* <p>To include language options using <code>IdentifyLanguage</code>
* <b>without</b> including a custom language model, a custom
* vocabulary, or a custom vocabulary filter, use <code>LanguageOptions</code> instead of
* <code>LanguageIdSettings</code>. Including language options can improve the accuracy of
* automatic language identification.</p>
* <p>If you want to include a custom language model with your request but
* <b>do not</b> want to use automatic language identification,
* use instead the <code></code> parameter with the
* <code>LanguageModelName</code> sub-parameter.</p>
* <p>If you want to include a custom vocabulary or a custom vocabulary filter (or both) with
* your request but <b>do not</b> want to use automatic
* language identification, use instead the <code></code>
* parameter with the <code>VocabularyName</code> or
* <code>VocabularyFilterName</code> (or both) sub-parameter.</p>
*/
export interface LanguageIdSettings {
/**
* <p>The name of the custom vocabulary you want to use when processing your transcription job.
* Vocabulary names are case sensitive.</p>
* <p>The language of the specified vocabulary must match the language code you specify in
* your transcription request. If the languages don't match, the vocabulary isn't applied. There
* are no errors or warnings associated with a language mismatch.</p>
*/
VocabularyName?: string;
/**
* <p>The name of the custom vocabulary filter you want to use when processing your
* transcription job. Vocabulary filter names are case sensitive.</p>
* <p>The language of the specified vocabulary filter must match the language code you specify
* in your transcription request. If the languages don't match, the vocabulary filter isn't applied.
* There are no errors or warnings associated with a language mismatch.</p>
* <p>Note that if you include <code>VocabularyFilterName</code> in your request, you must
* also include <code>VocabularyFilterMethod</code>.</p>
*/
VocabularyFilterName?: string;
/**
* <p>The name of the custom language model you want to use when processing your
* transcription job. Note that language model names are case sensitive.</p>
* <p>The language of the specified language model must match the language code you specify
* in your transcription request. If the languages don't match, the language model isn't applied.
* There are no errors or warnings associated with a language mismatch.</p>
*/
LanguageModelName?: string;
}
export enum VocabularyFilterMethod {
MASK = "mask",
REMOVE = "remove",
TAG = "tag",
}
/**
* <p>Provides additional optional settings for your
* request, including content redaction, automatic language identification; allows you to apply
* custom language models, vocabulary filters, and custom vocabularies.</p>
*/
export interface CallAnalyticsJobSettings {
/**
* <p>The name of the custom vocabulary you want to include in your Call Analytics
* transcription request. Vocabulary names are case sensitive.</p>
*/
VocabularyName?: string;
/**
* <p>The name of the custom vocabulary filter you want to include in your Call Analytics
* transcription request. Vocabulary filter names are case sensitive.</p>
* <p>Note that if you include <code>VocabularyFilterName</code> in your request, you must
* also include <code>VocabularyFilterMethod</code>.</p>
*/
VocabularyFilterName?: string;
/**
* <p>Specify how you want your vocabulary filter applied to your transcript.</p>
* <p>To replace words with <code>***</code>, choose <code>mask</code>.</p>
* <p>To delete words, choose <code>remove</code>.</p>
* <p>To flag words without changing them, choose <code>tag</code>.</p>
*/
VocabularyFilterMethod?: VocabularyFilterMethod | string;
/**
* <p>The name of the custom language model you want to use when processing your
* Call Analytics job. Note that language model names are case sensitive.</p>
* <p>The language of the specified language model must match the language code you specify
* in your transcription request. If the languages don't match, the language model isn't applied.
* There are no errors or warnings associated with a language mismatch.</p>
*/
LanguageModelName?: string;
/**
* <p>Allows you to redact or flag specified personally identifiable information (PII) in your transcript. If
* you use <code>ContentRedaction</code>, you must also include the sub-parameters:
* <code>PiiEntityTypes</code>, <code>RedactionOutput</code>, and
* <code>RedactionType</code>.</p>
*/
ContentRedaction?: ContentRedaction;
/**
* <p>You can specify two or more language codes that represent the languages you think may
* be present in your media; including more than five is not recommended. If you're unsure what
* languages are present, do not include this parameter.</p>
* <p>Including language options can improve the accuracy of language identification.</p>
* <p>For a list of languages supported with Call Analytics, refer to the <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported languages</a> table.</p>
*/
LanguageOptions?: (LanguageCode | string)[];
/**
* <p>If using automatic language identification (<code>IdentifyLanguage</code>) in your request
* and you want to apply a custom language model, a custom vocabulary, or a custom vocabulary
* filter, include <code>LanguageIdSettings</code> with the relevant sub-parameters
* (<code>VocabularyName</code>, <code>LanguageModelName</code>, and
* <code>VocabularyFilterName</code>).</p>
* <p>You can specify two or more language codes that represent the languages you think may
* be present in your media; including more than five is not recommended. Each language code you
* include can have an associated custom language model, custom vocabulary, and custom
* vocabulary filter. The languages you specify must match the languages of the specified custom
* language models, custom vocabularies, and custom vocabulary filters.</p>
* <p>To include language options using <code>IdentifyLanguage</code>
* <b>without</b> including a custom language model, a custom
* vocabulary, or a custom vocabulary filter, use <code>LanguageOptions</code> instead of
* <code>LanguageIdSettings</code>. Including language options can improve the accuracy of
* automatic language identification.</p>
* <p>If you want to include a custom language model with your request but
* <b>do not</b> want to use automatic language identification,
* use instead the <code></code> parameter with the
* <code>LanguageModelName</code> sub-parameter.</p>
* <p>If you want to include a custom vocabulary or a custom vocabulary filter (or both) with
* your request but <b>do not</b> want to use automatic
* language identification, use instead the <code></code>
* parameter with the <code>VocabularyName</code> or
* <code>VocabularyFilterName</code> (or both) sub-parameter.</p>
*/
LanguageIdSettings?: Record<string, LanguageIdSettings>;
}
/**
* <p>Provides you with the Amazon S3 URI you can use to access your transcript.</p>
*/
export interface Transcript {
/**
* <p>The Amazon S3 location of your transcript. You can use this URI to access or
* download your transcript.</p>
* <p>If you included <code>OutputBucketName</code> in your transcription job request, this is
* the URI of that bucket. If you also included <code>OutputKey</code> in your request, your
* output is located in the path you specified in your request.</p>
* <p>If you didn't include <code>OutputBucketName</code> in your transcription job request,
* your transcript is stored in a service-managed bucket, and <code>TranscriptFileUri</code>
* provides you with a temporary URI you can use for secure access to your transcript.</p>
* <note>
* <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15
* minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary
* URI by running a <code>GetTranscriptionJob</code> or
* <code>ListTranscriptionJob</code> request.</p>
* </note>
*/
TranscriptFileUri?: string;
/**
* <p>The Amazon S3 location of your redacted transcript. You can use this URI to access
* or download your transcript.</p>
* <p>If you included <code>OutputBucketName</code> in your transcription job request, this is
* the URI of that bucket. If you also included <code>OutputKey</code> in your request, your
* output is located in the path you specified in your request.</p>
* <p>If you didn't include <code>OutputBucketName</code> in your transcription job request,
* your transcript is stored in a service-managed bucket, and
* <code>RedactedTranscriptFileUri</code> provides you with a temporary URI you can use for
* secure access to your transcript.</p>
* <note>
* <p>Temporary URIs for service-managed Amazon S3 buckets are only valid for 15
* minutes. If you get an <code>AccesDenied</code> error, you can get a new temporary
* URI by running a <code>GetTranscriptionJob</code> or
* <code>ListTranscriptionJob</code> request.</p>
* </note>
*/
RedactedTranscriptFileUri?: string;
}
/**
* <p>Provides detailed information about a Call Analytics job.</p>
* <p>To view the job's status, refer to <code>CallAnalyticsJobStatus</code>. If the status is
* <code>COMPLETED</code>, the job is finished. You can find your completed transcript at
* the URI specified in <code>TranscriptFileUri</code>. If the status is <code>FAILED</code>,
* <code>FailureReason</code> provides details on why your transcription job failed.</p>
* <p>If you enabled personally identifiable information (PII) redaction, the redacted transcript
* appears at the location specified in <code>RedactedTranscriptFileUri</code>.</p>
* <p>If you chose to redact the audio in your media file, you can find your redacted media file
* at the location specified in the <code>RedactedMediaFileUri</code> field of your
* response.</p>
*/
export interface CallAnalyticsJob {
/**
* <p>The name of the Call Analytics job. Job names are case sensitive and must be unique
* within an Amazon Web Services account.</p>
*/
CallAnalyticsJobName?: string;
/**
* <p>Provides the status of the specified Call Analytics job.</p>
* <p>If the status is <code>COMPLETED</code>, the job is finished and you can find the results
* at the location specified in <code>TranscriptFileUri</code> (or
* <code>RedactedTranscriptFileUri</code>, if you requested transcript redaction). If the status is
* <code>FAILED</code>, <code>FailureReason</code> provides details on why your transcription
* job failed.</p>
*/
CallAnalyticsJobStatus?: CallAnalyticsJobStatus | string;
/**
* <p>The language code used to create your Call Analytics job. For a list of supported languages
* and their associated language codes, refer to the
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/supported-languages.html">Supported
* languages</a> table.</p>
* <p>If you don't know the language spoken in your media file, you can omit this field and let
* Amazon Transcribe automatically identify the language of your media. To improve the accuracy
* of language identification, you can include several language codes and Amazon Transcribe
* chooses the closest match for your transcription.</p>
*/
LanguageCode?: LanguageCode | string;
/**
* <p>The sample rate, in Hertz, of the audio track in your input media file.</p>
*/
MediaSampleRateHertz?: number;
/**
* <p>The format of the input media file.</p>
*/
MediaFormat?: MediaFormat | string;
/**
* <p>Describes the Amazon S3 location of the media file you want to use in your
* request.</p>
*/
Media?: Media;
/**
* <p>Provides you with the Amazon S3 URI you can use to access your transcript.</p>
*/
Transcript?: Transcript;
/**
* <p>The date and time the specified Call Analytics job began processing.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:32:58.789000-07:00</code> represents a transcription job
* that started processing at 12:32 PM UTC-7 on May 4, 2022.</p>
*/
StartTime?: Date;
/**
* <p>The date and time the specified Call Analytics job request was made.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:32:58.761000-07:00</code> represents a transcription job
* that started processing at 12:32 PM UTC-7 on May 4, 2022.</p>
*/
CreationTime?: Date;
/**
* <p>The date and time the specified Call Analytics job finished processing.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:33:13.922000-07:00</code> represents a transcription job
* that started processing at 12:33 PM UTC-7 on May 4, 2022.</p>
*/
CompletionTime?: Date;
/**
* <p>If <code>CallAnalyticsJobStatus</code> is <code>FAILED</code>,
* <code>FailureReason</code> contains information about why the Call Analytics job request
* failed.</p>
* <p>The <code>FailureReason</code> field contains one of the following values:</p>
* <ul>
* <li>
* <p>
* <code>Unsupported media format</code>.</p>
* <p>The media format specified in <code>MediaFormat</code> isn't valid. Refer to
* <b>MediaFormat</b> for a list of supported formats.</p>
* </li>
* <li>
* <p>
* <code>The media format provided does not match the detected media
* format</code>.</p>
* <p>The media format specified in <code>MediaFormat</code> doesn't match the
* format of the input file. Check the media format of your media file and correct the
* specified value.</p>
* </li>
* <li>
* <p>
* <code>Invalid sample rate for audio file</code>.</p>
* <p>The sample rate specified in <code>MediaSampleRateHertz</code> isn't valid.
* The sample rate must be between 8,000 and 48,000 Hertz.</p>
* </li>
* <li>
* <p>
* <code>The sample rate provided does not match the detected sample
* rate</code>.</p>
* <p>The sample rate specified in <code>MediaSampleRateHertz</code> doesn't
* match the sample rate detected in your input media file. Check the sample rate of
* your media file and correct the specified value.</p>
* </li>
* <li>
* <p>
* <code>Invalid file size: file size too large</code>.</p>
* <p>The size of your media file is larger than what Amazon Transcribe can process.
* For more information, refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits">Guidelines and
* quotas</a>.</p>
* </li>
* <li>
* <p>
* <code>Invalid number of channels: number of channels too large</code>.</p>
* <p>Your audio contains more channels than Amazon Transcribe is able to process.
* For more information, refer to <a href="https://docs.aws.amazon.com/transcribe/latest/dg/limits-guidelines.html#limits">Guidelines and
* quotas</a>.</p>
* </li>
* </ul>
*/
FailureReason?: string;
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that has permissions to
* access the Amazon S3 bucket that contains your input files. If the role you specify doesn’t
* have the appropriate permissions to access the specified Amazon S3 location, your request
* fails.</p>
* <p>IAM role ARNs have the format
* <code>arn:partition:iam::account:role/role-name-with-path</code>. For example:
* <code>arn:aws:iam::111122223333:role/Admin</code>.</p>
* <p>For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns">IAM ARNs</a>.</p>
*/
DataAccessRoleArn?: string;
/**
* <p>The confidence score associated with the language identified in your media file.</p>
* <p>Confidence scores are values between 0 and 1; a larger value indicates a higher
* probability that the identified language correctly matches the language spoken in your
* media.</p>
*/
IdentifiedLanguageScore?: number;
/**
* <p>Allows additional optional settings in your
* request, including content redaction; allows you to apply custom language models, vocabulary
* filters, and custom vocabularies to your Call Analytics job.</p>
*/
Settings?: CallAnalyticsJobSettings;
/**
* <p>Allows you to specify which speaker is on which channel in your Call Analytics job request.
* For example, if your agent is the first participant to speak, you would set
* <code>ChannelId</code> to <code>0</code> (to indicate the first channel) and
* <code>ParticipantRole</code> to <code>AGENT</code> (to indicate that it's the agent
* speaking).</p>
*/
ChannelDefinitions?: ChannelDefinition[];
}
/**
* <p>Provides detailed information about a specific Call Analytics job.</p>
*/
export interface CallAnalyticsJobSummary {
/**
* <p>The name of the Call Analytics job. Job names are case sensitive and must be unique
* within an Amazon Web Services account.</p>
*/
CallAnalyticsJobName?: string;
/**
* <p>The date and time the specified Call Analytics job request was made.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:32:58.761000-07:00</code> represents a transcription job
* that started processing at 12:32 PM UTC-7 on May 4, 2022.</p>
*/
CreationTime?: Date;
/**
* <p>The date and time your Call Analytics job began processing.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:32:58.789000-07:00</code> represents a transcription job
* that started processing at 12:32 PM UTC-7 on May 4, 2022.</p>
*/
StartTime?: Date;
/**
* <p>The date and time the specified Call Analytics job finished processing.</p>
* <p>Timestamps are in the format <code>YYYY-MM-DD'T'HH:MM:SS.SSSSSS-UTC</code>. For
* example, <code>2022-05-04T12:33:13.922000-07:00</code> represents a transcription job
* that started processing at 12:33 PM UTC-7 on May 4, 2022.</p>
*/
CompletionTime?: Date;
/**
* <p>The language code used to create your Call Analytics transcription.</p>
*/
LanguageCode?: LanguageCode | string;
/**
* <p>Provides the status of your Call Analytics job.</p>
* <p>If the status is <code>COMPLETED</code>, the job is finished and you can find the results
* at the location specified in <code>TranscriptFileUri</code> (or
* <code>RedactedTranscriptFileUri</code>, if you requested transcript redaction). If the status is
* <code>FAILED</code>, <code>FailureReason</code> provides details on why your transcription
* job failed.</p>
*/
CallAnalyticsJobStatus?: CallAnalyticsJobStatus | string;
/**
* <p>If <code>CallAnalyticsJobStatus</code> is <code>FAILED</code>,
* <code>FailureReason</code> contains information about why the Call Analytics job
* failed. See also: <a href="https://docs.aws.amazon.com/transcribe/latest/APIReference/CommonErrors.html">Common Errors</a>.</p>
*/
FailureReason?: string;
}
/**
* <p>A time range, in percentage, between two points in your media file.</p>
* <p>You can use <code>StartPercentage</code> and <code>EndPercentage</code> to
* search a custom segment. For example, setting <code>StartPercentage</code> to 10 and
* <code>EndPercentage</code> to 50 only searches for your specified criteria in the audio
* contained between the 10 percent mark and the 50 percent mark of your media file.</p>
* <p>You can use also <code>First</code> to search from the start of the media file until the
* time you specify, or <code>Last</code> to search from the time you specify until the end of
* the media file. For example, setting <code>First</code> to 10 only searches for your specified
* criteria in the audio contained in the first 10 percent of the media file.</p>
* <p>If you prefer to use milliseconds instead of percentage, see
* .</p>
*/
export interface RelativeTimeRange {
/**
* <p>The time, in percentage, when Amazon Transcribe starts searching for the specified
* criteria in your media file. If you include <code>StartPercentage</code> in your request, you
* must also include <code>EndPercentage</code>.</p>
*/
StartPercentage?: number;
/**
* <p>The time, in percentage, when Amazon Transcribe stops searching for the specified criteria
* in your media file. If you include <code>EndPercentage</code> in your request, you must also
* include <code>StartPercentage</code>.</p>
*/
EndPercentage?: number;
/**
* <p>The time, in percentage, from the start of your media file until the value you specify in
* which Amazon Transcribe searches for your specified criteria.</p>
*/
First?: number;
/**
* <p>The time, in percentage, from the value you specify until the end of your media file in
* which Amazon Transcribe searches for your specified criteria.</p>
*/
Last?: number;
}
/**
* <p>Flag the presence or absence of interruptions in your Call Analytics transcription output.</p>
* <p>Rules using <code>InterruptionFilter</code> are designed to match:</p>
* <ul>
* <li>
* <p>Instances where an agent interrupts a customer</p>
* </li>
* <li>
* <p>Instances where a customer interrupts an agent</p>
* </li>
* <li>
* <p>Either participant interrupting the other</p>
* </li>
* <li>
* <p>A lack of interruptions</p>
* </li>
* </ul>
* <p>See <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html#call-analytics-create-categories-rules">Rule
* criteria</a> for usage examples.</p>
*/
export interface InterruptionFilter {
/**
* <p>Specify the duration of the interruptions in milliseconds. For example, you can flag speech that
* contains more than 10000 milliseconds of interruptions.</p>
*/
Threshold?: number;
/**
* <p>Specify the interrupter you want to flag. Omitting this parameter is equivalent to specifying
* both participants.</p>
*/
ParticipantRole?: ParticipantRole | string;
/**
* <p>Allows you to specify a time range (in milliseconds) in your audio, during which you want
* to search for an interruption. See for more
* detail.</p>
*/
AbsoluteTimeRange?: AbsoluteTimeRange;
/**
* <p>Allows you to specify a time range (in percentage) in your media file, during which you
* want to search for an interruption. See for more
* detail.</p>
*/
RelativeTimeRange?: RelativeTimeRange;
/**
* <p>Set to <code>TRUE</code> to flag speech that does not contain interruptions. Set to
* <code>FALSE</code> to flag speech that contains interruptions.</p>
*/
Negate?: boolean;
}
/**
* <p>Flag the presence or absence of periods of silence in your Call Analytics transcription
* output.</p>
* <p>Rules using <code>NonTalkTimeFilter</code> are designed to match:</p>
* <ul>
* <li>
* <p>The presence of silence at specified periods throughout the call</p>
* </li>
* <li>
* <p>The presence of speech at specified periods throughout the call</p>
* </li>
* </ul>
* <p>See <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html#call-analytics-create-categories-rules">Rule
* criteria</a> for usage examples.</p>
*/
export interface NonTalkTimeFilter {
/**
* <p>Specify the duration, in milliseconds, of the period of silence you want to flag. For
* example, you can flag a silent period that lasts 30000 milliseconds.</p>
*/
Threshold?: number;
/**
* <p>Allows you to specify a time range (in milliseconds) in your audio, during which you want
* to search for a period of silence. See for more
* detail.</p>
*/
AbsoluteTimeRange?: AbsoluteTimeRange;
/**
* <p>Allows you to specify a time range (in percentage) in your media file, during which you
* want to search for a period of silence. See for more
* detail.</p>
*/
RelativeTimeRange?: RelativeTimeRange;
/**
* <p>Set to <code>TRUE</code> to flag periods of speech. Set to <code>FALSE</code> to flag
* periods of silence</p>
*/
Negate?: boolean;
}
export enum SentimentValue {
MIXED = "MIXED",
NEGATIVE = "NEGATIVE",
NEUTRAL = "NEUTRAL",
POSITIVE = "POSITIVE",
}
/**
* <p>Flag the presence or absence of specific sentiments detected in your Call Analytics
* transcription output.</p>
* <p>Rules using <code>SentimentFilter</code> are designed to match:</p>
* <ul>
* <li>
* <p>The presence or absence of a positive sentiment felt by the customer, agent,
* or both at specified points in the call</p>
* </li>
* <li>
* <p>The presence or absence of a negative sentiment felt by the customer, agent,
* or both at specified points in the call</p>
* </li>
* <li>
* <p>The presence or absence of a neutral sentiment felt by the customer, agent, or
* both at specified points in the call</p>
* </li>
* <li>
* <p>The presence or absence of a mixed sentiment felt by the customer, the agent,
* or both at specified points in the call</p>
* </li>
* </ul>
* <p>See <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html#call-analytics-create-categories-rules">Rule
* criteria</a> for examples.</p>
*/
export interface SentimentFilter {
/**
* <p>Specify the sentiments you want to flag.</p>
*/
Sentiments: (SentimentValue | string)[] | undefined;
/**
* <p>Allows you to specify a time range (in milliseconds) in your audio, during which you want
* to search for the specified sentiments. See for more
* detail.</p>
*/
AbsoluteTimeRange?: AbsoluteTimeRange;
/**
* <p>Allows you to specify a time range (in percentage) in your media file, during which you
* want to search for the specified sentiments. See
* for more detail.</p>
*/
RelativeTimeRange?: RelativeTimeRange;
/**
* <p>Specify the participant you want to flag. Omitting this parameter is equivalent to specifying
* both participants.</p>
*/
ParticipantRole?: ParticipantRole | string;
/**
* <p>Set to <code>TRUE</code> to flag the sentiments you didn't include in your request. Set to
* <code>FALSE</code> to flag the sentiments you specified in your request.</p>
*/
Negate?: boolean;
}
export enum TranscriptFilterType {
EXACT = "EXACT",
}
/**
* <p>Flag the presence or absence of specific words or phrases detected in your Call Analytics
* transcription output.</p>
* <p>Rules using <code>TranscriptFilter</code> are designed to match:</p>
* <ul>
* <li>
* <p>Custom words or phrases spoken by the agent, the customer, or both</p>
* </li>
* <li>
* <p>Custom words or phrases <b>not</b> spoken by the
* agent, the customer, or either</p>
* </li>
* <li>
* <p>Custom words or phrases that occur at a specific time frame</p>
* </li>
* </ul>
* <p>See <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html#call-analytics-create-categories-rules">Rule
* criteria</a> for examples.</p>
*/
export interface TranscriptFilter {
/**
* <p>Flag the presence or absence of an exact match to the phrases you specify. For example, if you
* specify the phrase "speak to a manager" as your <code>Targets</code> value, only that exact
* phrase is flagged.</p>
* <p>Note that semantic matching is not supported. For example, if your customer says "speak to
* <i>the</i> manager", instead of "speak to <i>a</i>
* manager", your content is not flagged.</p>
*/
TranscriptFilterType: TranscriptFilterType | string | undefined;
/**
* <p>Allows you to specify a time range (in milliseconds) in your audio, during which you want to
* search for the specified key words or phrases. See
* for more detail.</p>
*/
AbsoluteTimeRange?: AbsoluteTimeRange;
/**
* <p>Allows you to specify a time range (in percentage) in your media file, during which you
* want to search for the specified key words or phrases. See
* for more detail.</p>
*/
RelativeTimeRange?: RelativeTimeRange;
/**
* <p>Specify the participant you want to flag. Omitting this parameter is equivalent to specifying
* both participants.</p>
*/
ParticipantRole?: ParticipantRole | string;
/**
* <p>Set to <code>TRUE</code> to flag the absence of the phrase you specified in your request.
* Set to <code>FALSE</code> to flag the presence of the phrase you specified in your request.</p>
*/
Negate?: boolean;
/**
* <p>Specify the phrases you want to flag.</p>
*/
Targets: string[] | undefined;
}
/**
* <p>A rule is a set of criteria you can specify to flag an attribute in your Call Analytics output.
* Rules define a Call Analytics category.</p>
* <p>Rules can include these parameters: ,
* , , and
* . To learn more about these parameters, refer to
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html#call-analytics-create-categories-rules">Rule
* criteria</a>.</p>
* <p>To learn more about Call Analytics categories, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics-create-categories.html">Creating categories</a>.</p>
* <p>To learn more about Call Analytics, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/call-analytics.html">Analyzing call center audio with Call
* Analytics</a>.</p>
*/
export type Rule =
| Rule.InterruptionFilterMember
| Rule.NonTalkTimeFilterMember
| Rule.SentimentFilterMember
| Rule.TranscriptFilterMember
| Rule.$UnknownMember;
export namespace Rule {
/**
* <p>Flag the presence or absence of periods of silence in your Call Analytics transcription
* output. Refer to for more detail.</p>
*/
export interface NonTalkTimeFilterMember {
NonTalkTimeFilter: NonTalkTimeFilter;
InterruptionFilter?: never;
TranscriptFilter?: never;
SentimentFilter?: never;
$unknown?: never;
}
/**
* <p>Flag the presence or absence of interruptions in your Call Analytics transcription output. Refer to
* for more detail.</p>
*/
export interface InterruptionFilterMember {
NonTalkTimeFilter?: never;
InterruptionFilter: InterruptionFilter;
TranscriptFilter?: never;
SentimentFilter?: never;
$unknown?: never;
}