@aws-sdk/client-transcribe 3.1172.0 → 3.1174.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/README.md +7 -0
- package/dist-cjs/index.js +222 -11
- package/dist-es/Transcribe.js +2 -0
- package/dist-es/commands/TranscribeAudioCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +51 -0
- package/dist-es/models/errors.js +2 -0
- package/dist-es/schemas/schemas_0.js +145 -10
- package/dist-types/Transcribe.d.ts +7 -0
- package/dist-types/TranscribeClient.d.ts +3 -2
- package/dist-types/commands/CreateCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/CreateLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/CreateMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/CreateVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/CreateVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/DeleteCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/DeleteCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/DeleteTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/DeleteVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/DeleteVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/DescribeLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/GetCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/GetCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/GetMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/GetTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/GetVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/GetVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/ListCallAnalyticsCategoriesCommand.d.ts +5 -4
- package/dist-types/commands/ListCallAnalyticsJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListLanguageModelsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalScribeJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalTranscriptionJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListMedicalVocabulariesCommand.d.ts +5 -4
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -4
- package/dist-types/commands/ListTranscriptionJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListVocabulariesCommand.d.ts +5 -4
- package/dist-types/commands/ListVocabularyFiltersCommand.d.ts +5 -4
- package/dist-types/commands/StartCallAnalyticsJobCommand.d.ts +5 -4
- package/dist-types/commands/StartMedicalScribeJobCommand.d.ts +5 -4
- package/dist-types/commands/StartMedicalTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/StartTranscriptionJobCommand.d.ts +5 -4
- package/dist-types/commands/TagResourceCommand.d.ts +5 -4
- package/dist-types/commands/TranscribeAudioCommand.d.ts +218 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +5 -4
- package/dist-types/commands/UpdateCallAnalyticsCategoryCommand.d.ts +5 -4
- package/dist-types/commands/UpdateLanguageModelCommand.d.ts +5 -4
- package/dist-types/commands/UpdateMedicalVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/UpdateVocabularyCommand.d.ts +5 -4
- package/dist-types/commands/UpdateVocabularyFilterCommand.d.ts +5 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +83 -0
- package/dist-types/models/errors.d.ts +49 -4
- package/dist-types/models/models_0.d.ts +533 -13
- package/dist-types/schemas/schemas_0.d.ts +15 -0
- package/dist-types/ts3.4/Transcribe.d.ts +17 -0
- package/dist-types/ts3.4/TranscribeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/TranscribeAudioCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +57 -0
- package/dist-types/ts3.4/models/errors.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +102 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseModelName, CallAnalyticsFeature, CallAnalyticsJobStatus, CallAnalyticsSkippedReasonCode, CLMLanguageCode, InputType, LanguageCode, MediaFormat, MedicalContentIdentificationType, MedicalScribeJobStatus, MedicalScribeLanguageCode, MedicalScribeNoteTemplate, MedicalScribeParticipantRole, ModelStatus, OutputLocationType, ParticipantRole, PiiEntityType, Pronouns, RedactionOutput, RedactionType, SentimentValue, Specialty, SubtitleFormat, ToxicityCategory, TranscriptFilterType, TranscriptionJobStatus, Type, VocabularyFilterMethod, VocabularyState } from "./enums";
|
|
1
|
+
import type { BaseModelName, CallAnalyticsFeature, CallAnalyticsJobStatus, CallAnalyticsSkippedReasonCode, CLMLanguageCode, InputType, LanguageCode, LanguageDetectionMode, MediaFormat, MedicalContentIdentificationType, MedicalScribeJobStatus, MedicalScribeLanguageCode, MedicalScribeNoteTemplate, MedicalScribeParticipantRole, ModelStatus, OutputLocationType, ParticipantRole, PiiEntityType, Pronouns, RedactionOutput, RedactionType, SentimentValue, Specialty, SubtitleFormat, SyncLanguage, SyncLanguageCode, ToxicityCategory, TranscriptFilterType, TranscriptionJobStatus, Type, VocabularyFilterMethod, VocabularyState } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>A time range, in milliseconds, between two points in your media file.</p>
|
|
4
4
|
* <p>You can use <code>StartTime</code> and <code>EndTime</code> to search a custom
|
|
@@ -159,7 +159,7 @@ export interface Media {
|
|
|
159
159
|
RedactedMediaFileUri?: string | undefined;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* <p>Makes it possible to redact
|
|
162
|
+
* <p>Makes it possible to redact specified personally identifiable information (PII) in
|
|
163
163
|
* your transcript. If you use <code>ContentRedaction</code>, you must also include the
|
|
164
164
|
* sub-parameters: <code>RedactionOutput</code> and <code>RedactionType</code>. You can
|
|
165
165
|
* optionally include <code>PiiEntityTypes</code> to choose which types of PII you want to
|
|
@@ -181,8 +181,11 @@ export interface ContentRedaction {
|
|
|
181
181
|
* <p>When you choose <code>redacted</code>
|
|
182
182
|
* Amazon Transcribe creates only a redacted transcript.</p>
|
|
183
183
|
* <p>When you choose <code>redacted_and_unredacted</code>
|
|
184
|
-
* Amazon Transcribe creates a redacted and an unredacted transcript
|
|
185
|
-
*
|
|
184
|
+
* Amazon Transcribe creates a redacted and an unredacted transcript. For batch jobs,
|
|
185
|
+
* Amazon Transcribe creates two separate files. For <code>TranscribeAudio</code>,
|
|
186
|
+
* Amazon Transcribe returns them in <code>RedactedResults</code> and
|
|
187
|
+
* <code>Results</code>, or writes them as two separate files if you use
|
|
188
|
+
* <code>OutputConfiguration</code>.</p>
|
|
186
189
|
* @public
|
|
187
190
|
*/
|
|
188
191
|
RedactionOutput: RedactionOutput | undefined;
|
|
@@ -316,7 +319,7 @@ export interface CallAnalyticsJobSettings {
|
|
|
316
319
|
*/
|
|
317
320
|
LanguageModelName?: string | undefined;
|
|
318
321
|
/**
|
|
319
|
-
* <p>Makes it possible to redact
|
|
322
|
+
* <p>Makes it possible to redact specified personally identifiable information (PII) in
|
|
320
323
|
* your transcript. If you use <code>ContentRedaction</code>, you must also include the
|
|
321
324
|
* sub-parameters: <code>RedactionOutput</code> and <code>RedactionType</code>. You can
|
|
322
325
|
* optionally include <code>PiiEntityTypes</code> to choose which types of PII you want to
|
|
@@ -1173,7 +1176,7 @@ export interface CreateCallAnalyticsCategoryResponse {
|
|
|
1173
1176
|
CategoryProperties?: CategoryProperties | undefined;
|
|
1174
1177
|
}
|
|
1175
1178
|
/**
|
|
1176
|
-
*
|
|
1179
|
+
* <p>The encryption configuration for your custom resource. Specify a customer managed KMS key, and optionally an encryption context, to encrypt your custom vocabulary, custom vocabulary filter, or custom language model artifacts at rest. If you do not provide a key, your artifacts are encrypted with an Amazon Web Services owned key.</p>
|
|
1177
1180
|
* @public
|
|
1178
1181
|
*/
|
|
1179
1182
|
export interface EncryptionConfiguration {
|
|
@@ -1282,7 +1285,7 @@ export interface CreateLanguageModelRequest {
|
|
|
1282
1285
|
*/
|
|
1283
1286
|
InputDataConfig: InputDataConfig | undefined;
|
|
1284
1287
|
/**
|
|
1285
|
-
* <p>Specifies the encryption configuration for your custom language model. Your model artifacts are encrypted with the specified KMS key or with an
|
|
1288
|
+
* <p>Specifies the encryption configuration for your custom language model. Your model artifacts are encrypted with the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
1286
1289
|
* @public
|
|
1287
1290
|
*/
|
|
1288
1291
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
@@ -1481,7 +1484,7 @@ export interface CreateVocabularyRequest {
|
|
|
1481
1484
|
*/
|
|
1482
1485
|
DataAccessRoleArn?: string | undefined;
|
|
1483
1486
|
/**
|
|
1484
|
-
* <p>Specifies the encryption configuration for your custom vocabulary. Your vocabulary artifacts are encrypted with the specified KMS key or with an
|
|
1487
|
+
* <p>Specifies the encryption configuration for your custom vocabulary. Your vocabulary artifacts are encrypted with the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
1485
1488
|
* @public
|
|
1486
1489
|
*/
|
|
1487
1490
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
@@ -1598,7 +1601,7 @@ export interface CreateVocabularyFilterRequest {
|
|
|
1598
1601
|
*/
|
|
1599
1602
|
DataAccessRoleArn?: string | undefined;
|
|
1600
1603
|
/**
|
|
1601
|
-
* <p>Specifies the encryption configuration for your custom vocabulary filter. Your vocabulary filter artifacts are encrypted with the specified KMS key or with an
|
|
1604
|
+
* <p>Specifies the encryption configuration for your custom vocabulary filter. Your vocabulary filter artifacts are encrypted with the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
1602
1605
|
* @public
|
|
1603
1606
|
*/
|
|
1604
1607
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
@@ -4556,7 +4559,7 @@ export interface StartTranscriptionJobRequest {
|
|
|
4556
4559
|
*/
|
|
4557
4560
|
JobExecutionSettings?: JobExecutionSettings | undefined;
|
|
4558
4561
|
/**
|
|
4559
|
-
* <p>Makes it possible to redact
|
|
4562
|
+
* <p>Makes it possible to redact specified personally identifiable information (PII) in
|
|
4560
4563
|
* your transcript. If you use <code>ContentRedaction</code>, you must also include the
|
|
4561
4564
|
* sub-parameters: <code>RedactionOutput</code> and <code>RedactionType</code>. You can
|
|
4562
4565
|
* optionally include <code>PiiEntityTypes</code> to choose which types of PII you want to redact.
|
|
@@ -4688,6 +4691,198 @@ export interface StartTranscriptionJobResponse {
|
|
|
4688
4691
|
*/
|
|
4689
4692
|
TranscriptionJob?: TranscriptionJob | undefined;
|
|
4690
4693
|
}
|
|
4694
|
+
/**
|
|
4695
|
+
* <p>A type of personally identifiable information (PII) redacted from an item.</p>
|
|
4696
|
+
* @public
|
|
4697
|
+
*/
|
|
4698
|
+
export interface SyncRedaction {
|
|
4699
|
+
/**
|
|
4700
|
+
* <p>The type of PII that was redacted, for example <code>NAME</code> or
|
|
4701
|
+
* <code>SSN</code>.</p>
|
|
4702
|
+
* @public
|
|
4703
|
+
*/
|
|
4704
|
+
Type?: PiiEntityType | undefined;
|
|
4705
|
+
}
|
|
4706
|
+
/**
|
|
4707
|
+
* <p>A word or punctuation mark in your transcript. Labels such as
|
|
4708
|
+
* <code>SpeakerLabel</code> and <code>ChannelLabel</code> are present only if you
|
|
4709
|
+
* enabled the related feature.</p>
|
|
4710
|
+
* @public
|
|
4711
|
+
*/
|
|
4712
|
+
export interface SyncItem {
|
|
4713
|
+
/**
|
|
4714
|
+
* <p>The position of this item in the transcript, starting at 0.</p>
|
|
4715
|
+
* @public
|
|
4716
|
+
*/
|
|
4717
|
+
Id?: number | undefined;
|
|
4718
|
+
/**
|
|
4719
|
+
* <p>The word or punctuation mark. In <code>RedactedResults</code>, Amazon Transcribe
|
|
4720
|
+
* replaces redacted words with <code>[PII]</code>.</p>
|
|
4721
|
+
* @public
|
|
4722
|
+
*/
|
|
4723
|
+
Content?: string | undefined;
|
|
4724
|
+
/**
|
|
4725
|
+
* <p>The time, in seconds from the start of your audio, when this item starts.</p>
|
|
4726
|
+
* @public
|
|
4727
|
+
*/
|
|
4728
|
+
StartTime?: number | undefined;
|
|
4729
|
+
/**
|
|
4730
|
+
* <p>The time, in seconds from the start of your audio, when this item ends.</p>
|
|
4731
|
+
* @public
|
|
4732
|
+
*/
|
|
4733
|
+
EndTime?: number | undefined;
|
|
4734
|
+
/**
|
|
4735
|
+
* <p>The language of this item, as a locale (for example, <code>en-US</code>).</p>
|
|
4736
|
+
* @public
|
|
4737
|
+
*/
|
|
4738
|
+
LanguageCode?: SyncLanguageCode | undefined;
|
|
4739
|
+
/**
|
|
4740
|
+
* <p>The audio channel this item came from (<code>ch_0</code> or <code>ch_1</code>).
|
|
4741
|
+
* Present if you enabled <code>ChannelIdentification</code>.</p>
|
|
4742
|
+
* <p>Item start and end times are measured from the start of the audio, separately for
|
|
4743
|
+
* each channel.</p>
|
|
4744
|
+
* @public
|
|
4745
|
+
*/
|
|
4746
|
+
ChannelLabel?: string | undefined;
|
|
4747
|
+
/**
|
|
4748
|
+
* <p>The speaker of this item (for example, <code>spk_0</code>). Present if you enabled
|
|
4749
|
+
* <code>ShowSpeakerLabels</code>.</p>
|
|
4750
|
+
* @public
|
|
4751
|
+
*/
|
|
4752
|
+
SpeakerLabel?: string | undefined;
|
|
4753
|
+
/**
|
|
4754
|
+
* <p>Indicates whether this item matched a word in your custom vocabulary filter. Present
|
|
4755
|
+
* if you included <code>VocabularyFilterSettings</code>.</p>
|
|
4756
|
+
* @public
|
|
4757
|
+
*/
|
|
4758
|
+
VocabularyFilterMatch?: boolean | undefined;
|
|
4759
|
+
/**
|
|
4760
|
+
* <p>The types of personally identifiable information (PII) that Amazon Transcribe
|
|
4761
|
+
* redacted from this item. Present only on redacted items in
|
|
4762
|
+
* <code>RedactedResults</code>.</p>
|
|
4763
|
+
* @public
|
|
4764
|
+
*/
|
|
4765
|
+
Redactions?: SyncRedaction[] | undefined;
|
|
4766
|
+
}
|
|
4767
|
+
/**
|
|
4768
|
+
* <p>A language identified in your audio, and how long it's spoken.</p>
|
|
4769
|
+
* @public
|
|
4770
|
+
*/
|
|
4771
|
+
export interface SyncLanguageCodeItem {
|
|
4772
|
+
/**
|
|
4773
|
+
* <p>The identified language, as a locale (for example, <code>en-US</code>).</p>
|
|
4774
|
+
* @public
|
|
4775
|
+
*/
|
|
4776
|
+
LanguageCode?: SyncLanguageCode | undefined;
|
|
4777
|
+
/**
|
|
4778
|
+
* <p>The total time, in seconds, the identified language is spoken in your audio.</p>
|
|
4779
|
+
* @public
|
|
4780
|
+
*/
|
|
4781
|
+
DurationInSeconds?: number | undefined;
|
|
4782
|
+
}
|
|
4783
|
+
/**
|
|
4784
|
+
* <p>The audio to transcribe. Specify exactly one of <code>MediaBytes</code> or
|
|
4785
|
+
* <code>MediaFileUri</code>.</p>
|
|
4786
|
+
* <p>Audio sent in the request (<code>MediaBytes</code>) can be up to 25 MB. Audio in
|
|
4787
|
+
* Amazon S3 (<code>MediaFileUri</code>) can be up to 500 MB.</p>
|
|
4788
|
+
* @public
|
|
4789
|
+
*/
|
|
4790
|
+
export type SyncMedia = SyncMedia.MediaBytesMember | SyncMedia.MediaFileUriMember | SyncMedia.$UnknownMember;
|
|
4791
|
+
/**
|
|
4792
|
+
* @public
|
|
4793
|
+
*/
|
|
4794
|
+
export declare namespace SyncMedia {
|
|
4795
|
+
/**
|
|
4796
|
+
* <p>Your audio file, provided inline in the request. The maximum size is 25 MB (26,214,400
|
|
4797
|
+
* bytes) of audio, measured before base64 encoding.</p>
|
|
4798
|
+
* <p>If you use an Amazon Web Services SDK, the SDK base64-encodes the bytes for you. If you
|
|
4799
|
+
* call the API directly, base64-encode the bytes yourself.</p>
|
|
4800
|
+
* @public
|
|
4801
|
+
*/
|
|
4802
|
+
interface MediaBytesMember {
|
|
4803
|
+
MediaBytes: Uint8Array;
|
|
4804
|
+
MediaFileUri?: never;
|
|
4805
|
+
$unknown?: never;
|
|
4806
|
+
}
|
|
4807
|
+
/**
|
|
4808
|
+
* <p>The Amazon S3 location of the media file you want to transcribe. For
|
|
4809
|
+
* example:</p>
|
|
4810
|
+
* <ul>
|
|
4811
|
+
* <li>
|
|
4812
|
+
* <p>
|
|
4813
|
+
* <code>s3://amzn-s3-demo-bucket/my-media-file.flac</code>
|
|
4814
|
+
* </p>
|
|
4815
|
+
* </li>
|
|
4816
|
+
* <li>
|
|
4817
|
+
* <p>
|
|
4818
|
+
* <code>s3://amzn-s3-demo-bucket/media-files/my-media-file.flac</code>
|
|
4819
|
+
* </p>
|
|
4820
|
+
* </li>
|
|
4821
|
+
* </ul>
|
|
4822
|
+
* <p>The maximum file size is 500 MB. You must have read permission for the file.</p>
|
|
4823
|
+
* <p>The Amazon S3 bucket that contains your input media must be located in the
|
|
4824
|
+
* same Amazon Web Services Region where you're making your transcription request.</p>
|
|
4825
|
+
* @public
|
|
4826
|
+
*/
|
|
4827
|
+
interface MediaFileUriMember {
|
|
4828
|
+
MediaBytes?: never;
|
|
4829
|
+
MediaFileUri: string;
|
|
4830
|
+
$unknown?: never;
|
|
4831
|
+
}
|
|
4832
|
+
/**
|
|
4833
|
+
* @public
|
|
4834
|
+
*/
|
|
4835
|
+
interface $UnknownMember {
|
|
4836
|
+
MediaBytes?: never;
|
|
4837
|
+
MediaFileUri?: never;
|
|
4838
|
+
$unknown: [string, any];
|
|
4839
|
+
}
|
|
4840
|
+
/**
|
|
4841
|
+
* @deprecated unused in schema-serde mode.
|
|
4842
|
+
*
|
|
4843
|
+
*/
|
|
4844
|
+
interface Visitor<T> {
|
|
4845
|
+
MediaBytes: (value: Uint8Array) => T;
|
|
4846
|
+
MediaFileUri: (value: string) => T;
|
|
4847
|
+
_: (name: string, value: any) => T;
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
/**
|
|
4851
|
+
* <p>The Amazon S3 location where your transcript is written.</p>
|
|
4852
|
+
* @public
|
|
4853
|
+
*/
|
|
4854
|
+
export interface SyncOutputConfiguration {
|
|
4855
|
+
/**
|
|
4856
|
+
* <p>The Amazon S3 location where you want your transcript written. For
|
|
4857
|
+
* example:</p>
|
|
4858
|
+
* <ul>
|
|
4859
|
+
* <li>
|
|
4860
|
+
* <p>
|
|
4861
|
+
* <code>s3://amzn-s3-demo-bucket/my-transcript.json</code>
|
|
4862
|
+
* </p>
|
|
4863
|
+
* </li>
|
|
4864
|
+
* <li>
|
|
4865
|
+
* <p>
|
|
4866
|
+
* <code>s3://amzn-s3-demo-bucket/transcripts/</code>
|
|
4867
|
+
* </p>
|
|
4868
|
+
* </li>
|
|
4869
|
+
* </ul>
|
|
4870
|
+
* <p>If the location ends with an object key, Amazon Transcribe writes the transcript to
|
|
4871
|
+
* that key. If it is a bucket or ends with a forward slash (<code>/</code>), it's treated
|
|
4872
|
+
* as a prefix, and Amazon Transcribe writes the transcript under it to a file named with the
|
|
4873
|
+
* request ID of your call and a <code>.json</code> extension.</p>
|
|
4874
|
+
* <p>If you use <code>ContentRedaction</code>, Amazon Transcribe writes the redacted
|
|
4875
|
+
* transcript to the same location and adds <code>redacted-</code> before the file name
|
|
4876
|
+
* (for example, <code>redacted-my-transcript.json</code>). With
|
|
4877
|
+
* <code>redacted_and_unredacted</code>, Amazon Transcribe writes both files.</p>
|
|
4878
|
+
* <p>If an object already exists at that key, Amazon Transcribe overwrites it.</p>
|
|
4879
|
+
* <p>In a response, this is the location where Amazon Transcribe wrote your
|
|
4880
|
+
* transcript. If you requested <code>redacted_and_unredacted</code> output, this is the
|
|
4881
|
+
* location of the unredacted transcript.</p>
|
|
4882
|
+
* @public
|
|
4883
|
+
*/
|
|
4884
|
+
OutputMediaFileUri: string | undefined;
|
|
4885
|
+
}
|
|
4691
4886
|
/**
|
|
4692
4887
|
* @public
|
|
4693
4888
|
*/
|
|
@@ -4718,6 +4913,331 @@ export interface TagResourceRequest {
|
|
|
4718
4913
|
*/
|
|
4719
4914
|
export interface TagResourceResponse {
|
|
4720
4915
|
}
|
|
4916
|
+
/**
|
|
4917
|
+
* <p>A custom vocabulary filter for one language. Specify exactly one of
|
|
4918
|
+
* <code>VocabularyFilterName</code> or <code>Words</code>.</p>
|
|
4919
|
+
* @public
|
|
4920
|
+
*/
|
|
4921
|
+
export interface VocabularyFilterEntry {
|
|
4922
|
+
/**
|
|
4923
|
+
* <p>The language this custom vocabulary filter applies to, as a base language code (for example, <code>en</code>). Each language can appear in only one
|
|
4924
|
+
* entry.</p>
|
|
4925
|
+
* @public
|
|
4926
|
+
*/
|
|
4927
|
+
Language: SyncLanguage | undefined;
|
|
4928
|
+
/**
|
|
4929
|
+
* <p>The name of a custom vocabulary filter you created. The filter's language must match
|
|
4930
|
+
* this entry's <code>Language</code>.</p>
|
|
4931
|
+
* <p>Vocabulary filter names are case sensitive.</p>
|
|
4932
|
+
* <p>Include either <code>VocabularyFilterName</code> or <code>Words</code> in each entry,
|
|
4933
|
+
* but not both.</p>
|
|
4934
|
+
* @public
|
|
4935
|
+
*/
|
|
4936
|
+
VocabularyFilterName?: string | undefined;
|
|
4937
|
+
/**
|
|
4938
|
+
* <p>The words to filter, provided inline. You don't need to create the vocabulary filter
|
|
4939
|
+
* first.</p>
|
|
4940
|
+
* <p>Include either <code>Words</code> or <code>VocabularyFilterName</code> in each entry,
|
|
4941
|
+
* but not both.</p>
|
|
4942
|
+
* @public
|
|
4943
|
+
*/
|
|
4944
|
+
Words?: string[] | undefined;
|
|
4945
|
+
}
|
|
4946
|
+
/**
|
|
4947
|
+
* <p>Custom vocabulary filters to apply to your transcript, and how to apply them.</p>
|
|
4948
|
+
* @public
|
|
4949
|
+
*/
|
|
4950
|
+
export interface VocabularyFilterSettings {
|
|
4951
|
+
/**
|
|
4952
|
+
* <p>Specify how you want your custom vocabulary filter applied to your transcript.</p>
|
|
4953
|
+
* <p>To replace words with <code>***</code>, choose <code>mask</code>.</p>
|
|
4954
|
+
* <p>To delete words, choose <code>remove</code>.</p>
|
|
4955
|
+
* <p>To flag words without changing them, choose <code>tag</code>.</p>
|
|
4956
|
+
* @public
|
|
4957
|
+
*/
|
|
4958
|
+
VocabularyFilterMethod: VocabularyFilterMethod | undefined;
|
|
4959
|
+
/**
|
|
4960
|
+
* <p>Custom vocabulary filters, with one entry per language. In each entry, you can
|
|
4961
|
+
* reference a custom vocabulary filter you created or provide words inline. All entries
|
|
4962
|
+
* must use the same type, either all by name or all inline.</p>
|
|
4963
|
+
* <p>If you specify <code>Language</code>, include exactly one entry, and its
|
|
4964
|
+
* <code>Language</code> must match. If you use <code>LanguageDetectionMode</code>,
|
|
4965
|
+
* you can include one entry for each language in <code>LanguageOptions</code>.</p>
|
|
4966
|
+
* @public
|
|
4967
|
+
*/
|
|
4968
|
+
Filters: VocabularyFilterEntry[] | undefined;
|
|
4969
|
+
}
|
|
4970
|
+
/**
|
|
4971
|
+
* <p>A phrase in an inline custom vocabulary.</p>
|
|
4972
|
+
* @public
|
|
4973
|
+
*/
|
|
4974
|
+
export interface VocabularyPhrase {
|
|
4975
|
+
/**
|
|
4976
|
+
* <p>The phrase to recognize in your audio.</p>
|
|
4977
|
+
* @public
|
|
4978
|
+
*/
|
|
4979
|
+
Text: string | undefined;
|
|
4980
|
+
/**
|
|
4981
|
+
* <p>How the phrase is written in your transcript. If you don't include
|
|
4982
|
+
* <code>DisplayAs</code>, the phrase is written as it appears in
|
|
4983
|
+
* <code>Text</code>.</p>
|
|
4984
|
+
* @public
|
|
4985
|
+
*/
|
|
4986
|
+
DisplayAs?: string | undefined;
|
|
4987
|
+
}
|
|
4988
|
+
/**
|
|
4989
|
+
* <p>A custom vocabulary for one language. Specify exactly one of
|
|
4990
|
+
* <code>VocabularyName</code> or <code>Phrases</code>.</p>
|
|
4991
|
+
* @public
|
|
4992
|
+
*/
|
|
4993
|
+
export interface VocabularySettingsEntry {
|
|
4994
|
+
/**
|
|
4995
|
+
* <p>The language this custom vocabulary applies to, as a base language code (for example, <code>en</code>). Each language can appear in only one entry.</p>
|
|
4996
|
+
* @public
|
|
4997
|
+
*/
|
|
4998
|
+
Language: SyncLanguage | undefined;
|
|
4999
|
+
/**
|
|
5000
|
+
* <p>The name of a custom vocabulary you created. The vocabulary must be in the
|
|
5001
|
+
* <code>READY</code> state, and its language must match this entry's
|
|
5002
|
+
* <code>Language</code>.</p>
|
|
5003
|
+
* <p>Vocabulary names are case sensitive.</p>
|
|
5004
|
+
* <p>Include either <code>VocabularyName</code> or <code>Phrases</code> in each entry, but
|
|
5005
|
+
* not both.</p>
|
|
5006
|
+
* @public
|
|
5007
|
+
*/
|
|
5008
|
+
VocabularyName?: string | undefined;
|
|
5009
|
+
/**
|
|
5010
|
+
* <p>Up to 100 phrases to use as a custom vocabulary, provided inline. You don't need to
|
|
5011
|
+
* create the vocabulary first.</p>
|
|
5012
|
+
* <p>Include either <code>Phrases</code> or <code>VocabularyName</code> in each entry, but
|
|
5013
|
+
* not both.</p>
|
|
5014
|
+
* @public
|
|
5015
|
+
*/
|
|
5016
|
+
Phrases?: VocabularyPhrase[] | undefined;
|
|
5017
|
+
}
|
|
5018
|
+
/**
|
|
5019
|
+
* @public
|
|
5020
|
+
*/
|
|
5021
|
+
export interface TranscribeAudioRequest {
|
|
5022
|
+
/**
|
|
5023
|
+
* <p>The audio to transcribe. Specify exactly one of <code>MediaBytes</code> or
|
|
5024
|
+
* <code>MediaFileUri</code>.</p>
|
|
5025
|
+
* <p>Audio sent in the request (<code>MediaBytes</code>) can be up to 25 MB. Audio in
|
|
5026
|
+
* Amazon S3 (<code>MediaFileUri</code>) can be up to 500 MB.</p>
|
|
5027
|
+
* @public
|
|
5028
|
+
*/
|
|
5029
|
+
Media: SyncMedia | undefined;
|
|
5030
|
+
/**
|
|
5031
|
+
* <p>The language spoken in your audio, as a base language code (for example,
|
|
5032
|
+
* <code>en</code> or <code>es</code>).</p>
|
|
5033
|
+
* <p>Include either <code>Language</code> or <code>LanguageDetectionMode</code> in your
|
|
5034
|
+
* request, but not both.</p>
|
|
5035
|
+
* @public
|
|
5036
|
+
*/
|
|
5037
|
+
Language?: SyncLanguage | undefined;
|
|
5038
|
+
/**
|
|
5039
|
+
* <p>Enables automatic language identification. Use <code>IDENTIFY_LANGUAGE</code> if
|
|
5040
|
+
* your audio contains a single language that you don't know in advance.</p>
|
|
5041
|
+
* <p>You can optionally include <code>LanguageOptions</code> to limit identification to
|
|
5042
|
+
* languages you think may be present, which can improve accuracy.</p>
|
|
5043
|
+
* <p>Amazon Transcribe returns the identified language, as a locale (for example,
|
|
5044
|
+
* <code>en-US</code>), in the response metadata.</p>
|
|
5045
|
+
* <p>Include either <code>Language</code> or <code>LanguageDetectionMode</code> in your
|
|
5046
|
+
* request, but not both.</p>
|
|
5047
|
+
* @public
|
|
5048
|
+
*/
|
|
5049
|
+
LanguageDetectionMode?: LanguageDetectionMode | undefined;
|
|
5050
|
+
/**
|
|
5051
|
+
* <p>A list of two or more languages that you think may be present in your audio, as base language codes (for example, <code>en</code> and <code>es</code>).
|
|
5052
|
+
* Each language can appear only once. A list with only one language returns a
|
|
5053
|
+
* <code>BadRequestException</code>.</p>
|
|
5054
|
+
* <p>You can use <code>LanguageOptions</code> only with
|
|
5055
|
+
* <code>LanguageDetectionMode</code>.</p>
|
|
5056
|
+
* @public
|
|
5057
|
+
*/
|
|
5058
|
+
LanguageOptions?: SyncLanguage[] | undefined;
|
|
5059
|
+
/**
|
|
5060
|
+
* <p>Enables channel identification in multi-channel audio. Each channel is transcribed
|
|
5061
|
+
* independently, and each item in the transcript is labeled with its channel.</p>
|
|
5062
|
+
* <p>Channel identification supports up to two channels.</p>
|
|
5063
|
+
* @public
|
|
5064
|
+
*/
|
|
5065
|
+
ChannelIdentification?: boolean | undefined;
|
|
5066
|
+
/**
|
|
5067
|
+
* <p>Enables speaker partitioning (diarization) in your transcript. Speaker partitioning
|
|
5068
|
+
* labels the speech from individual speakers in your media file.</p>
|
|
5069
|
+
* <p>If you set <code>ShowSpeakerLabels</code> to <code>true</code>, you must also include
|
|
5070
|
+
* <code>MaxSpeakerLabels</code>.</p>
|
|
5071
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/diarization.html">Partitioning speakers
|
|
5072
|
+
* (diarization)</a>.</p>
|
|
5073
|
+
* @public
|
|
5074
|
+
*/
|
|
5075
|
+
ShowSpeakerLabels?: boolean | undefined;
|
|
5076
|
+
/**
|
|
5077
|
+
* <p>Specify the maximum number of speakers you want to partition in your media.</p>
|
|
5078
|
+
* <p>Note that if your media contains more speakers than the specified number, Amazon Transcribe treats multiple speakers as a single speaker.</p>
|
|
5079
|
+
* <p>You can set <code>MaxSpeakerLabels</code> only if <code>ShowSpeakerLabels</code> is
|
|
5080
|
+
* <code>true</code>.</p>
|
|
5081
|
+
* @public
|
|
5082
|
+
*/
|
|
5083
|
+
MaxSpeakerLabels?: number | undefined;
|
|
5084
|
+
/**
|
|
5085
|
+
* <p>Custom vocabularies to apply to your transcript, with one entry per language. In each
|
|
5086
|
+
* entry, you can reference a custom vocabulary you created or provide phrases inline. All
|
|
5087
|
+
* entries must use the same type, either all by name or all inline.</p>
|
|
5088
|
+
* <p>If you specify <code>Language</code>, include exactly one entry, and its
|
|
5089
|
+
* <code>Language</code> must match. If you use <code>LanguageDetectionMode</code>,
|
|
5090
|
+
* you can include one entry for each language in <code>LanguageOptions</code>.</p>
|
|
5091
|
+
* @public
|
|
5092
|
+
*/
|
|
5093
|
+
VocabularySettings?: VocabularySettingsEntry[] | undefined;
|
|
5094
|
+
/**
|
|
5095
|
+
* <p>Custom vocabulary filters to apply to your transcript, and how to apply them.</p>
|
|
5096
|
+
* @public
|
|
5097
|
+
*/
|
|
5098
|
+
VocabularyFilterSettings?: VocabularyFilterSettings | undefined;
|
|
5099
|
+
/**
|
|
5100
|
+
* <p>Redacts personally identifiable information (PII) from your transcript. Amazon Transcribe returns the redacted transcript in <code>RedactedResults</code>.</p>
|
|
5101
|
+
* <p>If you set <code>RedactionOutput</code> to <code>redacted_and_unredacted</code>,
|
|
5102
|
+
* Amazon Transcribe also returns the unredacted transcript in
|
|
5103
|
+
* <code>Results</code>.</p>
|
|
5104
|
+
* <p>In Sync, content redaction has these limits:</p>
|
|
5105
|
+
* <ul>
|
|
5106
|
+
* <li>
|
|
5107
|
+
* <p>
|
|
5108
|
+
* <b>Languages:</b> English (<code>en</code>),
|
|
5109
|
+
* Spanish (<code>es</code>), French (<code>fr</code>), Italian (<code>it</code>),
|
|
5110
|
+
* German (<code>de</code>), and Portuguese (<code>pt</code>).</p>
|
|
5111
|
+
* </li>
|
|
5112
|
+
* <li>
|
|
5113
|
+
* <p>
|
|
5114
|
+
* <b>Language identification:</b> If you use
|
|
5115
|
+
* <code>LanguageDetectionMode</code>, you must also include
|
|
5116
|
+
* <code>LanguageOptions</code>, and every language in it must be one of the
|
|
5117
|
+
* languages above. A request that has no <code>LanguageOptions</code>, or that
|
|
5118
|
+
* lists a language that isn't supported, returns a
|
|
5119
|
+
* <code>BadRequestException</code>.</p>
|
|
5120
|
+
* </li>
|
|
5121
|
+
* <li>
|
|
5122
|
+
* <p>
|
|
5123
|
+
* <b>Regions:</b> Content redaction isn't available in
|
|
5124
|
+
* the South America (São Paulo) Region (<code>sa-east-1</code>). It's
|
|
5125
|
+
* available in the other Amazon Web Services Regions where Sync is available.</p>
|
|
5126
|
+
* </li>
|
|
5127
|
+
* </ul>
|
|
5128
|
+
* @public
|
|
5129
|
+
*/
|
|
5130
|
+
ContentRedaction?: ContentRedaction | undefined;
|
|
5131
|
+
/**
|
|
5132
|
+
* <p>Writes the transcript to an Amazon S3 location instead of returning it in the
|
|
5133
|
+
* response. If you include <code>OutputConfiguration</code>, the response contains only
|
|
5134
|
+
* the output location.</p>
|
|
5135
|
+
* <p>You must have write permission for the location you specify.</p>
|
|
5136
|
+
* @public
|
|
5137
|
+
*/
|
|
5138
|
+
OutputConfiguration?: SyncOutputConfiguration | undefined;
|
|
5139
|
+
}
|
|
5140
|
+
/**
|
|
5141
|
+
* <p>Information about your audio.</p>
|
|
5142
|
+
* @public
|
|
5143
|
+
*/
|
|
5144
|
+
export interface TranscribeAudioMetadata {
|
|
5145
|
+
/**
|
|
5146
|
+
* <p>The language of your transcript, as a locale (for example,
|
|
5147
|
+
* <code>en-US</code>). Present if you used <code>LanguageDetectionMode</code>.</p>
|
|
5148
|
+
* @public
|
|
5149
|
+
*/
|
|
5150
|
+
LanguageCode?: SyncLanguageCode | undefined;
|
|
5151
|
+
/**
|
|
5152
|
+
* <p>The language identified in your audio, and how long it's spoken. Present if you used
|
|
5153
|
+
* <code>LanguageDetectionMode</code>.</p>
|
|
5154
|
+
* @public
|
|
5155
|
+
*/
|
|
5156
|
+
LanguageCodes?: SyncLanguageCodeItem[] | undefined;
|
|
5157
|
+
/**
|
|
5158
|
+
* <p>The format of your audio, as detected by Amazon Transcribe.</p>
|
|
5159
|
+
* @public
|
|
5160
|
+
*/
|
|
5161
|
+
MediaFormat?: MediaFormat | undefined;
|
|
5162
|
+
/**
|
|
5163
|
+
* <p>The sample rate of your audio, in hertz, as detected by Amazon Transcribe.</p>
|
|
5164
|
+
* @public
|
|
5165
|
+
*/
|
|
5166
|
+
MediaSampleRateHertz?: number | undefined;
|
|
5167
|
+
/**
|
|
5168
|
+
* <p>The number of speakers identified in your audio. Present if you enabled
|
|
5169
|
+
* <code>ShowSpeakerLabels</code>.</p>
|
|
5170
|
+
* @public
|
|
5171
|
+
*/
|
|
5172
|
+
SpeakersCount?: number | undefined;
|
|
5173
|
+
/**
|
|
5174
|
+
* <p>The number of audio channels in your media. Present if you enabled
|
|
5175
|
+
* <code>ChannelIdentification</code>.</p>
|
|
5176
|
+
* @public
|
|
5177
|
+
*/
|
|
5178
|
+
NumberOfChannels?: number | undefined;
|
|
5179
|
+
}
|
|
5180
|
+
/**
|
|
5181
|
+
* <p>A transcript of your audio.</p>
|
|
5182
|
+
* @public
|
|
5183
|
+
*/
|
|
5184
|
+
export interface TranscribeAudioResults {
|
|
5185
|
+
/**
|
|
5186
|
+
* <p>The full text of your transcript.</p>
|
|
5187
|
+
* <p>If you enabled <code>ChannelIdentification</code>, the text of channel
|
|
5188
|
+
* <code>ch_0</code> is followed by the text of channel <code>ch_1</code>.</p>
|
|
5189
|
+
* @public
|
|
5190
|
+
*/
|
|
5191
|
+
Transcript?: string | undefined;
|
|
5192
|
+
/**
|
|
5193
|
+
* <p>The words and punctuation in your transcript, with timing and any labels you requested.</p>
|
|
5194
|
+
* @public
|
|
5195
|
+
*/
|
|
5196
|
+
Items?: SyncItem[] | undefined;
|
|
5197
|
+
}
|
|
5198
|
+
/**
|
|
5199
|
+
* <p>Your transcript and information about your audio.</p>
|
|
5200
|
+
* @public
|
|
5201
|
+
*/
|
|
5202
|
+
export interface TranscriptResponse {
|
|
5203
|
+
/**
|
|
5204
|
+
* <p>Information about your audio, such as the detected language, format, and sample
|
|
5205
|
+
* rate.</p>
|
|
5206
|
+
* @public
|
|
5207
|
+
*/
|
|
5208
|
+
Metadata?: TranscribeAudioMetadata | undefined;
|
|
5209
|
+
/**
|
|
5210
|
+
* <p>Your unredacted transcript.</p>
|
|
5211
|
+
* <p>If you set <code>RedactionOutput</code> to <code>redacted</code>, Amazon Transcribe
|
|
5212
|
+
* doesn't return this field. Use <code>RedactedResults</code> instead.</p>
|
|
5213
|
+
* @public
|
|
5214
|
+
*/
|
|
5215
|
+
Results?: TranscribeAudioResults | undefined;
|
|
5216
|
+
/**
|
|
5217
|
+
* <p>Your transcript with personally identifiable information (PII) redacted. Present only
|
|
5218
|
+
* if you included <code>ContentRedaction</code> in your request.</p>
|
|
5219
|
+
* @public
|
|
5220
|
+
*/
|
|
5221
|
+
RedactedResults?: TranscribeAudioResults | undefined;
|
|
5222
|
+
}
|
|
5223
|
+
/**
|
|
5224
|
+
* @public
|
|
5225
|
+
*/
|
|
5226
|
+
export interface TranscribeAudioResponse {
|
|
5227
|
+
/**
|
|
5228
|
+
* <p>The Amazon S3 location where your transcript was written. Present only if
|
|
5229
|
+
* you included <code>OutputConfiguration</code> in your request. In that case,
|
|
5230
|
+
* <code>TranscriptResponse</code> isn't returned.</p>
|
|
5231
|
+
* @public
|
|
5232
|
+
*/
|
|
5233
|
+
OutputConfiguration?: SyncOutputConfiguration | undefined;
|
|
5234
|
+
/**
|
|
5235
|
+
* <p>Your transcript and information about your audio. Present only if you didn't include
|
|
5236
|
+
* <code>OutputConfiguration</code> in your request.</p>
|
|
5237
|
+
* @public
|
|
5238
|
+
*/
|
|
5239
|
+
TranscriptResponse?: TranscriptResponse | undefined;
|
|
5240
|
+
}
|
|
4721
5241
|
/**
|
|
4722
5242
|
* @public
|
|
4723
5243
|
*/
|
|
@@ -4805,7 +5325,7 @@ export interface UpdateLanguageModelRequest {
|
|
|
4805
5325
|
*/
|
|
4806
5326
|
DataAccessRoleArn?: string | undefined;
|
|
4807
5327
|
/**
|
|
4808
|
-
* <p>Specifies the new encryption configuration for your custom language model. The model artifacts are re-encrypted in place using the specified KMS key or with an
|
|
5328
|
+
* <p>Specifies the new encryption configuration for your custom language model. The model artifacts are re-encrypted in place using the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
4809
5329
|
* @public
|
|
4810
5330
|
*/
|
|
4811
5331
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
@@ -4955,7 +5475,7 @@ export interface UpdateVocabularyRequest {
|
|
|
4955
5475
|
*/
|
|
4956
5476
|
DataAccessRoleArn?: string | undefined;
|
|
4957
5477
|
/**
|
|
4958
|
-
* <p>Specifies the
|
|
5478
|
+
* <p>Specifies the encryption configuration for your custom vocabulary. Your vocabulary artifacts are encrypted with the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
4959
5479
|
* @public
|
|
4960
5480
|
*/
|
|
4961
5481
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|
|
@@ -5042,7 +5562,7 @@ export interface UpdateVocabularyFilterRequest {
|
|
|
5042
5562
|
*/
|
|
5043
5563
|
DataAccessRoleArn?: string | undefined;
|
|
5044
5564
|
/**
|
|
5045
|
-
* <p>Specifies the
|
|
5565
|
+
* <p>Specifies the encryption configuration for your custom vocabulary filter. Your vocabulary filter artifacts are encrypted with the specified KMS key or with an Amazon Web Services owned key if a key is not supplied.</p>
|
|
5046
5566
|
* @public
|
|
5047
5567
|
*/
|
|
5048
5568
|
EncryptionConfiguration?: EncryptionConfiguration | undefined;
|