aws-sdk-transcribestreamingservice 1.32.0 → 1.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +62 -10
- data/lib/aws-sdk-transcribestreamingservice/client.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +22 -0
- data/lib/aws-sdk-transcribestreamingservice/types.rb +127 -17
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1477e2ef6a36ca572ee0805cdb381545bedb9f503aa86bb8d30bcf3d88a29ea9
|
4
|
+
data.tar.gz: 1fb8b1fe897cd8944a8b7a77bc1d3931e253653908a856595d1f557f1dd1314b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05f97edb8a3c616a12ffe055b19b5815e7cfbe976a373a00edb4a3189c278c41b98b96300347fbfe9810f0145faf72f9975733fae715b29c7e5d8e124cd03c26
|
7
|
+
data.tar.gz: bd1f8e2b9edafe9f403a9cc1e44118f6cf74f734dea08c512fe5fc9c44fa162300b3af794f5670482e0944bc4873dabb149d6e684159c05a373463d2b032318b
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.33.0
|
@@ -242,8 +242,7 @@ module Aws::TranscribeStreamingService
|
|
242
242
|
# Amazon Transcribe Medical, this is US English (en-US).
|
243
243
|
#
|
244
244
|
# @option params [required, Integer] :media_sample_rate_hertz
|
245
|
-
# The sample rate of the input audio in Hertz.
|
246
|
-
# or higher are accepted.
|
245
|
+
# The sample rate of the input audio in Hertz.
|
247
246
|
#
|
248
247
|
# @option params [required, String] :media_encoding
|
249
248
|
# The encoding used for the input audio.
|
@@ -503,11 +502,11 @@ module Aws::TranscribeStreamingService
|
|
503
502
|
req.send_request(options, &block)
|
504
503
|
end
|
505
504
|
|
506
|
-
# Starts a bidirectional
|
505
|
+
# Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon
|
507
506
|
# Transcribe and the transcription results are streamed to your
|
508
507
|
# application.
|
509
508
|
#
|
510
|
-
# The following are encoded as
|
509
|
+
# The following are encoded as HTTP/2 headers:
|
511
510
|
#
|
512
511
|
# * x-amzn-transcribe-language-code
|
513
512
|
#
|
@@ -517,12 +516,18 @@ module Aws::TranscribeStreamingService
|
|
517
516
|
#
|
518
517
|
# * x-amzn-transcribe-session-id
|
519
518
|
#
|
519
|
+
# See the [ SDK for Go API Reference][1] for more detail.
|
520
|
+
#
|
521
|
+
#
|
522
|
+
#
|
523
|
+
# [1]: https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription
|
524
|
+
#
|
520
525
|
# @option params [required, String] :language_code
|
521
526
|
# Indicates the source language used in the input audio stream.
|
522
527
|
#
|
523
528
|
# @option params [required, Integer] :media_sample_rate_hertz
|
524
529
|
# The sample rate, in Hertz, of the input audio. We suggest that you use
|
525
|
-
#
|
530
|
+
# 8,000 Hz for low quality audio and 16,000 Hz for high quality audio.
|
526
531
|
#
|
527
532
|
# @option params [required, String] :media_encoding
|
528
533
|
# The encoding used for the input audio.
|
@@ -539,14 +544,14 @@ module Aws::TranscribeStreamingService
|
|
539
544
|
#
|
540
545
|
# @option params [String] :vocabulary_filter_name
|
541
546
|
# The name of the vocabulary filter you've created that is unique to
|
542
|
-
# your
|
543
|
-
#
|
547
|
+
# your account. Provide the name in this field to successfully use it in
|
548
|
+
# a stream.
|
544
549
|
#
|
545
550
|
# @option params [String] :vocabulary_filter_method
|
546
551
|
# The manner in which you use your vocabulary filter to filter words in
|
547
552
|
# your transcript. `Remove` removes filtered words from your
|
548
|
-
# transcription results. `Mask` masks
|
549
|
-
# transcription results. `Tag` keeps the filtered words in your
|
553
|
+
# transcription results. `Mask` masks filtered words with a `***` in
|
554
|
+
# your transcription results. `Tag` keeps the filtered words in your
|
550
555
|
# transcription results and tags them. The tag appears as
|
551
556
|
# `VocabularyFilterMatch` equal to `True`
|
552
557
|
#
|
@@ -581,6 +586,37 @@ module Aws::TranscribeStreamingService
|
|
581
586
|
# are less likely to change. Higher stability levels can come with lower
|
582
587
|
# overall transcription accuracy.
|
583
588
|
#
|
589
|
+
# @option params [String] :content_identification_type
|
590
|
+
# Set this field to PII to identify personally identifiable information
|
591
|
+
# (PII) in the transcription output. Content identification is performed
|
592
|
+
# only upon complete transcription of the audio segments.
|
593
|
+
#
|
594
|
+
# You can’t set both `ContentIdentificationType` and
|
595
|
+
# `ContentRedactionType` in the same request. If you set both, your
|
596
|
+
# request returns a `BadRequestException`.
|
597
|
+
#
|
598
|
+
# @option params [String] :content_redaction_type
|
599
|
+
# Set this field to PII to redact personally identifiable information
|
600
|
+
# (PII) in the transcription output. Content redaction is performed only
|
601
|
+
# upon complete transcription of the audio segments.
|
602
|
+
#
|
603
|
+
# You can’t set both `ContentRedactionType` and
|
604
|
+
# `ContentIdentificationType` in the same request. If you set both, your
|
605
|
+
# request returns a `BadRequestException`.
|
606
|
+
#
|
607
|
+
# @option params [String] :pii_entity_types
|
608
|
+
# List the PII entity types you want to identify or redact. In order to
|
609
|
+
# specify entity types, you must have either `ContentIdentificationType`
|
610
|
+
# or `ContentRedactionType` enabled.
|
611
|
+
#
|
612
|
+
# `PIIEntityTypes` must be comma-separated; the available values are:
|
613
|
+
# `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
|
614
|
+
# `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`, `ADDRESS`,
|
615
|
+
# `NAME`, `PHONE`, `SSN`, and `ALL`.
|
616
|
+
#
|
617
|
+
# `PiiEntityTypes` is an optional parameter with a default value of
|
618
|
+
# `ALL`.
|
619
|
+
#
|
584
620
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
585
621
|
#
|
586
622
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -597,6 +633,9 @@ module Aws::TranscribeStreamingService
|
|
597
633
|
# * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
|
598
634
|
# * {Types::StartStreamTranscriptionResponse#enable_partial_results_stabilization #enable_partial_results_stabilization} => Boolean
|
599
635
|
# * {Types::StartStreamTranscriptionResponse#partial_results_stability #partial_results_stability} => String
|
636
|
+
# * {Types::StartStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
|
637
|
+
# * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
|
638
|
+
# * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
|
600
639
|
#
|
601
640
|
# @example Bi-directional EventStream Operation Example
|
602
641
|
#
|
@@ -706,6 +745,9 @@ module Aws::TranscribeStreamingService
|
|
706
745
|
# number_of_channels: 1,
|
707
746
|
# enable_partial_results_stabilization: false,
|
708
747
|
# partial_results_stability: "high", # accepts high, medium, low
|
748
|
+
# content_identification_type: "PII", # accepts PII
|
749
|
+
# content_redaction_type: "PII", # accepts PII
|
750
|
+
# pii_entity_types: "PiiEntityTypes",
|
709
751
|
# })
|
710
752
|
# # => Seahorse::Client::AsyncResponse
|
711
753
|
# async_resp.wait
|
@@ -741,6 +783,13 @@ module Aws::TranscribeStreamingService
|
|
741
783
|
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
742
784
|
# event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
|
743
785
|
# event.transcript.results[0].alternatives[0].items[0].stable #=> Boolean
|
786
|
+
# event.transcript.results[0].alternatives[0].entities #=> Array
|
787
|
+
# event.transcript.results[0].alternatives[0].entities[0].start_time #=> Float
|
788
|
+
# event.transcript.results[0].alternatives[0].entities[0].end_time #=> Float
|
789
|
+
# event.transcript.results[0].alternatives[0].entities[0].category #=> String
|
790
|
+
# event.transcript.results[0].alternatives[0].entities[0].type #=> String
|
791
|
+
# event.transcript.results[0].alternatives[0].entities[0].content #=> String
|
792
|
+
# event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
|
744
793
|
# event.transcript.results[0].channel_id #=> String
|
745
794
|
#
|
746
795
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
@@ -765,6 +814,9 @@ module Aws::TranscribeStreamingService
|
|
765
814
|
# resp.number_of_channels #=> Integer
|
766
815
|
# resp.enable_partial_results_stabilization #=> Boolean
|
767
816
|
# resp.partial_results_stability #=> String, one of "high", "medium", "low"
|
817
|
+
# resp.content_identification_type #=> String, one of "PII"
|
818
|
+
# resp.content_redaction_type #=> String, one of "PII"
|
819
|
+
# resp.pii_entity_types #=> String
|
768
820
|
#
|
769
821
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
770
822
|
#
|
@@ -809,7 +861,7 @@ module Aws::TranscribeStreamingService
|
|
809
861
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
810
862
|
config: config)
|
811
863
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
812
|
-
context[:gem_version] = '1.
|
864
|
+
context[:gem_version] = '1.33.0'
|
813
865
|
Seahorse::Client::Request.new(handlers, context)
|
814
866
|
end
|
815
867
|
|
@@ -351,7 +351,7 @@ module Aws::TranscribeStreamingService
|
|
351
351
|
params: params,
|
352
352
|
config: config)
|
353
353
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
354
|
-
context[:gem_version] = '1.
|
354
|
+
context[:gem_version] = '1.33.0'
|
355
355
|
Seahorse::Client::Request.new(handlers, context)
|
356
356
|
end
|
357
357
|
|
@@ -22,7 +22,11 @@ module Aws::TranscribeStreamingService
|
|
22
22
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
23
23
|
Confidence = Shapes::FloatShape.new(name: 'Confidence')
|
24
24
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
25
|
+
ContentIdentificationType = Shapes::StringShape.new(name: 'ContentIdentificationType')
|
26
|
+
ContentRedactionType = Shapes::StringShape.new(name: 'ContentRedactionType')
|
25
27
|
Double = Shapes::FloatShape.new(name: 'Double')
|
28
|
+
Entity = Shapes::StructureShape.new(name: 'Entity')
|
29
|
+
EntityList = Shapes::ListShape.new(name: 'EntityList')
|
26
30
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
27
31
|
Item = Shapes::StructureShape.new(name: 'Item')
|
28
32
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
@@ -45,6 +49,7 @@ module Aws::TranscribeStreamingService
|
|
45
49
|
MedicalTranscriptResultStream = Shapes::StructureShape.new(name: 'MedicalTranscriptResultStream')
|
46
50
|
NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
|
47
51
|
PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
|
52
|
+
PiiEntityTypes = Shapes::StringShape.new(name: 'PiiEntityTypes')
|
48
53
|
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
49
54
|
Result = Shapes::StructureShape.new(name: 'Result')
|
50
55
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
@@ -67,6 +72,7 @@ module Aws::TranscribeStreamingService
|
|
67
72
|
|
68
73
|
Alternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
|
69
74
|
Alternative.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
|
75
|
+
Alternative.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, location_name: "Entities"))
|
70
76
|
Alternative.struct_class = Types::Alternative
|
71
77
|
|
72
78
|
AlternativeList.member = Shapes::ShapeRef.new(shape: Alternative)
|
@@ -83,6 +89,16 @@ module Aws::TranscribeStreamingService
|
|
83
89
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
84
90
|
ConflictException.struct_class = Types::ConflictException
|
85
91
|
|
92
|
+
Entity.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
93
|
+
Entity.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
94
|
+
Entity.add_member(:category, Shapes::ShapeRef.new(shape: String, location_name: "Category"))
|
95
|
+
Entity.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
96
|
+
Entity.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
97
|
+
Entity.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
|
98
|
+
Entity.struct_class = Types::Entity
|
99
|
+
|
100
|
+
EntityList.member = Shapes::ShapeRef.new(shape: Entity)
|
101
|
+
|
86
102
|
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
87
103
|
InternalFailureException.struct_class = Types::InternalFailureException
|
88
104
|
|
@@ -210,6 +226,9 @@ module Aws::TranscribeStreamingService
|
|
210
226
|
StartStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
211
227
|
StartStreamTranscriptionRequest.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
|
212
228
|
StartStreamTranscriptionRequest.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
|
229
|
+
StartStreamTranscriptionRequest.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
|
230
|
+
StartStreamTranscriptionRequest.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
|
231
|
+
StartStreamTranscriptionRequest.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
|
213
232
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
214
233
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
215
234
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -228,6 +247,9 @@ module Aws::TranscribeStreamingService
|
|
228
247
|
StartStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
229
248
|
StartStreamTranscriptionResponse.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
|
230
249
|
StartStreamTranscriptionResponse.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
|
250
|
+
StartStreamTranscriptionResponse.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
|
251
|
+
StartStreamTranscriptionResponse.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
|
252
|
+
StartStreamTranscriptionResponse.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
|
231
253
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
232
254
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
233
255
|
StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -20,20 +20,31 @@ module Aws::TranscribeStreamingService
|
|
20
20
|
# One or more alternative interpretations of the input audio.
|
21
21
|
# @return [Array<Types::Item>]
|
22
22
|
#
|
23
|
+
# @!attribute [rw] entities
|
24
|
+
# Contains the entities identified as personally identifiable
|
25
|
+
# information (PII) in the transcription output.
|
26
|
+
# @return [Array<Types::Entity>]
|
27
|
+
#
|
23
28
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Alternative AWS API Documentation
|
24
29
|
#
|
25
30
|
class Alternative < Struct.new(
|
26
31
|
:transcript,
|
27
|
-
:items
|
32
|
+
:items,
|
33
|
+
:entities)
|
28
34
|
SENSITIVE = []
|
29
35
|
include Aws::Structure
|
30
36
|
end
|
31
37
|
|
32
38
|
# Provides a wrapper for the audio chunks that you are sending.
|
33
39
|
#
|
34
|
-
# For information on audio encoding in Amazon Transcribe, see
|
35
|
-
# information on audio encoding formats in Amazon
|
36
|
-
# see input
|
40
|
+
# For information on audio encoding in Amazon Transcribe, see [Speech
|
41
|
+
# input][1]. For information on audio encoding formats in Amazon
|
42
|
+
# Transcribe Medical, see [Speech input][2].
|
43
|
+
#
|
44
|
+
#
|
45
|
+
#
|
46
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/input.html
|
47
|
+
# [2]: https://docs.aws.amazon.com/transcribe/latest/dg/input-med.html
|
37
48
|
#
|
38
49
|
# @note When making an API call, you may pass AudioEvent
|
39
50
|
# data as a hash:
|
@@ -89,6 +100,50 @@ module Aws::TranscribeStreamingService
|
|
89
100
|
include Aws::Structure
|
90
101
|
end
|
91
102
|
|
103
|
+
# The entity identified as personally identifiable information (PII).
|
104
|
+
#
|
105
|
+
# @!attribute [rw] start_time
|
106
|
+
# The start time of speech that was identified as PII.
|
107
|
+
# @return [Float]
|
108
|
+
#
|
109
|
+
# @!attribute [rw] end_time
|
110
|
+
# The end time of speech that was identified as PII.
|
111
|
+
# @return [Float]
|
112
|
+
#
|
113
|
+
# @!attribute [rw] category
|
114
|
+
# The category of of information identified in this entity; for
|
115
|
+
# example, PII.
|
116
|
+
# @return [String]
|
117
|
+
#
|
118
|
+
# @!attribute [rw] type
|
119
|
+
# The type of PII identified in this entity; for example, name or
|
120
|
+
# credit card number.
|
121
|
+
# @return [String]
|
122
|
+
#
|
123
|
+
# @!attribute [rw] content
|
124
|
+
# The words in the transcription output that have been identified as a
|
125
|
+
# PII entity.
|
126
|
+
# @return [String]
|
127
|
+
#
|
128
|
+
# @!attribute [rw] confidence
|
129
|
+
# A value between zero and one that Amazon Transcribe assigns to PII
|
130
|
+
# identified in the source audio. Larger values indicate a higher
|
131
|
+
# confidence in PII identification.
|
132
|
+
# @return [Float]
|
133
|
+
#
|
134
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Entity AWS API Documentation
|
135
|
+
#
|
136
|
+
class Entity < Struct.new(
|
137
|
+
:start_time,
|
138
|
+
:end_time,
|
139
|
+
:category,
|
140
|
+
:type,
|
141
|
+
:content,
|
142
|
+
:confidence)
|
143
|
+
SENSITIVE = []
|
144
|
+
include Aws::Structure
|
145
|
+
end
|
146
|
+
|
92
147
|
# A problem occurred while processing the audio. Amazon Transcribe or
|
93
148
|
# Amazon Transcribe Medical terminated processing. Try your request
|
94
149
|
# again.
|
@@ -478,8 +533,7 @@ module Aws::TranscribeStreamingService
|
|
478
533
|
# @return [String]
|
479
534
|
#
|
480
535
|
# @!attribute [rw] media_sample_rate_hertz
|
481
|
-
# The sample rate of the input audio in Hertz.
|
482
|
-
# Hz or higher are accepted.
|
536
|
+
# The sample rate of the input audio in Hertz.
|
483
537
|
# @return [Integer]
|
484
538
|
#
|
485
539
|
# @!attribute [rw] media_encoding
|
@@ -569,7 +623,7 @@ module Aws::TranscribeStreamingService
|
|
569
623
|
# @return [String]
|
570
624
|
#
|
571
625
|
# @!attribute [rw] media_sample_rate_hertz
|
572
|
-
# The sample rate of the input audio in Hertz.
|
626
|
+
# The sample rate of the input audio in Hertz.
|
573
627
|
# @return [Integer]
|
574
628
|
#
|
575
629
|
# @!attribute [rw] media_encoding
|
@@ -653,6 +707,9 @@ module Aws::TranscribeStreamingService
|
|
653
707
|
# number_of_channels: 1,
|
654
708
|
# enable_partial_results_stabilization: false,
|
655
709
|
# partial_results_stability: "high", # accepts high, medium, low
|
710
|
+
# content_identification_type: "PII", # accepts PII
|
711
|
+
# content_redaction_type: "PII", # accepts PII
|
712
|
+
# pii_entity_types: "PiiEntityTypes",
|
656
713
|
# }
|
657
714
|
#
|
658
715
|
# @!attribute [rw] language_code
|
@@ -661,7 +718,7 @@ module Aws::TranscribeStreamingService
|
|
661
718
|
#
|
662
719
|
# @!attribute [rw] media_sample_rate_hertz
|
663
720
|
# The sample rate, in Hertz, of the input audio. We suggest that you
|
664
|
-
# use
|
721
|
+
# use 8,000 Hz for low quality audio and 16,000 Hz for high quality
|
665
722
|
# audio.
|
666
723
|
# @return [Integer]
|
667
724
|
#
|
@@ -683,20 +740,20 @@ module Aws::TranscribeStreamingService
|
|
683
740
|
#
|
684
741
|
# @!attribute [rw] audio_stream
|
685
742
|
# PCM-encoded stream of audio blobs. The audio stream is encoded as an
|
686
|
-
#
|
743
|
+
# HTTP/2 data frame.
|
687
744
|
# @return [Types::AudioStream]
|
688
745
|
#
|
689
746
|
# @!attribute [rw] vocabulary_filter_name
|
690
747
|
# The name of the vocabulary filter you've created that is unique to
|
691
|
-
# your
|
692
|
-
#
|
748
|
+
# your account. Provide the name in this field to successfully use it
|
749
|
+
# in a stream.
|
693
750
|
# @return [String]
|
694
751
|
#
|
695
752
|
# @!attribute [rw] vocabulary_filter_method
|
696
753
|
# The manner in which you use your vocabulary filter to filter words
|
697
754
|
# in your transcript. `Remove` removes filtered words from your
|
698
|
-
# transcription results. `Mask` masks
|
699
|
-
# transcription results. `Tag` keeps the filtered words in your
|
755
|
+
# transcription results. `Mask` masks filtered words with a `***` in
|
756
|
+
# your transcription results. `Tag` keeps the filtered words in your
|
700
757
|
# transcription results and tags them. The tag appears as
|
701
758
|
# `VocabularyFilterMatch` equal to `True`
|
702
759
|
# @return [String]
|
@@ -740,6 +797,41 @@ module Aws::TranscribeStreamingService
|
|
740
797
|
# levels can come with lower overall transcription accuracy.
|
741
798
|
# @return [String]
|
742
799
|
#
|
800
|
+
# @!attribute [rw] content_identification_type
|
801
|
+
# Set this field to PII to identify personally identifiable
|
802
|
+
# information (PII) in the transcription output. Content
|
803
|
+
# identification is performed only upon complete transcription of the
|
804
|
+
# audio segments.
|
805
|
+
#
|
806
|
+
# You can’t set both `ContentIdentificationType` and
|
807
|
+
# `ContentRedactionType` in the same request. If you set both, your
|
808
|
+
# request returns a `BadRequestException`.
|
809
|
+
# @return [String]
|
810
|
+
#
|
811
|
+
# @!attribute [rw] content_redaction_type
|
812
|
+
# Set this field to PII to redact personally identifiable information
|
813
|
+
# (PII) in the transcription output. Content redaction is performed
|
814
|
+
# only upon complete transcription of the audio segments.
|
815
|
+
#
|
816
|
+
# You can’t set both `ContentRedactionType` and
|
817
|
+
# `ContentIdentificationType` in the same request. If you set both,
|
818
|
+
# your request returns a `BadRequestException`.
|
819
|
+
# @return [String]
|
820
|
+
#
|
821
|
+
# @!attribute [rw] pii_entity_types
|
822
|
+
# List the PII entity types you want to identify or redact. In order
|
823
|
+
# to specify entity types, you must have either
|
824
|
+
# `ContentIdentificationType` or `ContentRedactionType` enabled.
|
825
|
+
#
|
826
|
+
# `PIIEntityTypes` must be comma-separated; the available values are:
|
827
|
+
# `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
|
828
|
+
# `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`,
|
829
|
+
# `ADDRESS`, `NAME`, `PHONE`, `SSN`, and `ALL`.
|
830
|
+
#
|
831
|
+
# `PiiEntityTypes` is an optional parameter with a default value of
|
832
|
+
# `ALL`.
|
833
|
+
# @return [String]
|
834
|
+
#
|
743
835
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
744
836
|
#
|
745
837
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -755,7 +847,10 @@ module Aws::TranscribeStreamingService
|
|
755
847
|
:enable_channel_identification,
|
756
848
|
:number_of_channels,
|
757
849
|
:enable_partial_results_stabilization,
|
758
|
-
:partial_results_stability
|
850
|
+
:partial_results_stability,
|
851
|
+
:content_identification_type,
|
852
|
+
:content_redaction_type,
|
853
|
+
:pii_entity_types)
|
759
854
|
SENSITIVE = []
|
760
855
|
include Aws::Structure
|
761
856
|
end
|
@@ -769,8 +864,8 @@ module Aws::TranscribeStreamingService
|
|
769
864
|
# @return [String]
|
770
865
|
#
|
771
866
|
# @!attribute [rw] media_sample_rate_hertz
|
772
|
-
# The sample rate for the input audio stream. Use
|
773
|
-
# quality audio and
|
867
|
+
# The sample rate for the input audio stream. Use 8,000 Hz for low
|
868
|
+
# quality audio and 16,000 Hz for high quality audio.
|
774
869
|
# @return [Integer]
|
775
870
|
#
|
776
871
|
# @!attribute [rw] media_encoding
|
@@ -820,6 +915,18 @@ module Aws::TranscribeStreamingService
|
|
820
915
|
# shows the stability level.
|
821
916
|
# @return [String]
|
822
917
|
#
|
918
|
+
# @!attribute [rw] content_identification_type
|
919
|
+
# Shows whether content identification was enabled in this stream.
|
920
|
+
# @return [String]
|
921
|
+
#
|
922
|
+
# @!attribute [rw] content_redaction_type
|
923
|
+
# Shows whether content redaction was enabled in this stream.
|
924
|
+
# @return [String]
|
925
|
+
#
|
926
|
+
# @!attribute [rw] pii_entity_types
|
927
|
+
# Lists the PII entity types you specified in your request.
|
928
|
+
# @return [String]
|
929
|
+
#
|
823
930
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
824
931
|
#
|
825
932
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -836,7 +943,10 @@ module Aws::TranscribeStreamingService
|
|
836
943
|
:enable_channel_identification,
|
837
944
|
:number_of_channels,
|
838
945
|
:enable_partial_results_stabilization,
|
839
|
-
:partial_results_stability
|
946
|
+
:partial_results_stability,
|
947
|
+
:content_identification_type,
|
948
|
+
:content_redaction_type,
|
949
|
+
:pii_entity_types)
|
840
950
|
SENSITIVE = []
|
841
951
|
include Aws::Structure
|
842
952
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-transcribestreamingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|