aws-sdk-transcribestreamingservice 1.24.0 → 1.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +14 -1
- data/lib/aws-sdk-transcribestreamingservice/client.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +15 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +2 -2
- data/lib/aws-sdk-transcribestreamingservice/types.rb +63 -4
- 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: 65a88e82e6996f69636c992468625d2bfa4861251d435af79e702c3a724dccdd
|
4
|
+
data.tar.gz: e2de51ecfef9467978824db98d5d7a340f8bf209f3ac7b0eb172d1ff8bb02b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae7fac5034c8d444a60f653f4cbbf3ce92b6925f19087f0c8497c6d687570494c77c31ec0be057e884eadb5bf8b271902c6559df3791ccff4ccf8ffb8c99502b
|
7
|
+
data.tar.gz: 4102606c3a4231c1c1743404a6ae9085c3fe31b02846af11119f844987ac98f5f33448f9fea7555ebba6e7e96073c42f7af3ec0561cf431984dd2ebd235446fb
|
@@ -288,6 +288,10 @@ module Aws::TranscribeStreamingService
|
|
288
288
|
# @option params [Integer] :number_of_channels
|
289
289
|
# The number of channels that are in your audio stream.
|
290
290
|
#
|
291
|
+
# @option params [String] :content_identification_type
|
292
|
+
# Set this field to `PHI` to identify personal health information in the
|
293
|
+
# transcription output.
|
294
|
+
#
|
291
295
|
# @return [Types::StartMedicalStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
292
296
|
#
|
293
297
|
# * {Types::StartMedicalStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -302,6 +306,7 @@ module Aws::TranscribeStreamingService
|
|
302
306
|
# * {Types::StartMedicalStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::MedicalTranscriptResultStream
|
303
307
|
# * {Types::StartMedicalStreamTranscriptionResponse#enable_channel_identification #enable_channel_identification} => Boolean
|
304
308
|
# * {Types::StartMedicalStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
|
309
|
+
# * {Types::StartMedicalStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
|
305
310
|
#
|
306
311
|
# @example Bi-directional EventStream Operation Example
|
307
312
|
#
|
@@ -409,6 +414,7 @@ module Aws::TranscribeStreamingService
|
|
409
414
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
410
415
|
# enable_channel_identification: false,
|
411
416
|
# number_of_channels: 1,
|
417
|
+
# content_identification_type: "PHI", # accepts PHI
|
412
418
|
# })
|
413
419
|
# # => Seahorse::Client::AsyncResponse
|
414
420
|
# async_resp.wait
|
@@ -445,6 +451,12 @@ module Aws::TranscribeStreamingService
|
|
445
451
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
446
452
|
# event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
|
447
453
|
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
454
|
+
# event.transcript.results[0].alternatives[0].entities #=> Array
|
455
|
+
# event.transcript.results[0].alternatives[0].entities[0].start_time #=> Float
|
456
|
+
# event.transcript.results[0].alternatives[0].entities[0].end_time #=> Float
|
457
|
+
# event.transcript.results[0].alternatives[0].entities[0].category #=> String
|
458
|
+
# event.transcript.results[0].alternatives[0].entities[0].content #=> String
|
459
|
+
# event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
|
448
460
|
# event.transcript.results[0].channel_id #=> String
|
449
461
|
#
|
450
462
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
@@ -464,6 +476,7 @@ module Aws::TranscribeStreamingService
|
|
464
476
|
#
|
465
477
|
# resp.enable_channel_identification #=> Boolean
|
466
478
|
# resp.number_of_channels #=> Integer
|
479
|
+
# resp.content_identification_type #=> String, one of "PHI"
|
467
480
|
#
|
468
481
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartMedicalStreamTranscription AWS API Documentation
|
469
482
|
#
|
@@ -779,7 +792,7 @@ module Aws::TranscribeStreamingService
|
|
779
792
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
780
793
|
config: config)
|
781
794
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
782
|
-
context[:gem_version] = '1.
|
795
|
+
context[:gem_version] = '1.25.0'
|
783
796
|
Seahorse::Client::Request.new(handlers, context)
|
784
797
|
end
|
785
798
|
|
@@ -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.25.0'
|
355
355
|
Seahorse::Client::Request.new(handlers, context)
|
356
356
|
end
|
357
357
|
|
@@ -33,6 +33,9 @@ module Aws::TranscribeStreamingService
|
|
33
33
|
MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
|
34
34
|
MedicalAlternative = Shapes::StructureShape.new(name: 'MedicalAlternative')
|
35
35
|
MedicalAlternativeList = Shapes::ListShape.new(name: 'MedicalAlternativeList')
|
36
|
+
MedicalContentIdentificationType = Shapes::StringShape.new(name: 'MedicalContentIdentificationType')
|
37
|
+
MedicalEntity = Shapes::StructureShape.new(name: 'MedicalEntity')
|
38
|
+
MedicalEntityList = Shapes::ListShape.new(name: 'MedicalEntityList')
|
36
39
|
MedicalItem = Shapes::StructureShape.new(name: 'MedicalItem')
|
37
40
|
MedicalItemList = Shapes::ListShape.new(name: 'MedicalItemList')
|
38
41
|
MedicalResult = Shapes::StructureShape.new(name: 'MedicalResult')
|
@@ -96,10 +99,20 @@ module Aws::TranscribeStreamingService
|
|
96
99
|
|
97
100
|
MedicalAlternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
|
98
101
|
MedicalAlternative.add_member(:items, Shapes::ShapeRef.new(shape: MedicalItemList, location_name: "Items"))
|
102
|
+
MedicalAlternative.add_member(:entities, Shapes::ShapeRef.new(shape: MedicalEntityList, location_name: "Entities"))
|
99
103
|
MedicalAlternative.struct_class = Types::MedicalAlternative
|
100
104
|
|
101
105
|
MedicalAlternativeList.member = Shapes::ShapeRef.new(shape: MedicalAlternative)
|
102
106
|
|
107
|
+
MedicalEntity.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
108
|
+
MedicalEntity.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
109
|
+
MedicalEntity.add_member(:category, Shapes::ShapeRef.new(shape: String, location_name: "Category"))
|
110
|
+
MedicalEntity.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
111
|
+
MedicalEntity.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
|
112
|
+
MedicalEntity.struct_class = Types::MedicalEntity
|
113
|
+
|
114
|
+
MedicalEntityList.member = Shapes::ShapeRef.new(shape: MedicalEntity)
|
115
|
+
|
103
116
|
MedicalItem.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
104
117
|
MedicalItem.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
105
118
|
MedicalItem.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
|
@@ -158,6 +171,7 @@ module Aws::TranscribeStreamingService
|
|
158
171
|
StartMedicalStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
159
172
|
StartMedicalStreamTranscriptionRequest.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
|
160
173
|
StartMedicalStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
174
|
+
StartMedicalStreamTranscriptionRequest.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: MedicalContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
|
161
175
|
StartMedicalStreamTranscriptionRequest.struct_class = Types::StartMedicalStreamTranscriptionRequest
|
162
176
|
StartMedicalStreamTranscriptionRequest[:payload] = :audio_stream
|
163
177
|
StartMedicalStreamTranscriptionRequest[:payload_member] = StartMedicalStreamTranscriptionRequest.member(:audio_stream)
|
@@ -174,6 +188,7 @@ module Aws::TranscribeStreamingService
|
|
174
188
|
StartMedicalStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: MedicalTranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
175
189
|
StartMedicalStreamTranscriptionResponse.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
|
176
190
|
StartMedicalStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
191
|
+
StartMedicalStreamTranscriptionResponse.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: MedicalContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
|
177
192
|
StartMedicalStreamTranscriptionResponse.struct_class = Types::StartMedicalStreamTranscriptionResponse
|
178
193
|
StartMedicalStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
179
194
|
StartMedicalStreamTranscriptionResponse[:payload_member] = StartMedicalStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -17,7 +17,7 @@ module Aws::TranscribeStreamingService
|
|
17
17
|
|
18
18
|
# @option params [String, StringIO, File] :audio_chunk
|
19
19
|
# An audio blob that contains the next part of the audio that you want
|
20
|
-
# to transcribe.
|
20
|
+
# to transcribe. The maximum audio chunk size is 32 KB.
|
21
21
|
#
|
22
22
|
def signal_audio_event_event(params = {})
|
23
23
|
@event_emitter.emit(:audio_event, params)
|
@@ -41,7 +41,7 @@ module Aws::TranscribeStreamingService
|
|
41
41
|
|
42
42
|
# @option params [String, StringIO, File] :audio_chunk
|
43
43
|
# An audio blob that contains the next part of the audio that you want
|
44
|
-
# to transcribe.
|
44
|
+
# to transcribe. The maximum audio chunk size is 32 KB.
|
45
45
|
#
|
46
46
|
def signal_audio_event_event(params = {})
|
47
47
|
@event_emitter.emit(:audio_event, params)
|
@@ -40,7 +40,7 @@ module Aws::TranscribeStreamingService
|
|
40
40
|
#
|
41
41
|
# @!attribute [rw] audio_chunk
|
42
42
|
# An audio blob that contains the next part of the audio that you want
|
43
|
-
# to transcribe.
|
43
|
+
# to transcribe. The maximum audio chunk size is 32 KB.
|
44
44
|
# @return [String]
|
45
45
|
#
|
46
46
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/AudioEvent AWS API Documentation
|
@@ -176,11 +176,57 @@ module Aws::TranscribeStreamingService
|
|
176
176
|
# represents one or more interpretations of the input audio.
|
177
177
|
# @return [Array<Types::MedicalItem>]
|
178
178
|
#
|
179
|
+
# @!attribute [rw] entities
|
180
|
+
# Contains the medical entities identified as personal health
|
181
|
+
# information in the transcription output.
|
182
|
+
# @return [Array<Types::MedicalEntity>]
|
183
|
+
#
|
179
184
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/MedicalAlternative AWS API Documentation
|
180
185
|
#
|
181
186
|
class MedicalAlternative < Struct.new(
|
182
187
|
:transcript,
|
183
|
-
:items
|
188
|
+
:items,
|
189
|
+
:entities)
|
190
|
+
SENSITIVE = []
|
191
|
+
include Aws::Structure
|
192
|
+
end
|
193
|
+
|
194
|
+
# The medical entity identified as personal health information.
|
195
|
+
#
|
196
|
+
# @!attribute [rw] start_time
|
197
|
+
# The start time of the speech that was identified as a medical
|
198
|
+
# entity.
|
199
|
+
# @return [Float]
|
200
|
+
#
|
201
|
+
# @!attribute [rw] end_time
|
202
|
+
# The end time of the speech that was identified as a medical entity.
|
203
|
+
# @return [Float]
|
204
|
+
#
|
205
|
+
# @!attribute [rw] category
|
206
|
+
# The type of personal health information of the medical entity.
|
207
|
+
# @return [String]
|
208
|
+
#
|
209
|
+
# @!attribute [rw] content
|
210
|
+
# The word or words in the transcription output that have been
|
211
|
+
# identified as a medical entity.
|
212
|
+
# @return [String]
|
213
|
+
#
|
214
|
+
# @!attribute [rw] confidence
|
215
|
+
# A value between zero and one that Amazon Transcribe Medical assigned
|
216
|
+
# to the personal health information that it identified in the source
|
217
|
+
# audio. Larger values indicate that Amazon Transcribe Medical has
|
218
|
+
# higher confidence in the personal health information that it
|
219
|
+
# identified.
|
220
|
+
# @return [Float]
|
221
|
+
#
|
222
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/MedicalEntity AWS API Documentation
|
223
|
+
#
|
224
|
+
class MedicalEntity < Struct.new(
|
225
|
+
:start_time,
|
226
|
+
:end_time,
|
227
|
+
:category,
|
228
|
+
:content,
|
229
|
+
:confidence)
|
184
230
|
SENSITIVE = []
|
185
231
|
include Aws::Structure
|
186
232
|
end
|
@@ -403,6 +449,7 @@ module Aws::TranscribeStreamingService
|
|
403
449
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
404
450
|
# enable_channel_identification: false,
|
405
451
|
# number_of_channels: 1,
|
452
|
+
# content_identification_type: "PHI", # accepts PHI
|
406
453
|
# }
|
407
454
|
#
|
408
455
|
# @!attribute [rw] language_code
|
@@ -468,6 +515,11 @@ module Aws::TranscribeStreamingService
|
|
468
515
|
# The number of channels that are in your audio stream.
|
469
516
|
# @return [Integer]
|
470
517
|
#
|
518
|
+
# @!attribute [rw] content_identification_type
|
519
|
+
# Set this field to `PHI` to identify personal health information in
|
520
|
+
# the transcription output.
|
521
|
+
# @return [String]
|
522
|
+
#
|
471
523
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartMedicalStreamTranscriptionRequest AWS API Documentation
|
472
524
|
#
|
473
525
|
class StartMedicalStreamTranscriptionRequest < Struct.new(
|
@@ -481,7 +533,8 @@ module Aws::TranscribeStreamingService
|
|
481
533
|
:session_id,
|
482
534
|
:audio_stream,
|
483
535
|
:enable_channel_identification,
|
484
|
-
:number_of_channels
|
536
|
+
:number_of_channels,
|
537
|
+
:content_identification_type)
|
485
538
|
SENSITIVE = []
|
486
539
|
include Aws::Structure
|
487
540
|
end
|
@@ -538,6 +591,11 @@ module Aws::TranscribeStreamingService
|
|
538
591
|
# The number of channels identified in the stream.
|
539
592
|
# @return [Integer]
|
540
593
|
#
|
594
|
+
# @!attribute [rw] content_identification_type
|
595
|
+
# If the value is `PHI`, indicates that you've configured your stream
|
596
|
+
# to identify personal health information.
|
597
|
+
# @return [String]
|
598
|
+
#
|
541
599
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartMedicalStreamTranscriptionResponse AWS API Documentation
|
542
600
|
#
|
543
601
|
class StartMedicalStreamTranscriptionResponse < Struct.new(
|
@@ -552,7 +610,8 @@ module Aws::TranscribeStreamingService
|
|
552
610
|
:session_id,
|
553
611
|
:transcript_result_stream,
|
554
612
|
:enable_channel_identification,
|
555
|
-
:number_of_channels
|
613
|
+
:number_of_channels,
|
614
|
+
:content_identification_type)
|
556
615
|
SENSITIVE = []
|
557
616
|
include Aws::Structure
|
558
617
|
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.25.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:
|
11
|
+
date: 2021-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|