aws-sdk-transcribestreamingservice 1.32.0 → 1.36.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +72 -10
- data/lib/aws-sdk-transcribestreamingservice/client.rb +10 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +25 -0
- data/lib/aws-sdk-transcribestreamingservice/types.rb +132 -17
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f43b48e2abbe132143ddc1a6144763fb0c59aefc1e1393bdca3532d09837db
|
4
|
+
data.tar.gz: 7bb1df3ed3cbe2fcbd770ca3e3c906e981b0113a2baa26fbccede98b20365c98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7559244058b5541ade0aacd77f9fe92d921620b57da6d1ee2e08e099417b0ad824abae46a82c24e60e506e06a5a079eb7ae084be52226b28c32e6c62d760c5b0
|
7
|
+
data.tar.gz: 78d859fd76b26ad23ac5ce59fedc1553c93026dada31959ef9a0f135cfaa79ee867ed76e3e4fabe61c83d09cc04e1ccc50317b82f01c0d50e4ee066f83c92dc6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.36.0 (2021-11-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.35.0 (2021-10-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds custom language support for streaming transcription.
|
13
|
+
|
14
|
+
1.34.0 (2021-10-18)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.33.0 (2021-09-14)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Amazon Transcribe now supports PII Identification and Redaction for streaming transcription.
|
23
|
+
|
4
24
|
1.32.0 (2021-09-01)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.36.0
|
@@ -220,6 +220,15 @@ module Aws::TranscribeStreamingService
|
|
220
220
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
221
221
|
# requests are made, and retries are disabled.
|
222
222
|
#
|
223
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
224
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
225
|
+
# will be used if available.
|
226
|
+
#
|
227
|
+
# @option options [Boolean] :use_fips_endpoint
|
228
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
229
|
+
# When a `fips` region is used, the region is normalized and this config
|
230
|
+
# is set to `true`.
|
231
|
+
#
|
223
232
|
# @option options [Boolean] :validate_params (true)
|
224
233
|
# When `true`, request parameters are validated before
|
225
234
|
# sending the request.
|
@@ -242,8 +251,7 @@ module Aws::TranscribeStreamingService
|
|
242
251
|
# Amazon Transcribe Medical, this is US English (en-US).
|
243
252
|
#
|
244
253
|
# @option params [required, Integer] :media_sample_rate_hertz
|
245
|
-
# The sample rate of the input audio in Hertz.
|
246
|
-
# or higher are accepted.
|
254
|
+
# The sample rate of the input audio in Hertz.
|
247
255
|
#
|
248
256
|
# @option params [required, String] :media_encoding
|
249
257
|
# The encoding used for the input audio.
|
@@ -503,11 +511,11 @@ module Aws::TranscribeStreamingService
|
|
503
511
|
req.send_request(options, &block)
|
504
512
|
end
|
505
513
|
|
506
|
-
# Starts a bidirectional
|
514
|
+
# Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon
|
507
515
|
# Transcribe and the transcription results are streamed to your
|
508
516
|
# application.
|
509
517
|
#
|
510
|
-
# The following are encoded as
|
518
|
+
# The following are encoded as HTTP/2 headers:
|
511
519
|
#
|
512
520
|
# * x-amzn-transcribe-language-code
|
513
521
|
#
|
@@ -517,12 +525,18 @@ module Aws::TranscribeStreamingService
|
|
517
525
|
#
|
518
526
|
# * x-amzn-transcribe-session-id
|
519
527
|
#
|
528
|
+
# See the [ SDK for Go API Reference][1] for more detail.
|
529
|
+
#
|
530
|
+
#
|
531
|
+
#
|
532
|
+
# [1]: https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription
|
533
|
+
#
|
520
534
|
# @option params [required, String] :language_code
|
521
535
|
# Indicates the source language used in the input audio stream.
|
522
536
|
#
|
523
537
|
# @option params [required, Integer] :media_sample_rate_hertz
|
524
538
|
# The sample rate, in Hertz, of the input audio. We suggest that you use
|
525
|
-
#
|
539
|
+
# 8,000 Hz for low quality audio and 16,000 Hz for high quality audio.
|
526
540
|
#
|
527
541
|
# @option params [required, String] :media_encoding
|
528
542
|
# The encoding used for the input audio.
|
@@ -539,14 +553,14 @@ module Aws::TranscribeStreamingService
|
|
539
553
|
#
|
540
554
|
# @option params [String] :vocabulary_filter_name
|
541
555
|
# The name of the vocabulary filter you've created that is unique to
|
542
|
-
# your
|
543
|
-
#
|
556
|
+
# your account. Provide the name in this field to successfully use it in
|
557
|
+
# a stream.
|
544
558
|
#
|
545
559
|
# @option params [String] :vocabulary_filter_method
|
546
560
|
# The manner in which you use your vocabulary filter to filter words in
|
547
561
|
# your transcript. `Remove` removes filtered words from your
|
548
|
-
# transcription results. `Mask` masks
|
549
|
-
# transcription results. `Tag` keeps the filtered words in your
|
562
|
+
# transcription results. `Mask` masks filtered words with a `***` in
|
563
|
+
# your transcription results. `Tag` keeps the filtered words in your
|
550
564
|
# transcription results and tags them. The tag appears as
|
551
565
|
# `VocabularyFilterMatch` equal to `True`
|
552
566
|
#
|
@@ -581,6 +595,35 @@ module Aws::TranscribeStreamingService
|
|
581
595
|
# are less likely to change. Higher stability levels can come with lower
|
582
596
|
# overall transcription accuracy.
|
583
597
|
#
|
598
|
+
# @option params [String] :content_identification_type
|
599
|
+
# Set this field to PII to identify personally identifiable information
|
600
|
+
# (PII) in the transcription output. Content identification is performed
|
601
|
+
# only upon complete transcription of the audio segments.
|
602
|
+
#
|
603
|
+
# You can’t set both `ContentIdentificationType` and
|
604
|
+
# `ContentRedactionType` in the same request. If you set both, your
|
605
|
+
# request returns a `BadRequestException`.
|
606
|
+
#
|
607
|
+
# @option params [String] :content_redaction_type
|
608
|
+
# Set this field to PII to redact personally identifiable information
|
609
|
+
# (PII) in the transcription output. Content redaction is performed only
|
610
|
+
# upon complete transcription of the audio segments.
|
611
|
+
#
|
612
|
+
# You can’t set both `ContentRedactionType` and
|
613
|
+
# `ContentIdentificationType` in the same request. If you set both, your
|
614
|
+
# request returns a `BadRequestException`.
|
615
|
+
#
|
616
|
+
# @option params [String] :pii_entity_types
|
617
|
+
# List the PII entity types you want to identify or redact. In order to
|
618
|
+
# specify entity types, you must have either `ContentIdentificationType`
|
619
|
+
# or `ContentRedactionType` enabled.
|
620
|
+
#
|
621
|
+
# `PiiEntityTypes` is an optional parameter with a default value of
|
622
|
+
# `ALL`.
|
623
|
+
#
|
624
|
+
# @option params [String] :language_model_name
|
625
|
+
# The name of the language model you want to use.
|
626
|
+
#
|
584
627
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
585
628
|
#
|
586
629
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -597,6 +640,10 @@ module Aws::TranscribeStreamingService
|
|
597
640
|
# * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
|
598
641
|
# * {Types::StartStreamTranscriptionResponse#enable_partial_results_stabilization #enable_partial_results_stabilization} => Boolean
|
599
642
|
# * {Types::StartStreamTranscriptionResponse#partial_results_stability #partial_results_stability} => String
|
643
|
+
# * {Types::StartStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
|
644
|
+
# * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
|
645
|
+
# * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
|
646
|
+
# * {Types::StartStreamTranscriptionResponse#language_model_name #language_model_name} => String
|
600
647
|
#
|
601
648
|
# @example Bi-directional EventStream Operation Example
|
602
649
|
#
|
@@ -706,6 +753,10 @@ module Aws::TranscribeStreamingService
|
|
706
753
|
# number_of_channels: 1,
|
707
754
|
# enable_partial_results_stabilization: false,
|
708
755
|
# partial_results_stability: "high", # accepts high, medium, low
|
756
|
+
# content_identification_type: "PII", # accepts PII
|
757
|
+
# content_redaction_type: "PII", # accepts PII
|
758
|
+
# pii_entity_types: "PiiEntityTypes",
|
759
|
+
# language_model_name: "ModelName",
|
709
760
|
# })
|
710
761
|
# # => Seahorse::Client::AsyncResponse
|
711
762
|
# async_resp.wait
|
@@ -741,6 +792,13 @@ module Aws::TranscribeStreamingService
|
|
741
792
|
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
742
793
|
# event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
|
743
794
|
# event.transcript.results[0].alternatives[0].items[0].stable #=> Boolean
|
795
|
+
# event.transcript.results[0].alternatives[0].entities #=> Array
|
796
|
+
# event.transcript.results[0].alternatives[0].entities[0].start_time #=> Float
|
797
|
+
# event.transcript.results[0].alternatives[0].entities[0].end_time #=> Float
|
798
|
+
# event.transcript.results[0].alternatives[0].entities[0].category #=> String
|
799
|
+
# event.transcript.results[0].alternatives[0].entities[0].type #=> String
|
800
|
+
# event.transcript.results[0].alternatives[0].entities[0].content #=> String
|
801
|
+
# event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
|
744
802
|
# event.transcript.results[0].channel_id #=> String
|
745
803
|
#
|
746
804
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
@@ -765,6 +823,10 @@ module Aws::TranscribeStreamingService
|
|
765
823
|
# resp.number_of_channels #=> Integer
|
766
824
|
# resp.enable_partial_results_stabilization #=> Boolean
|
767
825
|
# resp.partial_results_stability #=> String, one of "high", "medium", "low"
|
826
|
+
# resp.content_identification_type #=> String, one of "PII"
|
827
|
+
# resp.content_redaction_type #=> String, one of "PII"
|
828
|
+
# resp.pii_entity_types #=> String
|
829
|
+
# resp.language_model_name #=> String
|
768
830
|
#
|
769
831
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
770
832
|
#
|
@@ -809,7 +871,7 @@ module Aws::TranscribeStreamingService
|
|
809
871
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
810
872
|
config: config)
|
811
873
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
812
|
-
context[:gem_version] = '1.
|
874
|
+
context[:gem_version] = '1.36.0'
|
813
875
|
Seahorse::Client::Request.new(handlers, context)
|
814
876
|
end
|
815
877
|
|
@@ -286,6 +286,15 @@ module Aws::TranscribeStreamingService
|
|
286
286
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
287
287
|
# requests are made, and retries are disabled.
|
288
288
|
#
|
289
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
290
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
291
|
+
# will be used if available.
|
292
|
+
#
|
293
|
+
# @option options [Boolean] :use_fips_endpoint
|
294
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
295
|
+
# When a `fips` region is used, the region is normalized and this config
|
296
|
+
# is set to `true`.
|
297
|
+
#
|
289
298
|
# @option options [Boolean] :validate_params (true)
|
290
299
|
# When `true`, request parameters are validated before
|
291
300
|
# sending the request.
|
@@ -351,7 +360,7 @@ module Aws::TranscribeStreamingService
|
|
351
360
|
params: params,
|
352
361
|
config: config)
|
353
362
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
354
|
-
context[:gem_version] = '1.
|
363
|
+
context[:gem_version] = '1.36.0'
|
355
364
|
Seahorse::Client::Request.new(handlers, context)
|
356
365
|
end
|
357
366
|
|
@@ -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
|
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,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
|
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
|
-
#
|
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
|
692
|
-
#
|
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
|
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
|
773
|
-
# quality audio and
|
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
|
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.36.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-
|
11
|
+
date: 2021-11-04 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.
|
22
|
+
version: 3.122.0
|
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.
|
32
|
+
version: 3.122.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|