@aws-sdk/client-transcribe-streaming 3.29.0 → 3.33.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 +35 -0
- package/TranscribeStreaming.ts +3 -2
- package/commands/StartStreamTranscriptionCommand.ts +3 -2
- package/dist/cjs/TranscribeStreaming.js.map +1 -1
- package/dist/cjs/TranscribeStreamingClient.js +17 -17
- package/dist/cjs/TranscribeStreamingClient.js.map +1 -1
- package/dist/cjs/commands/StartMedicalStreamTranscriptionCommand.js +4 -4
- package/dist/cjs/commands/StartMedicalStreamTranscriptionCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamTranscriptionCommand.js +7 -6
- package/dist/cjs/commands/StartStreamTranscriptionCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +23 -2
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +18 -1
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +37 -37
- package/dist/cjs/protocols/Aws_restJson1.js +94 -50
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/test/index.integ.spec.js +1 -1
- package/dist/cjs/test/index.integ.spec.js.map +1 -1
- package/dist/es/TranscribeStreaming.js.map +1 -1
- package/dist/es/commands/StartStreamTranscriptionCommand.js +3 -2
- package/dist/es/commands/StartStreamTranscriptionCommand.js.map +1 -1
- package/dist/es/endpoints.js +22 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +15 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +37 -37
- package/dist/es/protocols/Aws_restJson1.js +42 -1
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/TranscribeStreaming.d.ts +3 -2
- package/dist/types/commands/StartStreamTranscriptionCommand.d.ts +3 -2
- package/dist/types/models/models_0.d.ts +98 -17
- package/dist/types/ts3.4/TranscribeStreaming.d.ts +3 -2
- package/dist/types/ts3.4/commands/StartStreamTranscriptionCommand.d.ts +3 -2
- package/dist/types/ts3.4/models/models_0.d.ts +98 -17
- package/endpoints.ts +22 -1
- package/models/models_0.ts +116 -17
- package/package.json +37 -37
- package/protocols/Aws_restJson1.ts +48 -0
- package/tsconfig.json +1 -2
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* <p>The entity identified as personally identifiable information (PII).</p>
|
|
4
|
+
*/
|
|
5
|
+
export interface Entity {
|
|
6
|
+
/**
|
|
7
|
+
* <p>The start time of speech that was identified as PII.</p>
|
|
8
|
+
*/
|
|
9
|
+
StartTime?: number;
|
|
10
|
+
/**
|
|
11
|
+
* <p>The end time of speech that was identified as PII.</p>
|
|
12
|
+
*/
|
|
13
|
+
EndTime?: number;
|
|
14
|
+
/**
|
|
15
|
+
* <p>The category of of information identified in this entity; for example, PII.</p>
|
|
16
|
+
*/
|
|
17
|
+
Category?: string;
|
|
18
|
+
/**
|
|
19
|
+
* <p>The type of PII identified in this entity; for example, name or credit card number.</p>
|
|
20
|
+
*/
|
|
21
|
+
Type?: string;
|
|
22
|
+
/**
|
|
23
|
+
* <p>The words in the transcription output that have been identified as a PII entity.</p>
|
|
24
|
+
*/
|
|
25
|
+
Content?: string;
|
|
26
|
+
/**
|
|
27
|
+
* <p>A value between zero and one that Amazon Transcribe assigns to PII identified in the source audio. Larger values indicate a higher confidence in PII identification.</p>
|
|
28
|
+
*/
|
|
29
|
+
Confidence?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace Entity {
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
const filterSensitiveLog: (obj: Entity) => any;
|
|
36
|
+
}
|
|
2
37
|
export declare enum ItemType {
|
|
3
38
|
PRONUNCIATION = "pronunciation",
|
|
4
39
|
PUNCTUATION = "punctuation"
|
|
@@ -67,6 +102,10 @@ export interface Alternative {
|
|
|
67
102
|
* <p>One or more alternative interpretations of the input audio. </p>
|
|
68
103
|
*/
|
|
69
104
|
Items?: Item[];
|
|
105
|
+
/**
|
|
106
|
+
* <p>Contains the entities identified as personally identifiable information (PII) in the transcription output.</p>
|
|
107
|
+
*/
|
|
108
|
+
Entities?: Entity[];
|
|
70
109
|
}
|
|
71
110
|
export declare namespace Alternative {
|
|
72
111
|
/**
|
|
@@ -76,8 +115,10 @@ export declare namespace Alternative {
|
|
|
76
115
|
}
|
|
77
116
|
/**
|
|
78
117
|
* <p>Provides a wrapper for the audio chunks that you are sending.</p>
|
|
79
|
-
* <p>For information on audio encoding in Amazon Transcribe, see
|
|
80
|
-
*
|
|
118
|
+
* <p>For information on audio encoding in Amazon Transcribe, see
|
|
119
|
+
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input.html">Speech input</a>. For information
|
|
120
|
+
* on audio encoding formats in Amazon Transcribe Medical, see
|
|
121
|
+
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input-med.html">Speech input</a>.</p>
|
|
81
122
|
*/
|
|
82
123
|
export interface AudioEvent {
|
|
83
124
|
/**
|
|
@@ -100,10 +141,10 @@ export declare namespace AudioStream {
|
|
|
100
141
|
/**
|
|
101
142
|
* <p>A blob of audio from your application. You audio stream consists of one or more audio
|
|
102
143
|
* events.</p>
|
|
103
|
-
* <p>For information on audio encoding formats in Amazon Transcribe, see <a>input</a>. For
|
|
104
|
-
* information on audio encoding formats in Amazon Transcribe Medical, see <a
|
|
105
|
-
* <p>For more information on stream encoding in Amazon Transcribe, see <a
|
|
106
|
-
* information on stream encoding in Amazon Transcribe Medical, see <a
|
|
144
|
+
* <p>For information on audio encoding formats in Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input.html">Speech input</a>. For
|
|
145
|
+
* information on audio encoding formats in Amazon Transcribe Medical, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input-med.html">Speech input</a>.</p>
|
|
146
|
+
* <p>For more information on stream encoding in Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/event-stream.html">Event stream encoding</a>. For
|
|
147
|
+
* information on stream encoding in Amazon Transcribe Medical, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/event-stream-med.html">Event stream encoding</a>.</p>
|
|
107
148
|
*/
|
|
108
149
|
interface AudioEventMember {
|
|
109
150
|
AudioEvent: AudioEvent;
|
|
@@ -155,6 +196,12 @@ export declare namespace ConflictException {
|
|
|
155
196
|
*/
|
|
156
197
|
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
157
198
|
}
|
|
199
|
+
export declare enum ContentIdentificationType {
|
|
200
|
+
PII = "PII"
|
|
201
|
+
}
|
|
202
|
+
export declare enum ContentRedactionType {
|
|
203
|
+
PII = "PII"
|
|
204
|
+
}
|
|
158
205
|
/**
|
|
159
206
|
* <p>A problem occurred while processing the audio. Amazon Transcribe or Amazon Transcribe Medical terminated processing. Try
|
|
160
207
|
* your request again.</p>
|
|
@@ -588,8 +635,7 @@ export interface StartMedicalStreamTranscriptionRequest {
|
|
|
588
635
|
*/
|
|
589
636
|
LanguageCode: LanguageCode | string | undefined;
|
|
590
637
|
/**
|
|
591
|
-
* <p>The sample rate of the input audio in Hertz
|
|
592
|
-
* accepted.</p>
|
|
638
|
+
* <p>The sample rate of the input audio in Hertz.</p>
|
|
593
639
|
*/
|
|
594
640
|
MediaSampleRateHertz: number | undefined;
|
|
595
641
|
/**
|
|
@@ -662,7 +708,7 @@ export interface StartMedicalStreamTranscriptionResponse {
|
|
|
662
708
|
*/
|
|
663
709
|
LanguageCode?: LanguageCode | string;
|
|
664
710
|
/**
|
|
665
|
-
* <p>The sample rate of the input audio in Hertz
|
|
711
|
+
* <p>The sample rate of the input audio in Hertz.</p>
|
|
666
712
|
*/
|
|
667
713
|
MediaSampleRateHertz?: number;
|
|
668
714
|
/**
|
|
@@ -725,8 +771,8 @@ export interface StartStreamTranscriptionRequest {
|
|
|
725
771
|
*/
|
|
726
772
|
LanguageCode: LanguageCode | string | undefined;
|
|
727
773
|
/**
|
|
728
|
-
* <p>The sample rate, in Hertz, of the input audio. We suggest that you use
|
|
729
|
-
* quality audio and
|
|
774
|
+
* <p>The sample rate, in Hertz, of the input audio. We suggest that you use 8,000 Hz for low
|
|
775
|
+
* quality audio and 16,000 Hz for high quality audio.</p>
|
|
730
776
|
*/
|
|
731
777
|
MediaSampleRateHertz: number | undefined;
|
|
732
778
|
/**
|
|
@@ -744,19 +790,19 @@ export interface StartStreamTranscriptionRequest {
|
|
|
744
790
|
*/
|
|
745
791
|
SessionId?: string;
|
|
746
792
|
/**
|
|
747
|
-
* <p>PCM-encoded stream of audio blobs. The audio stream is encoded as an
|
|
793
|
+
* <p>PCM-encoded stream of audio blobs. The audio stream is encoded as an HTTP/2 data
|
|
748
794
|
* frame.</p>
|
|
749
795
|
*/
|
|
750
796
|
AudioStream: AsyncIterable<AudioStream> | undefined;
|
|
751
797
|
/**
|
|
752
|
-
* <p>The name of the vocabulary filter you've created that is unique to your
|
|
798
|
+
* <p>The name of the vocabulary filter you've created that is unique to your account.
|
|
753
799
|
* Provide the name in this field to successfully use it in a stream.</p>
|
|
754
800
|
*/
|
|
755
801
|
VocabularyFilterName?: string;
|
|
756
802
|
/**
|
|
757
803
|
* <p>The manner in which you use your vocabulary filter to filter words in your transcript.
|
|
758
804
|
* <code>Remove</code> removes filtered words from your transcription results.
|
|
759
|
-
* <code>Mask</code> masks
|
|
805
|
+
* <code>Mask</code> masks filtered words with a <code>***</code> in your transcription results.
|
|
760
806
|
* <code>Tag</code> keeps the filtered words in your transcription results and tags them. The
|
|
761
807
|
* tag appears as <code>VocabularyFilterMatch</code> equal to <code>True</code>
|
|
762
808
|
* </p>
|
|
@@ -793,6 +839,30 @@ export interface StartStreamTranscriptionRequest {
|
|
|
793
839
|
* stability levels can come with lower overall transcription accuracy.</p>
|
|
794
840
|
*/
|
|
795
841
|
PartialResultsStability?: PartialResultsStability | string;
|
|
842
|
+
/**
|
|
843
|
+
* <p>Set this field to PII to identify personally identifiable information (PII) in the transcription output. Content identification is performed only upon complete transcription of the audio segments.</p>
|
|
844
|
+
* <p>You can’t set both <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
845
|
+
*/
|
|
846
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
847
|
+
/**
|
|
848
|
+
* <p>Set this field to PII to redact personally identifiable information (PII) in the transcription output. Content redaction is performed only upon complete transcription of the audio segments.</p>
|
|
849
|
+
* <p>You can’t set both <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
850
|
+
*/
|
|
851
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
852
|
+
/**
|
|
853
|
+
* <p>List the PII entity types you want to identify or redact. In order to specify entity types, you must have
|
|
854
|
+
* either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code> enabled.</p>
|
|
855
|
+
* <p>
|
|
856
|
+
* <code>PIIEntityTypes</code> must be comma-separated; the available values are:
|
|
857
|
+
* <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>,
|
|
858
|
+
* <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>,
|
|
859
|
+
* <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>,
|
|
860
|
+
* <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>,
|
|
861
|
+
* <code>SSN</code>, and <code>ALL</code>.</p>
|
|
862
|
+
* <p>
|
|
863
|
+
* <code>PiiEntityTypes</code> is an optional parameter with a default value of <code>ALL</code>.</p>
|
|
864
|
+
*/
|
|
865
|
+
PiiEntityTypes?: string;
|
|
796
866
|
}
|
|
797
867
|
export declare namespace StartStreamTranscriptionRequest {
|
|
798
868
|
/**
|
|
@@ -842,8 +912,7 @@ export declare namespace TranscriptResultStream {
|
|
|
842
912
|
/**
|
|
843
913
|
* <p>A portion of the transcription of the audio stream. Events are sent periodically from
|
|
844
914
|
* Amazon Transcribe to your application. The event can be a partial transcription of a section of the audio
|
|
845
|
-
* stream, or it can be the entire transcription of that portion of the audio stream.
|
|
846
|
-
* </p>
|
|
915
|
+
* stream, or it can be the entire transcription of that portion of the audio stream. </p>
|
|
847
916
|
*/
|
|
848
917
|
interface TranscriptEventMember {
|
|
849
918
|
TranscriptEvent: TranscriptEvent;
|
|
@@ -951,7 +1020,7 @@ export interface StartStreamTranscriptionResponse {
|
|
|
951
1020
|
*/
|
|
952
1021
|
LanguageCode?: LanguageCode | string;
|
|
953
1022
|
/**
|
|
954
|
-
* <p>The sample rate for the input audio stream. Use
|
|
1023
|
+
* <p>The sample rate for the input audio stream. Use 8,000 Hz for low quality audio and 16,000 Hz
|
|
955
1024
|
* for high quality audio.</p>
|
|
956
1025
|
*/
|
|
957
1026
|
MediaSampleRateHertz?: number;
|
|
@@ -1000,6 +1069,18 @@ export interface StartStreamTranscriptionResponse {
|
|
|
1000
1069
|
* level.</p>
|
|
1001
1070
|
*/
|
|
1002
1071
|
PartialResultsStability?: PartialResultsStability | string;
|
|
1072
|
+
/**
|
|
1073
|
+
* <p>Shows whether content identification was enabled in this stream.</p>
|
|
1074
|
+
*/
|
|
1075
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
1076
|
+
/**
|
|
1077
|
+
* <p>Shows whether content redaction was enabled in this stream.</p>
|
|
1078
|
+
*/
|
|
1079
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
1080
|
+
/**
|
|
1081
|
+
* <p>Lists the PII entity types you specified in your request.</p>
|
|
1082
|
+
*/
|
|
1083
|
+
PiiEntityTypes?: string;
|
|
1003
1084
|
}
|
|
1004
1085
|
export declare namespace StartStreamTranscriptionResponse {
|
|
1005
1086
|
/**
|
|
@@ -14,9 +14,9 @@ export declare class TranscribeStreaming extends TranscribeStreamingClient {
|
|
|
14
14
|
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
15
15
|
startMedicalStreamTranscription(args: StartMedicalStreamTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartMedicalStreamTranscriptionCommandOutput) => void): void;
|
|
16
16
|
/**
|
|
17
|
-
* <p>Starts a bidirectional
|
|
17
|
+
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe and the transcription
|
|
18
18
|
* results are streamed to your application.</p>
|
|
19
|
-
* <p>The following are encoded as
|
|
19
|
+
* <p>The following are encoded as HTTP/2 headers:</p>
|
|
20
20
|
* <ul>
|
|
21
21
|
* <li>
|
|
22
22
|
* <p>x-amzn-transcribe-language-code</p>
|
|
@@ -31,6 +31,7 @@ export declare class TranscribeStreaming extends TranscribeStreamingClient {
|
|
|
31
31
|
* <p>x-amzn-transcribe-session-id</p>
|
|
32
32
|
* </li>
|
|
33
33
|
* </ul>
|
|
34
|
+
* <p>See the <a href="https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription"> SDK for Go API Reference</a> for more detail.</p>
|
|
34
35
|
*/
|
|
35
36
|
startStreamTranscription(args: StartStreamTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<StartStreamTranscriptionCommandOutput>;
|
|
36
37
|
startStreamTranscription(args: StartStreamTranscriptionCommandInput, cb: (err: any, data?: StartStreamTranscriptionCommandOutput) => void): void;
|
|
@@ -7,9 +7,9 @@ export interface StartStreamTranscriptionCommandInput extends StartStreamTranscr
|
|
|
7
7
|
export interface StartStreamTranscriptionCommandOutput extends StartStreamTranscriptionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Starts a bidirectional
|
|
10
|
+
* <p>Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon Transcribe and the transcription
|
|
11
11
|
* results are streamed to your application.</p>
|
|
12
|
-
* <p>The following are encoded as
|
|
12
|
+
* <p>The following are encoded as HTTP/2 headers:</p>
|
|
13
13
|
* <ul>
|
|
14
14
|
* <li>
|
|
15
15
|
* <p>x-amzn-transcribe-language-code</p>
|
|
@@ -24,6 +24,7 @@ export interface StartStreamTranscriptionCommandOutput extends StartStreamTransc
|
|
|
24
24
|
* <p>x-amzn-transcribe-session-id</p>
|
|
25
25
|
* </li>
|
|
26
26
|
* </ul>
|
|
27
|
+
* <p>See the <a href="https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription"> SDK for Go API Reference</a> for more detail.</p>
|
|
27
28
|
* @example
|
|
28
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
30
|
* ```javascript
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
+
/**
|
|
3
|
+
* <p>The entity identified as personally identifiable information (PII).</p>
|
|
4
|
+
*/
|
|
5
|
+
export interface Entity {
|
|
6
|
+
/**
|
|
7
|
+
* <p>The start time of speech that was identified as PII.</p>
|
|
8
|
+
*/
|
|
9
|
+
StartTime?: number;
|
|
10
|
+
/**
|
|
11
|
+
* <p>The end time of speech that was identified as PII.</p>
|
|
12
|
+
*/
|
|
13
|
+
EndTime?: number;
|
|
14
|
+
/**
|
|
15
|
+
* <p>The category of of information identified in this entity; for example, PII.</p>
|
|
16
|
+
*/
|
|
17
|
+
Category?: string;
|
|
18
|
+
/**
|
|
19
|
+
* <p>The type of PII identified in this entity; for example, name or credit card number.</p>
|
|
20
|
+
*/
|
|
21
|
+
Type?: string;
|
|
22
|
+
/**
|
|
23
|
+
* <p>The words in the transcription output that have been identified as a PII entity.</p>
|
|
24
|
+
*/
|
|
25
|
+
Content?: string;
|
|
26
|
+
/**
|
|
27
|
+
* <p>A value between zero and one that Amazon Transcribe assigns to PII identified in the source audio. Larger values indicate a higher confidence in PII identification.</p>
|
|
28
|
+
*/
|
|
29
|
+
Confidence?: number;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace Entity {
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
const filterSensitiveLog: (obj: Entity) => any;
|
|
36
|
+
}
|
|
2
37
|
export declare enum ItemType {
|
|
3
38
|
PRONUNCIATION = "pronunciation",
|
|
4
39
|
PUNCTUATION = "punctuation"
|
|
@@ -67,6 +102,10 @@ export interface Alternative {
|
|
|
67
102
|
* <p>One or more alternative interpretations of the input audio. </p>
|
|
68
103
|
*/
|
|
69
104
|
Items?: Item[];
|
|
105
|
+
/**
|
|
106
|
+
* <p>Contains the entities identified as personally identifiable information (PII) in the transcription output.</p>
|
|
107
|
+
*/
|
|
108
|
+
Entities?: Entity[];
|
|
70
109
|
}
|
|
71
110
|
export declare namespace Alternative {
|
|
72
111
|
/**
|
|
@@ -76,8 +115,10 @@ export declare namespace Alternative {
|
|
|
76
115
|
}
|
|
77
116
|
/**
|
|
78
117
|
* <p>Provides a wrapper for the audio chunks that you are sending.</p>
|
|
79
|
-
* <p>For information on audio encoding in Amazon Transcribe, see
|
|
80
|
-
*
|
|
118
|
+
* <p>For information on audio encoding in Amazon Transcribe, see
|
|
119
|
+
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input.html">Speech input</a>. For information
|
|
120
|
+
* on audio encoding formats in Amazon Transcribe Medical, see
|
|
121
|
+
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input-med.html">Speech input</a>.</p>
|
|
81
122
|
*/
|
|
82
123
|
export interface AudioEvent {
|
|
83
124
|
/**
|
|
@@ -100,10 +141,10 @@ export declare namespace AudioStream {
|
|
|
100
141
|
/**
|
|
101
142
|
* <p>A blob of audio from your application. You audio stream consists of one or more audio
|
|
102
143
|
* events.</p>
|
|
103
|
-
* <p>For information on audio encoding formats in Amazon Transcribe, see <a>input</a>. For
|
|
104
|
-
* information on audio encoding formats in Amazon Transcribe Medical, see <a
|
|
105
|
-
* <p>For more information on stream encoding in Amazon Transcribe, see <a
|
|
106
|
-
* information on stream encoding in Amazon Transcribe Medical, see <a
|
|
144
|
+
* <p>For information on audio encoding formats in Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input.html">Speech input</a>. For
|
|
145
|
+
* information on audio encoding formats in Amazon Transcribe Medical, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/input-med.html">Speech input</a>.</p>
|
|
146
|
+
* <p>For more information on stream encoding in Amazon Transcribe, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/event-stream.html">Event stream encoding</a>. For
|
|
147
|
+
* information on stream encoding in Amazon Transcribe Medical, see <a href="https://docs.aws.amazon.com/transcribe/latest/dg/event-stream-med.html">Event stream encoding</a>.</p>
|
|
107
148
|
*/
|
|
108
149
|
interface AudioEventMember {
|
|
109
150
|
AudioEvent: AudioEvent;
|
|
@@ -158,6 +199,12 @@ export declare namespace ConflictException {
|
|
|
158
199
|
*/
|
|
159
200
|
const filterSensitiveLog: (obj: ConflictException) => any;
|
|
160
201
|
}
|
|
202
|
+
export declare enum ContentIdentificationType {
|
|
203
|
+
PII = "PII"
|
|
204
|
+
}
|
|
205
|
+
export declare enum ContentRedactionType {
|
|
206
|
+
PII = "PII"
|
|
207
|
+
}
|
|
161
208
|
/**
|
|
162
209
|
* <p>A problem occurred while processing the audio. Amazon Transcribe or Amazon Transcribe Medical terminated processing. Try
|
|
163
210
|
* your request again.</p>
|
|
@@ -594,8 +641,7 @@ export interface StartMedicalStreamTranscriptionRequest {
|
|
|
594
641
|
*/
|
|
595
642
|
LanguageCode: LanguageCode | string | undefined;
|
|
596
643
|
/**
|
|
597
|
-
* <p>The sample rate of the input audio in Hertz
|
|
598
|
-
* accepted.</p>
|
|
644
|
+
* <p>The sample rate of the input audio in Hertz.</p>
|
|
599
645
|
*/
|
|
600
646
|
MediaSampleRateHertz: number | undefined;
|
|
601
647
|
/**
|
|
@@ -668,7 +714,7 @@ export interface StartMedicalStreamTranscriptionResponse {
|
|
|
668
714
|
*/
|
|
669
715
|
LanguageCode?: LanguageCode | string;
|
|
670
716
|
/**
|
|
671
|
-
* <p>The sample rate of the input audio in Hertz
|
|
717
|
+
* <p>The sample rate of the input audio in Hertz.</p>
|
|
672
718
|
*/
|
|
673
719
|
MediaSampleRateHertz?: number;
|
|
674
720
|
/**
|
|
@@ -731,8 +777,8 @@ export interface StartStreamTranscriptionRequest {
|
|
|
731
777
|
*/
|
|
732
778
|
LanguageCode: LanguageCode | string | undefined;
|
|
733
779
|
/**
|
|
734
|
-
* <p>The sample rate, in Hertz, of the input audio. We suggest that you use
|
|
735
|
-
* quality audio and
|
|
780
|
+
* <p>The sample rate, in Hertz, of the input audio. We suggest that you use 8,000 Hz for low
|
|
781
|
+
* quality audio and 16,000 Hz for high quality audio.</p>
|
|
736
782
|
*/
|
|
737
783
|
MediaSampleRateHertz: number | undefined;
|
|
738
784
|
/**
|
|
@@ -750,19 +796,19 @@ export interface StartStreamTranscriptionRequest {
|
|
|
750
796
|
*/
|
|
751
797
|
SessionId?: string;
|
|
752
798
|
/**
|
|
753
|
-
* <p>PCM-encoded stream of audio blobs. The audio stream is encoded as an
|
|
799
|
+
* <p>PCM-encoded stream of audio blobs. The audio stream is encoded as an HTTP/2 data
|
|
754
800
|
* frame.</p>
|
|
755
801
|
*/
|
|
756
802
|
AudioStream: AsyncIterable<AudioStream> | undefined;
|
|
757
803
|
/**
|
|
758
|
-
* <p>The name of the vocabulary filter you've created that is unique to your
|
|
804
|
+
* <p>The name of the vocabulary filter you've created that is unique to your account.
|
|
759
805
|
* Provide the name in this field to successfully use it in a stream.</p>
|
|
760
806
|
*/
|
|
761
807
|
VocabularyFilterName?: string;
|
|
762
808
|
/**
|
|
763
809
|
* <p>The manner in which you use your vocabulary filter to filter words in your transcript.
|
|
764
810
|
* <code>Remove</code> removes filtered words from your transcription results.
|
|
765
|
-
* <code>Mask</code> masks
|
|
811
|
+
* <code>Mask</code> masks filtered words with a <code>***</code> in your transcription results.
|
|
766
812
|
* <code>Tag</code> keeps the filtered words in your transcription results and tags them. The
|
|
767
813
|
* tag appears as <code>VocabularyFilterMatch</code> equal to <code>True</code>
|
|
768
814
|
* </p>
|
|
@@ -799,6 +845,30 @@ export interface StartStreamTranscriptionRequest {
|
|
|
799
845
|
* stability levels can come with lower overall transcription accuracy.</p>
|
|
800
846
|
*/
|
|
801
847
|
PartialResultsStability?: PartialResultsStability | string;
|
|
848
|
+
/**
|
|
849
|
+
* <p>Set this field to PII to identify personally identifiable information (PII) in the transcription output. Content identification is performed only upon complete transcription of the audio segments.</p>
|
|
850
|
+
* <p>You can’t set both <code>ContentIdentificationType</code> and <code>ContentRedactionType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
851
|
+
*/
|
|
852
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
853
|
+
/**
|
|
854
|
+
* <p>Set this field to PII to redact personally identifiable information (PII) in the transcription output. Content redaction is performed only upon complete transcription of the audio segments.</p>
|
|
855
|
+
* <p>You can’t set both <code>ContentRedactionType</code> and <code>ContentIdentificationType</code> in the same request. If you set both, your request returns a <code>BadRequestException</code>.</p>
|
|
856
|
+
*/
|
|
857
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
858
|
+
/**
|
|
859
|
+
* <p>List the PII entity types you want to identify or redact. In order to specify entity types, you must have
|
|
860
|
+
* either <code>ContentIdentificationType</code> or <code>ContentRedactionType</code> enabled.</p>
|
|
861
|
+
* <p>
|
|
862
|
+
* <code>PIIEntityTypes</code> must be comma-separated; the available values are:
|
|
863
|
+
* <code>BANK_ACCOUNT_NUMBER</code>, <code>BANK_ROUTING</code>,
|
|
864
|
+
* <code>CREDIT_DEBIT_NUMBER</code>, <code>CREDIT_DEBIT_CVV</code>,
|
|
865
|
+
* <code>CREDIT_DEBIT_EXPIRY</code>, <code>PIN</code>, <code>EMAIL</code>,
|
|
866
|
+
* <code>ADDRESS</code>, <code>NAME</code>, <code>PHONE</code>,
|
|
867
|
+
* <code>SSN</code>, and <code>ALL</code>.</p>
|
|
868
|
+
* <p>
|
|
869
|
+
* <code>PiiEntityTypes</code> is an optional parameter with a default value of <code>ALL</code>.</p>
|
|
870
|
+
*/
|
|
871
|
+
PiiEntityTypes?: string;
|
|
802
872
|
}
|
|
803
873
|
export declare namespace StartStreamTranscriptionRequest {
|
|
804
874
|
/**
|
|
@@ -848,8 +918,7 @@ export declare namespace TranscriptResultStream {
|
|
|
848
918
|
/**
|
|
849
919
|
* <p>A portion of the transcription of the audio stream. Events are sent periodically from
|
|
850
920
|
* Amazon Transcribe to your application. The event can be a partial transcription of a section of the audio
|
|
851
|
-
* stream, or it can be the entire transcription of that portion of the audio stream.
|
|
852
|
-
* </p>
|
|
921
|
+
* stream, or it can be the entire transcription of that portion of the audio stream. </p>
|
|
853
922
|
*/
|
|
854
923
|
interface TranscriptEventMember {
|
|
855
924
|
TranscriptEvent: TranscriptEvent;
|
|
@@ -960,7 +1029,7 @@ export interface StartStreamTranscriptionResponse {
|
|
|
960
1029
|
*/
|
|
961
1030
|
LanguageCode?: LanguageCode | string;
|
|
962
1031
|
/**
|
|
963
|
-
* <p>The sample rate for the input audio stream. Use
|
|
1032
|
+
* <p>The sample rate for the input audio stream. Use 8,000 Hz for low quality audio and 16,000 Hz
|
|
964
1033
|
* for high quality audio.</p>
|
|
965
1034
|
*/
|
|
966
1035
|
MediaSampleRateHertz?: number;
|
|
@@ -1009,6 +1078,18 @@ export interface StartStreamTranscriptionResponse {
|
|
|
1009
1078
|
* level.</p>
|
|
1010
1079
|
*/
|
|
1011
1080
|
PartialResultsStability?: PartialResultsStability | string;
|
|
1081
|
+
/**
|
|
1082
|
+
* <p>Shows whether content identification was enabled in this stream.</p>
|
|
1083
|
+
*/
|
|
1084
|
+
ContentIdentificationType?: ContentIdentificationType | string;
|
|
1085
|
+
/**
|
|
1086
|
+
* <p>Shows whether content redaction was enabled in this stream.</p>
|
|
1087
|
+
*/
|
|
1088
|
+
ContentRedactionType?: ContentRedactionType | string;
|
|
1089
|
+
/**
|
|
1090
|
+
* <p>Lists the PII entity types you specified in your request.</p>
|
|
1091
|
+
*/
|
|
1092
|
+
PiiEntityTypes?: string;
|
|
1012
1093
|
}
|
|
1013
1094
|
export declare namespace StartStreamTranscriptionResponse {
|
|
1014
1095
|
/**
|
package/endpoints.ts
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
3
|
|
|
4
|
-
const regionHash: RegionHash = {
|
|
4
|
+
const regionHash: RegionHash = {
|
|
5
|
+
"transcribestreaming-fips-ca-central-1": {
|
|
6
|
+
hostname: "transcribestreaming-fips.ca-central-1.amazonaws.com",
|
|
7
|
+
signingRegion: "ca-central-1",
|
|
8
|
+
},
|
|
9
|
+
"transcribestreaming-fips-us-east-1": {
|
|
10
|
+
hostname: "transcribestreaming-fips.us-east-1.amazonaws.com",
|
|
11
|
+
signingRegion: "us-east-1",
|
|
12
|
+
},
|
|
13
|
+
"transcribestreaming-fips-us-east-2": {
|
|
14
|
+
hostname: "transcribestreaming-fips.us-east-2.amazonaws.com",
|
|
15
|
+
signingRegion: "us-east-2",
|
|
16
|
+
},
|
|
17
|
+
"transcribestreaming-fips-us-west-2": {
|
|
18
|
+
hostname: "transcribestreaming-fips.us-west-2.amazonaws.com",
|
|
19
|
+
signingRegion: "us-west-2",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
5
22
|
|
|
6
23
|
const partitionHash: PartitionHash = {
|
|
7
24
|
aws: {
|
|
@@ -23,6 +40,10 @@ const partitionHash: PartitionHash = {
|
|
|
23
40
|
"eu-west-3",
|
|
24
41
|
"me-south-1",
|
|
25
42
|
"sa-east-1",
|
|
43
|
+
"transcribestreaming-fips-ca-central-1",
|
|
44
|
+
"transcribestreaming-fips-us-east-1",
|
|
45
|
+
"transcribestreaming-fips-us-east-2",
|
|
46
|
+
"transcribestreaming-fips-us-west-2",
|
|
26
47
|
"us-east-1",
|
|
27
48
|
"us-east-2",
|
|
28
49
|
"us-west-1",
|