aws-sdk-transcribestreamingservice 1.73.0 → 1.74.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 +263 -1
- data/lib/aws-sdk-transcribestreamingservice/client.rb +55 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +189 -0
- data/lib/aws-sdk-transcribestreamingservice/errors.rb +16 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +231 -6
- data/lib/aws-sdk-transcribestreamingservice/types.rb +797 -2
- data/lib/aws-sdk-transcribestreamingservice.rb +2 -2
- data/sig/client.rbs +29 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +147 -0
- metadata +2 -2
@@ -21,6 +21,7 @@ module Aws::TranscribeStreamingService
|
|
21
21
|
AudioStream = Shapes::StructureShape.new(name: 'AudioStream')
|
22
22
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
23
23
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
24
|
+
BucketName = Shapes::StringShape.new(name: 'BucketName')
|
24
25
|
CallAnalyticsEntity = Shapes::StructureShape.new(name: 'CallAnalyticsEntity')
|
25
26
|
CallAnalyticsEntityList = Shapes::ListShape.new(name: 'CallAnalyticsEntityList')
|
26
27
|
CallAnalyticsItem = Shapes::StructureShape.new(name: 'CallAnalyticsItem')
|
@@ -32,15 +33,22 @@ module Aws::TranscribeStreamingService
|
|
32
33
|
ChannelDefinitions = Shapes::ListShape.new(name: 'ChannelDefinitions')
|
33
34
|
ChannelId = Shapes::IntegerShape.new(name: 'ChannelId')
|
34
35
|
CharacterOffsets = Shapes::StructureShape.new(name: 'CharacterOffsets')
|
36
|
+
ClinicalNoteGenerationResult = Shapes::StructureShape.new(name: 'ClinicalNoteGenerationResult')
|
37
|
+
ClinicalNoteGenerationSettings = Shapes::StructureShape.new(name: 'ClinicalNoteGenerationSettings')
|
38
|
+
ClinicalNoteGenerationStatus = Shapes::StringShape.new(name: 'ClinicalNoteGenerationStatus')
|
35
39
|
Confidence = Shapes::FloatShape.new(name: 'Confidence')
|
36
40
|
ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
|
37
41
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
38
42
|
ContentIdentificationType = Shapes::StringShape.new(name: 'ContentIdentificationType')
|
39
43
|
ContentRedactionOutput = Shapes::StringShape.new(name: 'ContentRedactionOutput')
|
40
44
|
ContentRedactionType = Shapes::StringShape.new(name: 'ContentRedactionType')
|
45
|
+
DateTime = Shapes::TimestampShape.new(name: 'DateTime')
|
41
46
|
Double = Shapes::FloatShape.new(name: 'Double')
|
42
47
|
Entity = Shapes::StructureShape.new(name: 'Entity')
|
43
48
|
EntityList = Shapes::ListShape.new(name: 'EntityList')
|
49
|
+
GetMedicalScribeStreamRequest = Shapes::StructureShape.new(name: 'GetMedicalScribeStreamRequest')
|
50
|
+
GetMedicalScribeStreamResponse = Shapes::StructureShape.new(name: 'GetMedicalScribeStreamResponse')
|
51
|
+
IamRoleArn = Shapes::StringShape.new(name: 'IamRoleArn')
|
44
52
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
45
53
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
46
54
|
IssueDetected = Shapes::StructureShape.new(name: 'IssueDetected')
|
@@ -48,6 +56,8 @@ module Aws::TranscribeStreamingService
|
|
48
56
|
Item = Shapes::StructureShape.new(name: 'Item')
|
49
57
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
50
58
|
ItemType = Shapes::StringShape.new(name: 'ItemType')
|
59
|
+
KMSEncryptionContextMap = Shapes::MapShape.new(name: 'KMSEncryptionContextMap')
|
60
|
+
KMSKeyId = Shapes::StringShape.new(name: 'KMSKeyId')
|
51
61
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
52
62
|
LanguageIdentification = Shapes::ListShape.new(name: 'LanguageIdentification')
|
53
63
|
LanguageOptions = Shapes::StringShape.new(name: 'LanguageOptions')
|
@@ -66,10 +76,36 @@ module Aws::TranscribeStreamingService
|
|
66
76
|
MedicalItemList = Shapes::ListShape.new(name: 'MedicalItemList')
|
67
77
|
MedicalResult = Shapes::StructureShape.new(name: 'MedicalResult')
|
68
78
|
MedicalResultList = Shapes::ListShape.new(name: 'MedicalResultList')
|
79
|
+
MedicalScribeAudioEvent = Shapes::StructureShape.new(name: 'MedicalScribeAudioEvent')
|
80
|
+
MedicalScribeChannelDefinition = Shapes::StructureShape.new(name: 'MedicalScribeChannelDefinition')
|
81
|
+
MedicalScribeChannelDefinitions = Shapes::ListShape.new(name: 'MedicalScribeChannelDefinitions')
|
82
|
+
MedicalScribeChannelId = Shapes::IntegerShape.new(name: 'MedicalScribeChannelId')
|
83
|
+
MedicalScribeConfigurationEvent = Shapes::StructureShape.new(name: 'MedicalScribeConfigurationEvent')
|
84
|
+
MedicalScribeEncryptionSettings = Shapes::StructureShape.new(name: 'MedicalScribeEncryptionSettings')
|
85
|
+
MedicalScribeInputStream = Shapes::StructureShape.new(name: 'MedicalScribeInputStream')
|
86
|
+
MedicalScribeLanguageCode = Shapes::StringShape.new(name: 'MedicalScribeLanguageCode')
|
87
|
+
MedicalScribeMediaEncoding = Shapes::StringShape.new(name: 'MedicalScribeMediaEncoding')
|
88
|
+
MedicalScribeMediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MedicalScribeMediaSampleRateHertz')
|
89
|
+
MedicalScribeParticipantRole = Shapes::StringShape.new(name: 'MedicalScribeParticipantRole')
|
90
|
+
MedicalScribePostStreamAnalyticsResult = Shapes::StructureShape.new(name: 'MedicalScribePostStreamAnalyticsResult')
|
91
|
+
MedicalScribePostStreamAnalyticsSettings = Shapes::StructureShape.new(name: 'MedicalScribePostStreamAnalyticsSettings')
|
92
|
+
MedicalScribeResultStream = Shapes::StructureShape.new(name: 'MedicalScribeResultStream')
|
93
|
+
MedicalScribeSessionControlEvent = Shapes::StructureShape.new(name: 'MedicalScribeSessionControlEvent')
|
94
|
+
MedicalScribeSessionControlEventType = Shapes::StringShape.new(name: 'MedicalScribeSessionControlEventType')
|
95
|
+
MedicalScribeStreamDetails = Shapes::StructureShape.new(name: 'MedicalScribeStreamDetails')
|
96
|
+
MedicalScribeStreamStatus = Shapes::StringShape.new(name: 'MedicalScribeStreamStatus')
|
97
|
+
MedicalScribeTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptEvent')
|
98
|
+
MedicalScribeTranscriptItem = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptItem')
|
99
|
+
MedicalScribeTranscriptItemList = Shapes::ListShape.new(name: 'MedicalScribeTranscriptItemList')
|
100
|
+
MedicalScribeTranscriptItemType = Shapes::StringShape.new(name: 'MedicalScribeTranscriptItemType')
|
101
|
+
MedicalScribeTranscriptSegment = Shapes::StructureShape.new(name: 'MedicalScribeTranscriptSegment')
|
102
|
+
MedicalScribeVocabularyFilterMethod = Shapes::StringShape.new(name: 'MedicalScribeVocabularyFilterMethod')
|
69
103
|
MedicalTranscript = Shapes::StructureShape.new(name: 'MedicalTranscript')
|
70
104
|
MedicalTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalTranscriptEvent')
|
71
105
|
MedicalTranscriptResultStream = Shapes::StructureShape.new(name: 'MedicalTranscriptResultStream')
|
72
106
|
ModelName = Shapes::StringShape.new(name: 'ModelName')
|
107
|
+
NonEmptyString = Shapes::StringShape.new(name: 'NonEmptyString')
|
108
|
+
NullableBoolean = Shapes::BooleanShape.new(name: 'NullableBoolean')
|
73
109
|
NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
|
74
110
|
PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
|
75
111
|
ParticipantRole = Shapes::StringShape.new(name: 'ParticipantRole')
|
@@ -77,6 +113,7 @@ module Aws::TranscribeStreamingService
|
|
77
113
|
PointsOfInterest = Shapes::StructureShape.new(name: 'PointsOfInterest')
|
78
114
|
PostCallAnalyticsSettings = Shapes::StructureShape.new(name: 'PostCallAnalyticsSettings')
|
79
115
|
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
116
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
80
117
|
Result = Shapes::StructureShape.new(name: 'Result')
|
81
118
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
82
119
|
Sentiment = Shapes::StringShape.new(name: 'Sentiment')
|
@@ -86,6 +123,8 @@ module Aws::TranscribeStreamingService
|
|
86
123
|
Stable = Shapes::BooleanShape.new(name: 'Stable')
|
87
124
|
StartCallAnalyticsStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionRequest')
|
88
125
|
StartCallAnalyticsStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionResponse')
|
126
|
+
StartMedicalScribeStreamRequest = Shapes::StructureShape.new(name: 'StartMedicalScribeStreamRequest')
|
127
|
+
StartMedicalScribeStreamResponse = Shapes::StructureShape.new(name: 'StartMedicalScribeStreamResponse')
|
89
128
|
StartMedicalStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionRequest')
|
90
129
|
StartMedicalStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionResponse')
|
91
130
|
StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
|
@@ -98,6 +137,7 @@ module Aws::TranscribeStreamingService
|
|
98
137
|
TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
|
99
138
|
TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
|
100
139
|
Type = Shapes::StringShape.new(name: 'Type')
|
140
|
+
Uri = Shapes::StringShape.new(name: 'Uri')
|
101
141
|
UtteranceEvent = Shapes::StructureShape.new(name: 'UtteranceEvent')
|
102
142
|
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
103
143
|
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
@@ -166,6 +206,15 @@ module Aws::TranscribeStreamingService
|
|
166
206
|
CharacterOffsets.add_member(:end, Shapes::ShapeRef.new(shape: Integer, location_name: "End"))
|
167
207
|
CharacterOffsets.struct_class = Types::CharacterOffsets
|
168
208
|
|
209
|
+
ClinicalNoteGenerationResult.add_member(:clinical_note_output_location, Shapes::ShapeRef.new(shape: Uri, location_name: "ClinicalNoteOutputLocation"))
|
210
|
+
ClinicalNoteGenerationResult.add_member(:transcript_output_location, Shapes::ShapeRef.new(shape: Uri, location_name: "TranscriptOutputLocation"))
|
211
|
+
ClinicalNoteGenerationResult.add_member(:status, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationStatus, location_name: "Status"))
|
212
|
+
ClinicalNoteGenerationResult.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "FailureReason"))
|
213
|
+
ClinicalNoteGenerationResult.struct_class = Types::ClinicalNoteGenerationResult
|
214
|
+
|
215
|
+
ClinicalNoteGenerationSettings.add_member(:output_bucket_name, Shapes::ShapeRef.new(shape: BucketName, required: true, location_name: "OutputBucketName"))
|
216
|
+
ClinicalNoteGenerationSettings.struct_class = Types::ClinicalNoteGenerationSettings
|
217
|
+
|
169
218
|
ConfigurationEvent.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: ChannelDefinitions, location_name: "ChannelDefinitions"))
|
170
219
|
ConfigurationEvent.add_member(:post_call_analytics_settings, Shapes::ShapeRef.new(shape: PostCallAnalyticsSettings, location_name: "PostCallAnalyticsSettings"))
|
171
220
|
ConfigurationEvent.struct_class = Types::ConfigurationEvent
|
@@ -183,6 +232,12 @@ module Aws::TranscribeStreamingService
|
|
183
232
|
|
184
233
|
EntityList.member = Shapes::ShapeRef.new(shape: Entity)
|
185
234
|
|
235
|
+
GetMedicalScribeStreamRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "SessionId"))
|
236
|
+
GetMedicalScribeStreamRequest.struct_class = Types::GetMedicalScribeStreamRequest
|
237
|
+
|
238
|
+
GetMedicalScribeStreamResponse.add_member(:medical_scribe_stream_details, Shapes::ShapeRef.new(shape: MedicalScribeStreamDetails, location_name: "MedicalScribeStreamDetails"))
|
239
|
+
GetMedicalScribeStreamResponse.struct_class = Types::GetMedicalScribeStreamResponse
|
240
|
+
|
186
241
|
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
187
242
|
InternalFailureException.struct_class = Types::InternalFailureException
|
188
243
|
|
@@ -203,6 +258,9 @@ module Aws::TranscribeStreamingService
|
|
203
258
|
|
204
259
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
205
260
|
|
261
|
+
KMSEncryptionContextMap.key = Shapes::ShapeRef.new(shape: NonEmptyString)
|
262
|
+
KMSEncryptionContextMap.value = Shapes::ShapeRef.new(shape: NonEmptyString)
|
263
|
+
|
206
264
|
LanguageIdentification.member = Shapes::ShapeRef.new(shape: LanguageWithScore)
|
207
265
|
|
208
266
|
LanguageWithScore.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
@@ -251,6 +309,89 @@ module Aws::TranscribeStreamingService
|
|
251
309
|
|
252
310
|
MedicalResultList.member = Shapes::ShapeRef.new(shape: MedicalResult)
|
253
311
|
|
312
|
+
MedicalScribeAudioEvent.add_member(:audio_chunk, Shapes::ShapeRef.new(shape: AudioChunk, required: true, eventpayload: true, eventpayload_type: 'blob', location_name: "AudioChunk", metadata: {"eventpayload"=>true}))
|
313
|
+
MedicalScribeAudioEvent.struct_class = Types::MedicalScribeAudioEvent
|
314
|
+
|
315
|
+
MedicalScribeChannelDefinition.add_member(:channel_id, Shapes::ShapeRef.new(shape: MedicalScribeChannelId, required: true, location_name: "ChannelId"))
|
316
|
+
MedicalScribeChannelDefinition.add_member(:participant_role, Shapes::ShapeRef.new(shape: MedicalScribeParticipantRole, required: true, location_name: "ParticipantRole"))
|
317
|
+
MedicalScribeChannelDefinition.struct_class = Types::MedicalScribeChannelDefinition
|
318
|
+
|
319
|
+
MedicalScribeChannelDefinitions.member = Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinition)
|
320
|
+
|
321
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
322
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
323
|
+
MedicalScribeConfigurationEvent.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: MedicalScribeVocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
|
324
|
+
MedicalScribeConfigurationEvent.add_member(:resource_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "ResourceAccessRoleArn"))
|
325
|
+
MedicalScribeConfigurationEvent.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinitions, location_name: "ChannelDefinitions"))
|
326
|
+
MedicalScribeConfigurationEvent.add_member(:encryption_settings, Shapes::ShapeRef.new(shape: MedicalScribeEncryptionSettings, location_name: "EncryptionSettings"))
|
327
|
+
MedicalScribeConfigurationEvent.add_member(:post_stream_analytics_settings, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsSettings, required: true, location_name: "PostStreamAnalyticsSettings"))
|
328
|
+
MedicalScribeConfigurationEvent.struct_class = Types::MedicalScribeConfigurationEvent
|
329
|
+
|
330
|
+
MedicalScribeEncryptionSettings.add_member(:kms_encryption_context, Shapes::ShapeRef.new(shape: KMSEncryptionContextMap, location_name: "KmsEncryptionContext"))
|
331
|
+
MedicalScribeEncryptionSettings.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KMSKeyId, required: true, location_name: "KmsKeyId"))
|
332
|
+
MedicalScribeEncryptionSettings.struct_class = Types::MedicalScribeEncryptionSettings
|
333
|
+
|
334
|
+
MedicalScribeInputStream.add_member(:audio_event, Shapes::ShapeRef.new(shape: MedicalScribeAudioEvent, event: true, location_name: "AudioEvent"))
|
335
|
+
MedicalScribeInputStream.add_member(:session_control_event, Shapes::ShapeRef.new(shape: MedicalScribeSessionControlEvent, event: true, location_name: "SessionControlEvent"))
|
336
|
+
MedicalScribeInputStream.add_member(:configuration_event, Shapes::ShapeRef.new(shape: MedicalScribeConfigurationEvent, event: true, location_name: "ConfigurationEvent"))
|
337
|
+
MedicalScribeInputStream.struct_class = Types::MedicalScribeInputStream
|
338
|
+
|
339
|
+
MedicalScribePostStreamAnalyticsResult.add_member(:clinical_note_generation_result, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationResult, location_name: "ClinicalNoteGenerationResult"))
|
340
|
+
MedicalScribePostStreamAnalyticsResult.struct_class = Types::MedicalScribePostStreamAnalyticsResult
|
341
|
+
|
342
|
+
MedicalScribePostStreamAnalyticsSettings.add_member(:clinical_note_generation_settings, Shapes::ShapeRef.new(shape: ClinicalNoteGenerationSettings, required: true, location_name: "ClinicalNoteGenerationSettings"))
|
343
|
+
MedicalScribePostStreamAnalyticsSettings.struct_class = Types::MedicalScribePostStreamAnalyticsSettings
|
344
|
+
|
345
|
+
MedicalScribeResultStream.add_member(:transcript_event, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptEvent, event: true, location_name: "TranscriptEvent"))
|
346
|
+
MedicalScribeResultStream.add_member(:bad_request_exception, Shapes::ShapeRef.new(shape: BadRequestException, event: true, location_name: "BadRequestException"))
|
347
|
+
MedicalScribeResultStream.add_member(:limit_exceeded_exception, Shapes::ShapeRef.new(shape: LimitExceededException, event: true, location_name: "LimitExceededException"))
|
348
|
+
MedicalScribeResultStream.add_member(:internal_failure_exception, Shapes::ShapeRef.new(shape: InternalFailureException, event: true, location_name: "InternalFailureException"))
|
349
|
+
MedicalScribeResultStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
|
350
|
+
MedicalScribeResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
|
351
|
+
MedicalScribeResultStream.struct_class = Types::MedicalScribeResultStream
|
352
|
+
|
353
|
+
MedicalScribeSessionControlEvent.add_member(:type, Shapes::ShapeRef.new(shape: MedicalScribeSessionControlEventType, required: true, location_name: "Type"))
|
354
|
+
MedicalScribeSessionControlEvent.struct_class = Types::MedicalScribeSessionControlEvent
|
355
|
+
|
356
|
+
MedicalScribeStreamDetails.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "SessionId"))
|
357
|
+
MedicalScribeStreamDetails.add_member(:stream_created_at, Shapes::ShapeRef.new(shape: DateTime, location_name: "StreamCreatedAt"))
|
358
|
+
MedicalScribeStreamDetails.add_member(:stream_ended_at, Shapes::ShapeRef.new(shape: DateTime, location_name: "StreamEndedAt"))
|
359
|
+
MedicalScribeStreamDetails.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, location_name: "LanguageCode"))
|
360
|
+
MedicalScribeStreamDetails.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, location_name: "MediaSampleRateHertz"))
|
361
|
+
MedicalScribeStreamDetails.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, location_name: "MediaEncoding"))
|
362
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName"))
|
363
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location_name: "VocabularyFilterName"))
|
364
|
+
MedicalScribeStreamDetails.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: MedicalScribeVocabularyFilterMethod, location_name: "VocabularyFilterMethod"))
|
365
|
+
MedicalScribeStreamDetails.add_member(:resource_access_role_arn, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "ResourceAccessRoleArn"))
|
366
|
+
MedicalScribeStreamDetails.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: MedicalScribeChannelDefinitions, location_name: "ChannelDefinitions"))
|
367
|
+
MedicalScribeStreamDetails.add_member(:encryption_settings, Shapes::ShapeRef.new(shape: MedicalScribeEncryptionSettings, location_name: "EncryptionSettings"))
|
368
|
+
MedicalScribeStreamDetails.add_member(:stream_status, Shapes::ShapeRef.new(shape: MedicalScribeStreamStatus, location_name: "StreamStatus"))
|
369
|
+
MedicalScribeStreamDetails.add_member(:post_stream_analytics_settings, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsSettings, location_name: "PostStreamAnalyticsSettings"))
|
370
|
+
MedicalScribeStreamDetails.add_member(:post_stream_analytics_result, Shapes::ShapeRef.new(shape: MedicalScribePostStreamAnalyticsResult, location_name: "PostStreamAnalyticsResult"))
|
371
|
+
MedicalScribeStreamDetails.struct_class = Types::MedicalScribeStreamDetails
|
372
|
+
|
373
|
+
MedicalScribeTranscriptEvent.add_member(:transcript_segment, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptSegment, location_name: "TranscriptSegment"))
|
374
|
+
MedicalScribeTranscriptEvent.struct_class = Types::MedicalScribeTranscriptEvent
|
375
|
+
|
376
|
+
MedicalScribeTranscriptItem.add_member(:begin_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "BeginAudioTime"))
|
377
|
+
MedicalScribeTranscriptItem.add_member(:end_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndAudioTime"))
|
378
|
+
MedicalScribeTranscriptItem.add_member(:type, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItemType, location_name: "Type"))
|
379
|
+
MedicalScribeTranscriptItem.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
|
380
|
+
MedicalScribeTranscriptItem.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
381
|
+
MedicalScribeTranscriptItem.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "VocabularyFilterMatch"))
|
382
|
+
MedicalScribeTranscriptItem.struct_class = Types::MedicalScribeTranscriptItem
|
383
|
+
|
384
|
+
MedicalScribeTranscriptItemList.member = Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItem)
|
385
|
+
|
386
|
+
MedicalScribeTranscriptSegment.add_member(:segment_id, Shapes::ShapeRef.new(shape: String, location_name: "SegmentId"))
|
387
|
+
MedicalScribeTranscriptSegment.add_member(:begin_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "BeginAudioTime"))
|
388
|
+
MedicalScribeTranscriptSegment.add_member(:end_audio_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndAudioTime"))
|
389
|
+
MedicalScribeTranscriptSegment.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
390
|
+
MedicalScribeTranscriptSegment.add_member(:items, Shapes::ShapeRef.new(shape: MedicalScribeTranscriptItemList, location_name: "Items"))
|
391
|
+
MedicalScribeTranscriptSegment.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
|
392
|
+
MedicalScribeTranscriptSegment.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
|
393
|
+
MedicalScribeTranscriptSegment.struct_class = Types::MedicalScribeTranscriptSegment
|
394
|
+
|
254
395
|
MedicalTranscript.add_member(:results, Shapes::ShapeRef.new(shape: MedicalResultList, location_name: "Results"))
|
255
396
|
MedicalTranscript.struct_class = Types::MedicalTranscript
|
256
397
|
|
@@ -274,6 +415,9 @@ module Aws::TranscribeStreamingService
|
|
274
415
|
PostCallAnalyticsSettings.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "OutputEncryptionKMSKeyId"))
|
275
416
|
PostCallAnalyticsSettings.struct_class = Types::PostCallAnalyticsSettings
|
276
417
|
|
418
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
419
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
420
|
+
|
277
421
|
Result.add_member(:result_id, Shapes::ShapeRef.new(shape: String, location_name: "ResultId"))
|
278
422
|
Result.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
|
279
423
|
Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
@@ -326,6 +470,25 @@ module Aws::TranscribeStreamingService
|
|
326
470
|
StartCallAnalyticsStreamTranscriptionResponse[:payload] = :call_analytics_transcript_result_stream
|
327
471
|
StartCallAnalyticsStreamTranscriptionResponse[:payload_member] = StartCallAnalyticsStreamTranscriptionResponse.member(:call_analytics_transcript_result_stream)
|
328
472
|
|
473
|
+
StartMedicalScribeStreamRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
474
|
+
StartMedicalScribeStreamRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
475
|
+
StartMedicalScribeStreamRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
476
|
+
StartMedicalScribeStreamRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
477
|
+
StartMedicalScribeStreamRequest.add_member(:input_stream, Shapes::ShapeRef.new(shape: MedicalScribeInputStream, required: true, eventstream: true, location_name: "InputStream"))
|
478
|
+
StartMedicalScribeStreamRequest.struct_class = Types::StartMedicalScribeStreamRequest
|
479
|
+
StartMedicalScribeStreamRequest[:payload] = :input_stream
|
480
|
+
StartMedicalScribeStreamRequest[:payload_member] = StartMedicalScribeStreamRequest.member(:input_stream)
|
481
|
+
|
482
|
+
StartMedicalScribeStreamResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
483
|
+
StartMedicalScribeStreamResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location: "header", location_name: "x-amzn-request-id"))
|
484
|
+
StartMedicalScribeStreamResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: MedicalScribeLanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
485
|
+
StartMedicalScribeStreamResponse.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MedicalScribeMediaSampleRateHertz, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
486
|
+
StartMedicalScribeStreamResponse.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MedicalScribeMediaEncoding, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
487
|
+
StartMedicalScribeStreamResponse.add_member(:result_stream, Shapes::ShapeRef.new(shape: MedicalScribeResultStream, eventstream: true, location_name: "ResultStream"))
|
488
|
+
StartMedicalScribeStreamResponse.struct_class = Types::StartMedicalScribeStreamResponse
|
489
|
+
StartMedicalScribeStreamResponse[:payload] = :result_stream
|
490
|
+
StartMedicalScribeStreamResponse[:payload_member] = StartMedicalScribeStreamResponse.member(:result_stream)
|
491
|
+
|
329
492
|
StartMedicalStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
330
493
|
StartMedicalStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
331
494
|
StartMedicalStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
@@ -468,6 +631,18 @@ module Aws::TranscribeStreamingService
|
|
468
631
|
"uid" => "transcribe-streaming-2017-10-26",
|
469
632
|
}
|
470
633
|
|
634
|
+
api.add_operation(:get_medical_scribe_stream, Seahorse::Model::Operation.new.tap do |o|
|
635
|
+
o.name = "GetMedicalScribeStream"
|
636
|
+
o.http_method = "GET"
|
637
|
+
o.http_request_uri = "/medical-scribe-stream/{SessionId}"
|
638
|
+
o.input = Shapes::ShapeRef.new(shape: GetMedicalScribeStreamRequest)
|
639
|
+
o.output = Shapes::ShapeRef.new(shape: GetMedicalScribeStreamResponse)
|
640
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
641
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
642
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
643
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
644
|
+
end)
|
645
|
+
|
471
646
|
api.add_operation(:start_call_analytics_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
|
472
647
|
o.name = "StartCallAnalyticsStreamTranscription"
|
473
648
|
o.http_method = "POST"
|
@@ -482,6 +657,20 @@ module Aws::TranscribeStreamingService
|
|
482
657
|
o.async = true
|
483
658
|
end)
|
484
659
|
|
660
|
+
api.add_operation(:start_medical_scribe_stream, Seahorse::Model::Operation.new.tap do |o|
|
661
|
+
o.name = "StartMedicalScribeStream"
|
662
|
+
o.http_method = "POST"
|
663
|
+
o.http_request_uri = "/medical-scribe-stream"
|
664
|
+
o.input = Shapes::ShapeRef.new(shape: StartMedicalScribeStreamRequest)
|
665
|
+
o.output = Shapes::ShapeRef.new(shape: StartMedicalScribeStreamResponse)
|
666
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
667
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
668
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
669
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
670
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
671
|
+
o.async = true
|
672
|
+
end)
|
673
|
+
|
485
674
|
api.add_operation(:start_medical_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
|
486
675
|
o.name = "StartMedicalStreamTranscription"
|
487
676
|
o.http_method = "POST"
|
@@ -27,6 +27,7 @@ module Aws::TranscribeStreamingService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ResourceNotFoundException}
|
30
31
|
#
|
31
32
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
32
33
|
# if they are not defined above.
|
@@ -34,5 +35,20 @@ module Aws::TranscribeStreamingService
|
|
34
35
|
|
35
36
|
extend Aws::Errors::DynamicErrors
|
36
37
|
|
38
|
+
class ResourceNotFoundException < ServiceError
|
39
|
+
|
40
|
+
# @param [Seahorse::Client::RequestContext] context
|
41
|
+
# @param [String] message
|
42
|
+
# @param [Aws::TranscribeStreamingService::Types::ResourceNotFoundException] data
|
43
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
44
|
+
super(context, message, data)
|
45
|
+
end
|
46
|
+
|
47
|
+
# @return [String]
|
48
|
+
def message
|
49
|
+
@message || @data[:message]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
37
53
|
end
|
38
54
|
end
|
@@ -16,8 +16,24 @@ module Aws::TranscribeStreamingService
|
|
16
16
|
end
|
17
17
|
|
18
18
|
# @option params [String, StringIO, File] :audio_chunk
|
19
|
-
# An audio blob
|
20
|
-
#
|
19
|
+
# An audio blob containing the next segment of audio from your
|
20
|
+
# application, with a maximum duration of 1 second. The maximum size in
|
21
|
+
# bytes varies based on audio properties.
|
22
|
+
#
|
23
|
+
# Find recommended size in [Transcribing streaming best practices][1].
|
24
|
+
#
|
25
|
+
# Size calculation: `Duration (s) * Sample Rate (Hz) * Number of
|
26
|
+
# Channels * 2 (Bytes per Sample)`
|
27
|
+
#
|
28
|
+
# For example, a 1-second chunk of 16 kHz, 2-channel, 16-bit audio would
|
29
|
+
# be `1 * 16000 * 2 * 2 = 64000 bytes`.
|
30
|
+
#
|
31
|
+
# For 8 kHz, 1-channel, 16-bit audio, a 1-second chunk would be `1 *
|
32
|
+
# 8000 * 1 * 2 = 16000 bytes`.
|
33
|
+
#
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#best-practices
|
21
37
|
#
|
22
38
|
def signal_audio_event_event(params = {})
|
23
39
|
@event_emitter.emit(:audio_event, params)
|
@@ -53,6 +69,124 @@ module Aws::TranscribeStreamingService
|
|
53
69
|
|
54
70
|
end
|
55
71
|
|
72
|
+
class MedicalScribeInputStream
|
73
|
+
|
74
|
+
def initialize
|
75
|
+
@event_emitter = Aws::EventEmitter.new
|
76
|
+
end
|
77
|
+
|
78
|
+
# @option params [String, StringIO, File] :audio_chunk
|
79
|
+
# An audio blob containing the next segment of audio from your
|
80
|
+
# application, with a maximum duration of 1 second. The maximum size in
|
81
|
+
# bytes varies based on audio properties.
|
82
|
+
#
|
83
|
+
# Find recommended size in [Transcribing streaming best practices][1].
|
84
|
+
#
|
85
|
+
# Size calculation: `Duration (s) * Sample Rate (Hz) * Number of
|
86
|
+
# Channels * 2 (Bytes per Sample)`
|
87
|
+
#
|
88
|
+
# For example, a 1-second chunk of 16 kHz, 2-channel, 16-bit audio would
|
89
|
+
# be `1 * 16000 * 2 * 2 = 64000 bytes`.
|
90
|
+
#
|
91
|
+
# For 8 kHz, 1-channel, 16-bit audio, a 1-second chunk would be `1 *
|
92
|
+
# 8000 * 1 * 2 = 16000 bytes`.
|
93
|
+
#
|
94
|
+
#
|
95
|
+
#
|
96
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#best-practices
|
97
|
+
#
|
98
|
+
def signal_audio_event_event(params = {})
|
99
|
+
@event_emitter.emit(:audio_event, params)
|
100
|
+
end
|
101
|
+
|
102
|
+
# @option params [String] :type
|
103
|
+
# The type of `MedicalScribeSessionControlEvent`.
|
104
|
+
#
|
105
|
+
# Possible Values:
|
106
|
+
#
|
107
|
+
# * `END_OF_SESSION` - Indicates the audio streaming is complete. After
|
108
|
+
# you send an END\_OF\_SESSION event, Amazon Web Services HealthScribe
|
109
|
+
# starts the post-stream analytics. The session can't be resumed
|
110
|
+
# after this event is sent. After Amazon Web Services HealthScribe
|
111
|
+
# processes the event, the real-time `StreamStatus` is `COMPLETED`.
|
112
|
+
# You get the `StreamStatus` and other stream details with the
|
113
|
+
# [GetMedicalScribeStream][1] API operation. For more information
|
114
|
+
# about different streaming statuses, see the `StreamStatus`
|
115
|
+
# description in the [MedicalScribeStreamDetails][2].
|
116
|
+
#
|
117
|
+
# ^
|
118
|
+
#
|
119
|
+
#
|
120
|
+
#
|
121
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_GetMedicalScribeStream.html
|
122
|
+
# [2]: https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_MedicalScribeStreamDetails.html
|
123
|
+
#
|
124
|
+
def signal_session_control_event_event(params = {})
|
125
|
+
@event_emitter.emit(:session_control_event, params)
|
126
|
+
end
|
127
|
+
|
128
|
+
# @option params [String] :vocabulary_name
|
129
|
+
# Specify the name of the custom vocabulary you want to use for your
|
130
|
+
# streaming session. Custom vocabulary names are case-sensitive.
|
131
|
+
#
|
132
|
+
# @option params [String] :vocabulary_filter_name
|
133
|
+
# Specify the name of the custom vocabulary filter you want to include
|
134
|
+
# in your streaming session. Custom vocabulary filter names are
|
135
|
+
# case-sensitive.
|
136
|
+
#
|
137
|
+
# If you include `VocabularyFilterName` in the
|
138
|
+
# `MedicalScribeConfigurationEvent`, you must also include
|
139
|
+
# `VocabularyFilterMethod`.
|
140
|
+
#
|
141
|
+
# @option params [String] :vocabulary_filter_method
|
142
|
+
# Specify how you want your custom vocabulary filter applied to the
|
143
|
+
# streaming session.
|
144
|
+
#
|
145
|
+
# To replace words with `***`, specify `mask`.
|
146
|
+
#
|
147
|
+
# To delete words, specify `remove`.
|
148
|
+
#
|
149
|
+
# To flag words without changing them, specify `tag`.
|
150
|
+
#
|
151
|
+
# @option params [String] :resource_access_role_arn
|
152
|
+
# The Amazon Resource Name (ARN) of an IAM role that has permissions to
|
153
|
+
# access the Amazon S3 output bucket you specified, and use your KMS key
|
154
|
+
# if supplied. If the role that you specify doesn’t have the appropriate
|
155
|
+
# permissions, your request fails.
|
156
|
+
#
|
157
|
+
# IAM role ARNs have the format
|
158
|
+
# `arn:partition:iam::account:role/role-name-with-path`. For example:
|
159
|
+
# `arn:aws:iam::111122223333:role/Admin`.
|
160
|
+
#
|
161
|
+
# For more information, see [Amazon Web Services HealthScribe][1].
|
162
|
+
#
|
163
|
+
#
|
164
|
+
#
|
165
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/health-scribe-streaming.html
|
166
|
+
#
|
167
|
+
# @option params [Array<Types::MedicalScribeChannelDefinition>] :channel_definitions
|
168
|
+
# Specify which speaker is on which audio channel.
|
169
|
+
#
|
170
|
+
# @option params [Types::MedicalScribeEncryptionSettings] :encryption_settings
|
171
|
+
# Specify the encryption settings for your streaming session.
|
172
|
+
#
|
173
|
+
# @option params [Types::MedicalScribePostStreamAnalyticsSettings] :post_stream_analytics_settings
|
174
|
+
# Specify settings for post-stream analytics.
|
175
|
+
#
|
176
|
+
def signal_configuration_event_event(params = {})
|
177
|
+
@event_emitter.emit(:configuration_event, params)
|
178
|
+
end
|
179
|
+
|
180
|
+
def signal_end_stream
|
181
|
+
@event_emitter.emit(:end_stream, {})
|
182
|
+
end
|
183
|
+
|
184
|
+
# @api private
|
185
|
+
# @return Aws::EventEmitter
|
186
|
+
attr_reader :event_emitter
|
187
|
+
|
188
|
+
end
|
189
|
+
|
56
190
|
class AudioStream
|
57
191
|
|
58
192
|
def initialize
|
@@ -60,8 +194,24 @@ module Aws::TranscribeStreamingService
|
|
60
194
|
end
|
61
195
|
|
62
196
|
# @option params [String, StringIO, File] :audio_chunk
|
63
|
-
# An audio blob
|
64
|
-
#
|
197
|
+
# An audio blob containing the next segment of audio from your
|
198
|
+
# application, with a maximum duration of 1 second. The maximum size in
|
199
|
+
# bytes varies based on audio properties.
|
200
|
+
#
|
201
|
+
# Find recommended size in [Transcribing streaming best practices][1].
|
202
|
+
#
|
203
|
+
# Size calculation: `Duration (s) * Sample Rate (Hz) * Number of
|
204
|
+
# Channels * 2 (Bytes per Sample)`
|
205
|
+
#
|
206
|
+
# For example, a 1-second chunk of 16 kHz, 2-channel, 16-bit audio would
|
207
|
+
# be `1 * 16000 * 2 * 2 = 64000 bytes`.
|
208
|
+
#
|
209
|
+
# For 8 kHz, 1-channel, 16-bit audio, a 1-second chunk would be `1 *
|
210
|
+
# 8000 * 1 * 2 = 16000 bytes`.
|
211
|
+
#
|
212
|
+
#
|
213
|
+
#
|
214
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#best-practices
|
65
215
|
#
|
66
216
|
def signal_audio_event_event(params = {})
|
67
217
|
@event_emitter.emit(:audio_event, params)
|
@@ -104,8 +254,24 @@ module Aws::TranscribeStreamingService
|
|
104
254
|
end
|
105
255
|
|
106
256
|
# @option params [String, StringIO, File] :audio_chunk
|
107
|
-
# An audio blob
|
108
|
-
#
|
257
|
+
# An audio blob containing the next segment of audio from your
|
258
|
+
# application, with a maximum duration of 1 second. The maximum size in
|
259
|
+
# bytes varies based on audio properties.
|
260
|
+
#
|
261
|
+
# Find recommended size in [Transcribing streaming best practices][1].
|
262
|
+
#
|
263
|
+
# Size calculation: `Duration (s) * Sample Rate (Hz) * Number of
|
264
|
+
# Channels * 2 (Bytes per Sample)`
|
265
|
+
#
|
266
|
+
# For example, a 1-second chunk of 16 kHz, 2-channel, 16-bit audio would
|
267
|
+
# be `1 * 16000 * 2 * 2 = 64000 bytes`.
|
268
|
+
#
|
269
|
+
# For 8 kHz, 1-channel, 16-bit audio, a 1-second chunk would be `1 *
|
270
|
+
# 8000 * 1 * 2 = 16000 bytes`.
|
271
|
+
#
|
272
|
+
#
|
273
|
+
#
|
274
|
+
# [1]: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html#best-practices
|
109
275
|
#
|
110
276
|
def signal_audio_event_event(params = {})
|
111
277
|
@event_emitter.emit(:audio_event, params)
|
@@ -204,6 +370,65 @@ module Aws::TranscribeStreamingService
|
|
204
370
|
# @return Aws::EventEmitter
|
205
371
|
attr_reader :event_emitter
|
206
372
|
|
373
|
+
end
|
374
|
+
class MedicalScribeResultStream
|
375
|
+
|
376
|
+
def initialize
|
377
|
+
@event_emitter = Aws::EventEmitter.new
|
378
|
+
end
|
379
|
+
|
380
|
+
def on_transcript_event_event(&block)
|
381
|
+
@event_emitter.on(:transcript_event, block) if block_given?
|
382
|
+
end
|
383
|
+
|
384
|
+
def on_bad_request_exception_event(&block)
|
385
|
+
@event_emitter.on(:bad_request_exception, block) if block_given?
|
386
|
+
end
|
387
|
+
|
388
|
+
def on_limit_exceeded_exception_event(&block)
|
389
|
+
@event_emitter.on(:limit_exceeded_exception, block) if block_given?
|
390
|
+
end
|
391
|
+
|
392
|
+
def on_internal_failure_exception_event(&block)
|
393
|
+
@event_emitter.on(:internal_failure_exception, block) if block_given?
|
394
|
+
end
|
395
|
+
|
396
|
+
def on_conflict_exception_event(&block)
|
397
|
+
@event_emitter.on(:conflict_exception, block) if block_given?
|
398
|
+
end
|
399
|
+
|
400
|
+
def on_service_unavailable_exception_event(&block)
|
401
|
+
@event_emitter.on(:service_unavailable_exception, block) if block_given?
|
402
|
+
end
|
403
|
+
|
404
|
+
def on_error_event(&block)
|
405
|
+
@event_emitter.on(:error, block) if block_given?
|
406
|
+
end
|
407
|
+
|
408
|
+
def on_initial_response_event(&block)
|
409
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
410
|
+
end
|
411
|
+
|
412
|
+
def on_unknown_event(&block)
|
413
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
414
|
+
end
|
415
|
+
|
416
|
+
def on_event(&block)
|
417
|
+
on_transcript_event_event(&block)
|
418
|
+
on_bad_request_exception_event(&block)
|
419
|
+
on_limit_exceeded_exception_event(&block)
|
420
|
+
on_internal_failure_exception_event(&block)
|
421
|
+
on_conflict_exception_event(&block)
|
422
|
+
on_service_unavailable_exception_event(&block)
|
423
|
+
on_error_event(&block)
|
424
|
+
on_initial_response_event(&block)
|
425
|
+
on_unknown_event(&block)
|
426
|
+
end
|
427
|
+
|
428
|
+
# @api private
|
429
|
+
# @return Aws::EventEmitter
|
430
|
+
attr_reader :event_emitter
|
431
|
+
|
207
432
|
end
|
208
433
|
class MedicalTranscriptResultStream
|
209
434
|
|