aws-sdk-transcribestreamingservice 1.31.0 → 1.35.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad9999d142555e99e42cd1e24ee7e7503906ac84762f903572ee9eaf32b720db
4
- data.tar.gz: 7c4295edd021769d42428886f04c1c2071abfce6e399e122c3bc8676854ee3a7
3
+ metadata.gz: cab57d9ea500511c5ce899a81279bb7c29da44a7dbd576b0ba778c54044ebd9b
4
+ data.tar.gz: 15f079c0e5fc44eaa231d5f20a89a121cbd4996135b6fa1bd5f754a614fa8860
5
5
  SHA512:
6
- metadata.gz: f43900528e6a6b20c9dfe1e7f7f7a3b1fda1fd24d852c067611fdb93c485997cef2ae7b0a241b59bf508cd465c3c308815a1708218e7e0586af721bfd220af11
7
- data.tar.gz: 8a999e7638b7191c7a47b768ef504f78d095a80b572dd3b489c7c0016678875dc0180e785ff321ed448dc74bbf91a557163c433f576a398c464ec64a797189b1
6
+ metadata.gz: 41c61e4ddc54dd800d47f525eda033c4ad7bd423cb5cd072a206b7df580f428ab25b61e3fa39a6e388f6f4742c62282376f7fe6246d6fd6f55422164de86de16
7
+ data.tar.gz: 7ee08f47ca72d41636d9a5c9b0614cf1528d75294ed20a45f1595d09d7e3f21c307a65ddf7da1d22c36bce99f90902e6b8658954acdd4e630c4aaff630117efc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.35.0 (2021-10-20)
5
+ ------------------
6
+
7
+ * Feature - This release adds custom language support for streaming transcription.
8
+
9
+ 1.34.0 (2021-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.33.0 (2021-09-14)
15
+ ------------------
16
+
17
+ * Feature - Amazon Transcribe now supports PII Identification and Redaction for streaming transcription.
18
+
19
+ 1.32.0 (2021-09-01)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.31.0 (2021-07-30)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.31.0
1
+ 1.35.0
@@ -7,11 +7,9 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
- if RUBY_VERSION >= '2.1'
11
- begin
12
- require 'http/2'
13
- rescue LoadError; end
14
- end
10
+ begin
11
+ require 'http/2'
12
+ rescue LoadError; end
15
13
  require 'aws-sdk-core/plugins/credentials_configuration.rb'
16
14
  require 'aws-sdk-core/plugins/logging.rb'
17
15
  require 'aws-sdk-core/plugins/param_converter.rb'
@@ -244,8 +242,7 @@ module Aws::TranscribeStreamingService
244
242
  # Amazon Transcribe Medical, this is US English (en-US).
245
243
  #
246
244
  # @option params [required, Integer] :media_sample_rate_hertz
247
- # The sample rate of the input audio in Hertz. Sample rates of 16000 Hz
248
- # or higher are accepted.
245
+ # The sample rate of the input audio in Hertz.
249
246
  #
250
247
  # @option params [required, String] :media_encoding
251
248
  # The encoding used for the input audio.
@@ -505,11 +502,11 @@ module Aws::TranscribeStreamingService
505
502
  req.send_request(options, &block)
506
503
  end
507
504
 
508
- # Starts a bidirectional HTTP2 stream where audio is streamed to Amazon
505
+ # Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon
509
506
  # Transcribe and the transcription results are streamed to your
510
507
  # application.
511
508
  #
512
- # The following are encoded as HTTP2 headers:
509
+ # The following are encoded as HTTP/2 headers:
513
510
  #
514
511
  # * x-amzn-transcribe-language-code
515
512
  #
@@ -519,12 +516,18 @@ module Aws::TranscribeStreamingService
519
516
  #
520
517
  # * x-amzn-transcribe-session-id
521
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
+ #
522
525
  # @option params [required, String] :language_code
523
526
  # Indicates the source language used in the input audio stream.
524
527
  #
525
528
  # @option params [required, Integer] :media_sample_rate_hertz
526
529
  # The sample rate, in Hertz, of the input audio. We suggest that you use
527
- # 8000 Hz for low quality audio and 16000 Hz for high quality audio.
530
+ # 8,000 Hz for low quality audio and 16,000 Hz for high quality audio.
528
531
  #
529
532
  # @option params [required, String] :media_encoding
530
533
  # The encoding used for the input audio.
@@ -541,14 +544,14 @@ module Aws::TranscribeStreamingService
541
544
  #
542
545
  # @option params [String] :vocabulary_filter_name
543
546
  # The name of the vocabulary filter you've created that is unique to
544
- # your AWS account. Provide the name in this field to successfully use
545
- # it in a stream.
547
+ # your account. Provide the name in this field to successfully use it in
548
+ # a stream.
546
549
  #
547
550
  # @option params [String] :vocabulary_filter_method
548
551
  # The manner in which you use your vocabulary filter to filter words in
549
552
  # your transcript. `Remove` removes filtered words from your
550
- # transcription results. `Mask` masks those words with a `***` in your
551
- # 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
552
555
  # transcription results and tags them. The tag appears as
553
556
  # `VocabularyFilterMatch` equal to `True`
554
557
  #
@@ -583,6 +586,35 @@ module Aws::TranscribeStreamingService
583
586
  # are less likely to change. Higher stability levels can come with lower
584
587
  # overall transcription accuracy.
585
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` is an optional parameter with a default value of
613
+ # `ALL`.
614
+ #
615
+ # @option params [String] :language_model_name
616
+ # The name of the language model you want to use.
617
+ #
586
618
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
587
619
  #
588
620
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -599,6 +631,10 @@ module Aws::TranscribeStreamingService
599
631
  # * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
600
632
  # * {Types::StartStreamTranscriptionResponse#enable_partial_results_stabilization #enable_partial_results_stabilization} => Boolean
601
633
  # * {Types::StartStreamTranscriptionResponse#partial_results_stability #partial_results_stability} => String
634
+ # * {Types::StartStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
635
+ # * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
636
+ # * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
637
+ # * {Types::StartStreamTranscriptionResponse#language_model_name #language_model_name} => String
602
638
  #
603
639
  # @example Bi-directional EventStream Operation Example
604
640
  #
@@ -708,6 +744,10 @@ module Aws::TranscribeStreamingService
708
744
  # number_of_channels: 1,
709
745
  # enable_partial_results_stabilization: false,
710
746
  # partial_results_stability: "high", # accepts high, medium, low
747
+ # content_identification_type: "PII", # accepts PII
748
+ # content_redaction_type: "PII", # accepts PII
749
+ # pii_entity_types: "PiiEntityTypes",
750
+ # language_model_name: "ModelName",
711
751
  # })
712
752
  # # => Seahorse::Client::AsyncResponse
713
753
  # async_resp.wait
@@ -743,6 +783,13 @@ module Aws::TranscribeStreamingService
743
783
  # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
744
784
  # event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
745
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
746
793
  # event.transcript.results[0].channel_id #=> String
747
794
  #
748
795
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
@@ -767,6 +814,10 @@ module Aws::TranscribeStreamingService
767
814
  # resp.number_of_channels #=> Integer
768
815
  # resp.enable_partial_results_stabilization #=> Boolean
769
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
820
+ # resp.language_model_name #=> String
770
821
  #
771
822
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
772
823
  #
@@ -811,7 +862,7 @@ module Aws::TranscribeStreamingService
811
862
  http_response: Seahorse::Client::Http::AsyncResponse.new,
812
863
  config: config)
813
864
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
814
- context[:gem_version] = '1.31.0'
865
+ context[:gem_version] = '1.35.0'
815
866
  Seahorse::Client::Request.new(handlers, context)
816
867
  end
817
868
 
@@ -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.31.0'
354
+ context[:gem_version] = '1.35.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')
@@ -43,8 +47,10 @@ module Aws::TranscribeStreamingService
43
47
  MedicalTranscript = Shapes::StructureShape.new(name: 'MedicalTranscript')
44
48
  MedicalTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalTranscriptEvent')
45
49
  MedicalTranscriptResultStream = Shapes::StructureShape.new(name: 'MedicalTranscriptResultStream')
50
+ ModelName = Shapes::StringShape.new(name: 'ModelName')
46
51
  NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
47
52
  PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
53
+ PiiEntityTypes = Shapes::StringShape.new(name: 'PiiEntityTypes')
48
54
  RequestId = Shapes::StringShape.new(name: 'RequestId')
49
55
  Result = Shapes::StructureShape.new(name: 'Result')
50
56
  ResultList = Shapes::ListShape.new(name: 'ResultList')
@@ -67,6 +73,7 @@ module Aws::TranscribeStreamingService
67
73
 
68
74
  Alternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
69
75
  Alternative.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
76
+ Alternative.add_member(:entities, Shapes::ShapeRef.new(shape: EntityList, location_name: "Entities"))
70
77
  Alternative.struct_class = Types::Alternative
71
78
 
72
79
  AlternativeList.member = Shapes::ShapeRef.new(shape: Alternative)
@@ -83,6 +90,16 @@ module Aws::TranscribeStreamingService
83
90
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
84
91
  ConflictException.struct_class = Types::ConflictException
85
92
 
93
+ Entity.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
94
+ Entity.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
95
+ Entity.add_member(:category, Shapes::ShapeRef.new(shape: String, location_name: "Category"))
96
+ Entity.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
97
+ Entity.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
98
+ Entity.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
99
+ Entity.struct_class = Types::Entity
100
+
101
+ EntityList.member = Shapes::ShapeRef.new(shape: Entity)
102
+
86
103
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
87
104
  InternalFailureException.struct_class = Types::InternalFailureException
88
105
 
@@ -210,6 +227,10 @@ module Aws::TranscribeStreamingService
210
227
  StartStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
211
228
  StartStreamTranscriptionRequest.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
212
229
  StartStreamTranscriptionRequest.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
230
+ StartStreamTranscriptionRequest.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
231
+ StartStreamTranscriptionRequest.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
232
+ StartStreamTranscriptionRequest.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
233
+ StartStreamTranscriptionRequest.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
213
234
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
214
235
  StartStreamTranscriptionRequest[:payload] = :audio_stream
215
236
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -228,6 +249,10 @@ module Aws::TranscribeStreamingService
228
249
  StartStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
229
250
  StartStreamTranscriptionResponse.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
230
251
  StartStreamTranscriptionResponse.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
252
+ StartStreamTranscriptionResponse.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
253
+ StartStreamTranscriptionResponse.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
254
+ StartStreamTranscriptionResponse.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
255
+ StartStreamTranscriptionResponse.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
231
256
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
232
257
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
233
258
  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 input. For
35
- # information on audio encoding formats in Amazon Transcribe Medical,
36
- # see input-med.
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. Sample rates of 16000
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. Valid value: 16000 Hz.
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,10 @@ 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",
713
+ # language_model_name: "ModelName",
656
714
  # }
657
715
  #
658
716
  # @!attribute [rw] language_code
@@ -661,7 +719,7 @@ module Aws::TranscribeStreamingService
661
719
  #
662
720
  # @!attribute [rw] media_sample_rate_hertz
663
721
  # The sample rate, in Hertz, of the input audio. We suggest that you
664
- # use 8000 Hz for low quality audio and 16000 Hz for high quality
722
+ # use 8,000 Hz for low quality audio and 16,000 Hz for high quality
665
723
  # audio.
666
724
  # @return [Integer]
667
725
  #
@@ -683,20 +741,20 @@ module Aws::TranscribeStreamingService
683
741
  #
684
742
  # @!attribute [rw] audio_stream
685
743
  # PCM-encoded stream of audio blobs. The audio stream is encoded as an
686
- # HTTP2 data frame.
744
+ # HTTP/2 data frame.
687
745
  # @return [Types::AudioStream]
688
746
  #
689
747
  # @!attribute [rw] vocabulary_filter_name
690
748
  # The name of the vocabulary filter you've created that is unique to
691
- # your AWS account. Provide the name in this field to successfully use
692
- # it in a stream.
749
+ # your account. Provide the name in this field to successfully use it
750
+ # in a stream.
693
751
  # @return [String]
694
752
  #
695
753
  # @!attribute [rw] vocabulary_filter_method
696
754
  # The manner in which you use your vocabulary filter to filter words
697
755
  # in your transcript. `Remove` removes filtered words from your
698
- # transcription results. `Mask` masks those words with a `***` in your
699
- # transcription results. `Tag` keeps the filtered words in your
756
+ # transcription results. `Mask` masks filtered words with a `***` in
757
+ # your transcription results. `Tag` keeps the filtered words in your
700
758
  # transcription results and tags them. The tag appears as
701
759
  # `VocabularyFilterMatch` equal to `True`
702
760
  # @return [String]
@@ -740,6 +798,40 @@ module Aws::TranscribeStreamingService
740
798
  # levels can come with lower overall transcription accuracy.
741
799
  # @return [String]
742
800
  #
801
+ # @!attribute [rw] content_identification_type
802
+ # Set this field to PII to identify personally identifiable
803
+ # information (PII) in the transcription output. Content
804
+ # identification is performed only upon complete transcription of the
805
+ # audio segments.
806
+ #
807
+ # You can’t set both `ContentIdentificationType` and
808
+ # `ContentRedactionType` in the same request. If you set both, your
809
+ # request returns a `BadRequestException`.
810
+ # @return [String]
811
+ #
812
+ # @!attribute [rw] content_redaction_type
813
+ # Set this field to PII to redact personally identifiable information
814
+ # (PII) in the transcription output. Content redaction is performed
815
+ # only upon complete transcription of the audio segments.
816
+ #
817
+ # You can’t set both `ContentRedactionType` and
818
+ # `ContentIdentificationType` in the same request. If you set both,
819
+ # your request returns a `BadRequestException`.
820
+ # @return [String]
821
+ #
822
+ # @!attribute [rw] pii_entity_types
823
+ # List the PII entity types you want to identify or redact. In order
824
+ # to specify entity types, you must have either
825
+ # `ContentIdentificationType` or `ContentRedactionType` enabled.
826
+ #
827
+ # `PiiEntityTypes` is an optional parameter with a default value of
828
+ # `ALL`.
829
+ # @return [String]
830
+ #
831
+ # @!attribute [rw] language_model_name
832
+ # The name of the language model you want to use.
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,11 @@ 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,
854
+ :language_model_name)
759
855
  SENSITIVE = []
760
856
  include Aws::Structure
761
857
  end
@@ -769,8 +865,8 @@ module Aws::TranscribeStreamingService
769
865
  # @return [String]
770
866
  #
771
867
  # @!attribute [rw] media_sample_rate_hertz
772
- # The sample rate for the input audio stream. Use 8000 Hz for low
773
- # quality audio and 16000 Hz for high quality audio.
868
+ # The sample rate for the input audio stream. Use 8,000 Hz for low
869
+ # quality audio and 16,000 Hz for high quality audio.
774
870
  # @return [Integer]
775
871
  #
776
872
  # @!attribute [rw] media_encoding
@@ -820,6 +916,21 @@ module Aws::TranscribeStreamingService
820
916
  # shows the stability level.
821
917
  # @return [String]
822
918
  #
919
+ # @!attribute [rw] content_identification_type
920
+ # Shows whether content identification was enabled in this stream.
921
+ # @return [String]
922
+ #
923
+ # @!attribute [rw] content_redaction_type
924
+ # Shows whether content redaction was enabled in this stream.
925
+ # @return [String]
926
+ #
927
+ # @!attribute [rw] pii_entity_types
928
+ # Lists the PII entity types you specified in your request.
929
+ # @return [String]
930
+ #
931
+ # @!attribute [rw] language_model_name
932
+ # @return [String]
933
+ #
823
934
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
824
935
  #
825
936
  class StartStreamTranscriptionResponse < Struct.new(
@@ -836,7 +947,11 @@ module Aws::TranscribeStreamingService
836
947
  :enable_channel_identification,
837
948
  :number_of_channels,
838
949
  :enable_partial_results_stabilization,
839
- :partial_results_stability)
950
+ :partial_results_stability,
951
+ :content_identification_type,
952
+ :content_redaction_type,
953
+ :pii_entity_types,
954
+ :language_model_name)
840
955
  SENSITIVE = []
841
956
  include Aws::Structure
842
957
  end
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
50
50
  # @!group service
51
51
  module Aws::TranscribeStreamingService
52
52
 
53
- GEM_VERSION = '1.31.0'
53
+ GEM_VERSION = '1.35.0'
54
54
 
55
55
  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.31.0
4
+ version: 1.35.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-07-30 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.119.0
22
+ version: 3.121.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.119.0
32
+ version: 3.121.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0'
81
+ version: '2.3'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="