aws-sdk-transcribestreamingservice 1.44.0 → 1.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,14 +20,30 @@ module Aws::TranscribeStreamingService
20
20
  AudioStream = Shapes::StructureShape.new(name: 'AudioStream')
21
21
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
22
22
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
23
+ CallAnalyticsEntity = Shapes::StructureShape.new(name: 'CallAnalyticsEntity')
24
+ CallAnalyticsEntityList = Shapes::ListShape.new(name: 'CallAnalyticsEntityList')
25
+ CallAnalyticsItem = Shapes::StructureShape.new(name: 'CallAnalyticsItem')
26
+ CallAnalyticsItemList = Shapes::ListShape.new(name: 'CallAnalyticsItemList')
27
+ CallAnalyticsLanguageCode = Shapes::StringShape.new(name: 'CallAnalyticsLanguageCode')
28
+ CallAnalyticsTranscriptResultStream = Shapes::StructureShape.new(name: 'CallAnalyticsTranscriptResultStream')
29
+ CategoryEvent = Shapes::StructureShape.new(name: 'CategoryEvent')
30
+ ChannelDefinition = Shapes::StructureShape.new(name: 'ChannelDefinition')
31
+ ChannelDefinitions = Shapes::ListShape.new(name: 'ChannelDefinitions')
32
+ ChannelId = Shapes::IntegerShape.new(name: 'ChannelId')
33
+ CharacterOffsets = Shapes::StructureShape.new(name: 'CharacterOffsets')
23
34
  Confidence = Shapes::FloatShape.new(name: 'Confidence')
35
+ ConfigurationEvent = Shapes::StructureShape.new(name: 'ConfigurationEvent')
24
36
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
25
37
  ContentIdentificationType = Shapes::StringShape.new(name: 'ContentIdentificationType')
38
+ ContentRedactionOutput = Shapes::StringShape.new(name: 'ContentRedactionOutput')
26
39
  ContentRedactionType = Shapes::StringShape.new(name: 'ContentRedactionType')
27
40
  Double = Shapes::FloatShape.new(name: 'Double')
28
41
  Entity = Shapes::StructureShape.new(name: 'Entity')
29
42
  EntityList = Shapes::ListShape.new(name: 'EntityList')
43
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
30
44
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
45
+ IssueDetected = Shapes::StructureShape.new(name: 'IssueDetected')
46
+ IssuesDetected = Shapes::ListShape.new(name: 'IssuesDetected')
31
47
  Item = Shapes::StructureShape.new(name: 'Item')
32
48
  ItemList = Shapes::ListShape.new(name: 'ItemList')
33
49
  ItemType = Shapes::StringShape.new(name: 'ItemType')
@@ -36,6 +52,8 @@ module Aws::TranscribeStreamingService
36
52
  LanguageOptions = Shapes::StringShape.new(name: 'LanguageOptions')
37
53
  LanguageWithScore = Shapes::StructureShape.new(name: 'LanguageWithScore')
38
54
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
55
+ Long = Shapes::IntegerShape.new(name: 'Long')
56
+ MatchedCategoryDetails = Shapes::MapShape.new(name: 'MatchedCategoryDetails')
39
57
  MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
40
58
  MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
41
59
  MedicalAlternative = Shapes::StructureShape.new(name: 'MedicalAlternative')
@@ -53,23 +71,33 @@ module Aws::TranscribeStreamingService
53
71
  ModelName = Shapes::StringShape.new(name: 'ModelName')
54
72
  NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
55
73
  PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
74
+ ParticipantRole = Shapes::StringShape.new(name: 'ParticipantRole')
56
75
  PiiEntityTypes = Shapes::StringShape.new(name: 'PiiEntityTypes')
76
+ PointsOfInterest = Shapes::StructureShape.new(name: 'PointsOfInterest')
77
+ PostCallAnalyticsSettings = Shapes::StructureShape.new(name: 'PostCallAnalyticsSettings')
57
78
  RequestId = Shapes::StringShape.new(name: 'RequestId')
58
79
  Result = Shapes::StructureShape.new(name: 'Result')
59
80
  ResultList = Shapes::ListShape.new(name: 'ResultList')
81
+ Sentiment = Shapes::StringShape.new(name: 'Sentiment')
60
82
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
61
83
  SessionId = Shapes::StringShape.new(name: 'SessionId')
62
84
  Specialty = Shapes::StringShape.new(name: 'Specialty')
63
85
  Stable = Shapes::BooleanShape.new(name: 'Stable')
86
+ StartCallAnalyticsStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionRequest')
87
+ StartCallAnalyticsStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartCallAnalyticsStreamTranscriptionResponse')
64
88
  StartMedicalStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionRequest')
65
89
  StartMedicalStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionResponse')
66
90
  StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
67
91
  StartStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartStreamTranscriptionResponse')
68
92
  String = Shapes::StringShape.new(name: 'String')
93
+ StringList = Shapes::ListShape.new(name: 'StringList')
94
+ TimestampRange = Shapes::StructureShape.new(name: 'TimestampRange')
95
+ TimestampRanges = Shapes::ListShape.new(name: 'TimestampRanges')
69
96
  Transcript = Shapes::StructureShape.new(name: 'Transcript')
70
97
  TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
71
98
  TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
72
99
  Type = Shapes::StringShape.new(name: 'Type')
100
+ UtteranceEvent = Shapes::StructureShape.new(name: 'UtteranceEvent')
73
101
  VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
74
102
  VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
75
103
  VocabularyFilterNames = Shapes::StringShape.new(name: 'VocabularyFilterNames')
@@ -87,11 +115,60 @@ module Aws::TranscribeStreamingService
87
115
  AudioEvent.struct_class = Types::AudioEvent
88
116
 
89
117
  AudioStream.add_member(:audio_event, Shapes::ShapeRef.new(shape: AudioEvent, event: true, location_name: "AudioEvent"))
118
+ AudioStream.add_member(:configuration_event, Shapes::ShapeRef.new(shape: ConfigurationEvent, event: true, location_name: "ConfigurationEvent"))
90
119
  AudioStream.struct_class = Types::AudioStream
91
120
 
92
121
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
93
122
  BadRequestException.struct_class = Types::BadRequestException
94
123
 
124
+ CallAnalyticsEntity.add_member(:begin_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "BeginOffsetMillis"))
125
+ CallAnalyticsEntity.add_member(:end_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EndOffsetMillis"))
126
+ CallAnalyticsEntity.add_member(:category, Shapes::ShapeRef.new(shape: String, location_name: "Category"))
127
+ CallAnalyticsEntity.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
128
+ CallAnalyticsEntity.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
129
+ CallAnalyticsEntity.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
130
+ CallAnalyticsEntity.struct_class = Types::CallAnalyticsEntity
131
+
132
+ CallAnalyticsEntityList.member = Shapes::ShapeRef.new(shape: CallAnalyticsEntity)
133
+
134
+ CallAnalyticsItem.add_member(:begin_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "BeginOffsetMillis"))
135
+ CallAnalyticsItem.add_member(:end_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EndOffsetMillis"))
136
+ CallAnalyticsItem.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
137
+ CallAnalyticsItem.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
138
+ CallAnalyticsItem.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
139
+ CallAnalyticsItem.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
140
+ CallAnalyticsItem.add_member(:stable, Shapes::ShapeRef.new(shape: Stable, location_name: "Stable"))
141
+ CallAnalyticsItem.struct_class = Types::CallAnalyticsItem
142
+
143
+ CallAnalyticsItemList.member = Shapes::ShapeRef.new(shape: CallAnalyticsItem)
144
+
145
+ CallAnalyticsTranscriptResultStream.add_member(:utterance_event, Shapes::ShapeRef.new(shape: UtteranceEvent, event: true, location_name: "UtteranceEvent"))
146
+ CallAnalyticsTranscriptResultStream.add_member(:category_event, Shapes::ShapeRef.new(shape: CategoryEvent, event: true, location_name: "CategoryEvent"))
147
+ CallAnalyticsTranscriptResultStream.add_member(:bad_request_exception, Shapes::ShapeRef.new(shape: BadRequestException, event: true, location_name: "BadRequestException"))
148
+ CallAnalyticsTranscriptResultStream.add_member(:limit_exceeded_exception, Shapes::ShapeRef.new(shape: LimitExceededException, event: true, location_name: "LimitExceededException"))
149
+ CallAnalyticsTranscriptResultStream.add_member(:internal_failure_exception, Shapes::ShapeRef.new(shape: InternalFailureException, event: true, location_name: "InternalFailureException"))
150
+ CallAnalyticsTranscriptResultStream.add_member(:conflict_exception, Shapes::ShapeRef.new(shape: ConflictException, event: true, location_name: "ConflictException"))
151
+ CallAnalyticsTranscriptResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
152
+ CallAnalyticsTranscriptResultStream.struct_class = Types::CallAnalyticsTranscriptResultStream
153
+
154
+ CategoryEvent.add_member(:matched_categories, Shapes::ShapeRef.new(shape: StringList, location_name: "MatchedCategories"))
155
+ CategoryEvent.add_member(:matched_details, Shapes::ShapeRef.new(shape: MatchedCategoryDetails, location_name: "MatchedDetails"))
156
+ CategoryEvent.struct_class = Types::CategoryEvent
157
+
158
+ ChannelDefinition.add_member(:channel_id, Shapes::ShapeRef.new(shape: ChannelId, required: true, location_name: "ChannelId"))
159
+ ChannelDefinition.add_member(:participant_role, Shapes::ShapeRef.new(shape: ParticipantRole, required: true, location_name: "ParticipantRole"))
160
+ ChannelDefinition.struct_class = Types::ChannelDefinition
161
+
162
+ ChannelDefinitions.member = Shapes::ShapeRef.new(shape: ChannelDefinition)
163
+
164
+ CharacterOffsets.add_member(:begin, Shapes::ShapeRef.new(shape: Integer, location_name: "Begin"))
165
+ CharacterOffsets.add_member(:end, Shapes::ShapeRef.new(shape: Integer, location_name: "End"))
166
+ CharacterOffsets.struct_class = Types::CharacterOffsets
167
+
168
+ ConfigurationEvent.add_member(:channel_definitions, Shapes::ShapeRef.new(shape: ChannelDefinitions, location_name: "ChannelDefinitions"))
169
+ ConfigurationEvent.add_member(:post_call_analytics_settings, Shapes::ShapeRef.new(shape: PostCallAnalyticsSettings, location_name: "PostCallAnalyticsSettings"))
170
+ ConfigurationEvent.struct_class = Types::ConfigurationEvent
171
+
95
172
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
96
173
  ConflictException.struct_class = Types::ConflictException
97
174
 
@@ -108,6 +185,11 @@ module Aws::TranscribeStreamingService
108
185
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
109
186
  InternalFailureException.struct_class = Types::InternalFailureException
110
187
 
188
+ IssueDetected.add_member(:character_offsets, Shapes::ShapeRef.new(shape: CharacterOffsets, location_name: "CharacterOffsets"))
189
+ IssueDetected.struct_class = Types::IssueDetected
190
+
191
+ IssuesDetected.member = Shapes::ShapeRef.new(shape: IssueDetected)
192
+
111
193
  Item.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
112
194
  Item.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
113
195
  Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
@@ -129,6 +211,9 @@ module Aws::TranscribeStreamingService
129
211
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
130
212
  LimitExceededException.struct_class = Types::LimitExceededException
131
213
 
214
+ MatchedCategoryDetails.key = Shapes::ShapeRef.new(shape: String)
215
+ MatchedCategoryDetails.value = Shapes::ShapeRef.new(shape: PointsOfInterest)
216
+
132
217
  MedicalAlternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
133
218
  MedicalAlternative.add_member(:items, Shapes::ShapeRef.new(shape: MedicalItemList, location_name: "Items"))
134
219
  MedicalAlternative.add_member(:entities, Shapes::ShapeRef.new(shape: MedicalEntityList, location_name: "Entities"))
@@ -179,6 +264,15 @@ module Aws::TranscribeStreamingService
179
264
  MedicalTranscriptResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
180
265
  MedicalTranscriptResultStream.struct_class = Types::MedicalTranscriptResultStream
181
266
 
267
+ PointsOfInterest.add_member(:timestamp_ranges, Shapes::ShapeRef.new(shape: TimestampRanges, location_name: "TimestampRanges"))
268
+ PointsOfInterest.struct_class = Types::PointsOfInterest
269
+
270
+ PostCallAnalyticsSettings.add_member(:output_location, Shapes::ShapeRef.new(shape: String, required: true, location_name: "OutputLocation"))
271
+ PostCallAnalyticsSettings.add_member(:data_access_role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataAccessRoleArn"))
272
+ PostCallAnalyticsSettings.add_member(:content_redaction_output, Shapes::ShapeRef.new(shape: ContentRedactionOutput, location_name: "ContentRedactionOutput"))
273
+ PostCallAnalyticsSettings.add_member(:output_encryption_kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "OutputEncryptionKMSKeyId"))
274
+ PostCallAnalyticsSettings.struct_class = Types::PostCallAnalyticsSettings
275
+
182
276
  Result.add_member(:result_id, Shapes::ShapeRef.new(shape: String, location_name: "ResultId"))
183
277
  Result.add_member(:start_time, Shapes::ShapeRef.new(shape: Double, location_name: "StartTime"))
184
278
  Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
@@ -194,6 +288,43 @@ module Aws::TranscribeStreamingService
194
288
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
195
289
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
196
290
 
291
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
292
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
293
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
294
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
295
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
296
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
297
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
298
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
299
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
300
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
301
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
302
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
303
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
304
+ StartCallAnalyticsStreamTranscriptionRequest.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
305
+ StartCallAnalyticsStreamTranscriptionRequest.struct_class = Types::StartCallAnalyticsStreamTranscriptionRequest
306
+ StartCallAnalyticsStreamTranscriptionRequest[:payload] = :audio_stream
307
+ StartCallAnalyticsStreamTranscriptionRequest[:payload_member] = StartCallAnalyticsStreamTranscriptionRequest.member(:audio_stream)
308
+
309
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location: "header", location_name: "x-amzn-request-id"))
310
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: CallAnalyticsLanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
311
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
312
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
313
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
314
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
315
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:call_analytics_transcript_result_stream, Shapes::ShapeRef.new(shape: CallAnalyticsTranscriptResultStream, eventstream: true, location_name: "CallAnalyticsTranscriptResultStream"))
316
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
317
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
318
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
319
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
320
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
321
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:content_identification_type, Shapes::ShapeRef.new(shape: ContentIdentificationType, location: "header", location_name: "x-amzn-transcribe-content-identification-type"))
322
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
323
+ StartCallAnalyticsStreamTranscriptionResponse.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
324
+ StartCallAnalyticsStreamTranscriptionResponse.struct_class = Types::StartCallAnalyticsStreamTranscriptionResponse
325
+ StartCallAnalyticsStreamTranscriptionResponse[:payload] = :call_analytics_transcript_result_stream
326
+ StartCallAnalyticsStreamTranscriptionResponse[:payload_member] = StartCallAnalyticsStreamTranscriptionResponse.member(:call_analytics_transcript_result_stream)
327
+
197
328
  StartMedicalStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location: "header", location_name: "x-amzn-transcribe-language-code"))
198
329
  StartMedicalStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
199
330
  StartMedicalStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
@@ -280,6 +411,14 @@ module Aws::TranscribeStreamingService
280
411
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
281
412
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
282
413
 
414
+ StringList.member = Shapes::ShapeRef.new(shape: String)
415
+
416
+ TimestampRange.add_member(:begin_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "BeginOffsetMillis"))
417
+ TimestampRange.add_member(:end_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EndOffsetMillis"))
418
+ TimestampRange.struct_class = Types::TimestampRange
419
+
420
+ TimestampRanges.member = Shapes::ShapeRef.new(shape: TimestampRange)
421
+
283
422
  Transcript.add_member(:results, Shapes::ShapeRef.new(shape: ResultList, location_name: "Results"))
284
423
  Transcript.struct_class = Types::Transcript
285
424
 
@@ -294,6 +433,18 @@ module Aws::TranscribeStreamingService
294
433
  TranscriptResultStream.add_member(:service_unavailable_exception, Shapes::ShapeRef.new(shape: ServiceUnavailableException, event: true, location_name: "ServiceUnavailableException"))
295
434
  TranscriptResultStream.struct_class = Types::TranscriptResultStream
296
435
 
436
+ UtteranceEvent.add_member(:utterance_id, Shapes::ShapeRef.new(shape: String, location_name: "UtteranceId"))
437
+ UtteranceEvent.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
438
+ UtteranceEvent.add_member(:participant_role, Shapes::ShapeRef.new(shape: ParticipantRole, location_name: "ParticipantRole"))
439
+ UtteranceEvent.add_member(:begin_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "BeginOffsetMillis"))
440
+ UtteranceEvent.add_member(:end_offset_millis, Shapes::ShapeRef.new(shape: Long, location_name: "EndOffsetMillis"))
441
+ UtteranceEvent.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
442
+ UtteranceEvent.add_member(:items, Shapes::ShapeRef.new(shape: CallAnalyticsItemList, location_name: "Items"))
443
+ UtteranceEvent.add_member(:entities, Shapes::ShapeRef.new(shape: CallAnalyticsEntityList, location_name: "Entities"))
444
+ UtteranceEvent.add_member(:sentiment, Shapes::ShapeRef.new(shape: Sentiment, location_name: "Sentiment"))
445
+ UtteranceEvent.add_member(:issues_detected, Shapes::ShapeRef.new(shape: IssuesDetected, location_name: "IssuesDetected"))
446
+ UtteranceEvent.struct_class = Types::UtteranceEvent
447
+
297
448
 
298
449
  # @api private
299
450
  API = Seahorse::Model::Api.new.tap do |api|
@@ -312,6 +463,20 @@ module Aws::TranscribeStreamingService
312
463
  "uid" => "transcribe-streaming-2017-10-26",
313
464
  }
314
465
 
466
+ api.add_operation(:start_call_analytics_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
467
+ o.name = "StartCallAnalyticsStreamTranscription"
468
+ o.http_method = "POST"
469
+ o.http_request_uri = "/call-analytics-stream-transcription"
470
+ o.input = Shapes::ShapeRef.new(shape: StartCallAnalyticsStreamTranscriptionRequest)
471
+ o.output = Shapes::ShapeRef.new(shape: StartCallAnalyticsStreamTranscriptionResponse)
472
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
473
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
474
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
476
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
477
+ o.async = true
478
+ end)
479
+
315
480
  api.add_operation(:start_medical_stream_transcription, Seahorse::Model::Operation.new.tap do |o|
316
481
  o.name = "StartMedicalStreamTranscription"
317
482
  o.http_method = "POST"
@@ -9,124 +9,55 @@
9
9
 
10
10
  module Aws::TranscribeStreamingService
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?(region, "transcribestreaming-ca-central-1")
36
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.ca-central-1.amazonaws.com", headers: {}, properties: {})
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?(region, "transcribestreaming-us-east-1")
39
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
40
+ end
41
+ if Aws::Endpoints::Matchers.string_equals?(region, "transcribestreaming-us-east-2")
42
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
43
+ end
44
+ if Aws::Endpoints::Matchers.string_equals?(region, "transcribestreaming-us-west-2")
45
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
46
+ end
47
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
48
+ end
49
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
50
+ end
51
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
52
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
53
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
54
+ end
55
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
56
+ end
57
+ return Aws::Endpoints::Endpoint.new(url: "https://transcribestreaming.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
58
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
59
+ raise ArgumentError, 'No endpoint could be resolved'
24
60
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
61
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
- ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
- ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
- ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
- aGluZyB0aGUgcmVxdWVzdCBNQVkgcmV0dXJuIGFuIGVycm9yLiIsInR5cGUi
40
- OiJCb29sZWFuIn0sIlVzZUZJUFMiOnsiYnVpbHRJbiI6IkFXUzo6VXNlRklQ
41
- UyIsInJlcXVpcmVkIjp0cnVlLCJkZWZhdWx0IjpmYWxzZSw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Jyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
126
- InVybCI6Imh0dHBzOi8vdHJhbnNjcmliZXN0cmVhbWluZy57UmVnaW9ufS57
127
- UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwi
128
- aGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19XX0=
129
-
130
- JSON
131
62
  end
132
63
  end
@@ -11,6 +11,20 @@
11
11
  module Aws::TranscribeStreamingService
12
12
  module Endpoints
13
13
 
14
+ class StartCallAnalyticsStreamTranscription
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::TranscribeStreamingService::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
14
28
  class StartMedicalStreamTranscription
15
29
  def self.build(context)
16
30
  unless context.config.regional_endpoint
@@ -23,6 +23,18 @@ module Aws::TranscribeStreamingService
23
23
  @event_emitter.emit(:audio_event, params)
24
24
  end
25
25
 
26
+ # @option params [Array&lt;Types::ChannelDefinition&gt;] :channel_definitions
27
+ # Indicates which speaker is on which audio channel.
28
+ #
29
+ # @option params [Types::PostCallAnalyticsSettings] :post_call_analytics_settings
30
+ # Provides additional optional settings for your Call Analytics
31
+ # post-call request, including encryption and output locations for your
32
+ # redacted and unredacted transcript.
33
+ #
34
+ def signal_configuration_event_event(params = {})
35
+ @event_emitter.emit(:configuration_event, params)
36
+ end
37
+
26
38
  def signal_end_stream
27
39
  @event_emitter.emit(:end_stream, {})
28
40
  end
@@ -47,6 +59,18 @@ module Aws::TranscribeStreamingService
47
59
  @event_emitter.emit(:audio_event, params)
48
60
  end
49
61
 
62
+ # @option params [Array&lt;Types::ChannelDefinition&gt;] :channel_definitions
63
+ # Indicates which speaker is on which audio channel.
64
+ #
65
+ # @option params [Types::PostCallAnalyticsSettings] :post_call_analytics_settings
66
+ # Provides additional optional settings for your Call Analytics
67
+ # post-call request, including encryption and output locations for your
68
+ # redacted and unredacted transcript.
69
+ #
70
+ def signal_configuration_event_event(params = {})
71
+ @event_emitter.emit(:configuration_event, params)
72
+ end
73
+
50
74
  def signal_end_stream
51
75
  @event_emitter.emit(:end_stream, {})
52
76
  end
@@ -57,6 +81,106 @@ module Aws::TranscribeStreamingService
57
81
 
58
82
  end
59
83
 
84
+ class AudioStream
85
+
86
+ def initialize
87
+ @event_emitter = Aws::EventEmitter.new
88
+ end
89
+
90
+ # @option params [String, StringIO, File] :audio_chunk
91
+ # An audio blob that contains the next part of the audio that you want
92
+ # to transcribe. The maximum audio chunk size is 32 KB.
93
+ #
94
+ def signal_audio_event_event(params = {})
95
+ @event_emitter.emit(:audio_event, params)
96
+ end
97
+
98
+ # @option params [Array&lt;Types::ChannelDefinition&gt;] :channel_definitions
99
+ # Indicates which speaker is on which audio channel.
100
+ #
101
+ # @option params [Types::PostCallAnalyticsSettings] :post_call_analytics_settings
102
+ # Provides additional optional settings for your Call Analytics
103
+ # post-call request, including encryption and output locations for your
104
+ # redacted and unredacted transcript.
105
+ #
106
+ def signal_configuration_event_event(params = {})
107
+ @event_emitter.emit(:configuration_event, params)
108
+ end
109
+
110
+ def signal_end_stream
111
+ @event_emitter.emit(:end_stream, {})
112
+ end
113
+
114
+ # @api private
115
+ # @return Aws::EventEmitter
116
+ attr_reader :event_emitter
117
+
118
+ end
119
+
120
+ class CallAnalyticsTranscriptResultStream
121
+
122
+ def initialize
123
+ @event_emitter = Aws::EventEmitter.new
124
+ end
125
+
126
+ def on_utterance_event_event(&block)
127
+ @event_emitter.on(:utterance_event, block) if block_given?
128
+ end
129
+
130
+ def on_category_event_event(&block)
131
+ @event_emitter.on(:category_event, block) if block_given?
132
+ end
133
+
134
+ def on_bad_request_exception_event(&block)
135
+ @event_emitter.on(:bad_request_exception, block) if block_given?
136
+ end
137
+
138
+ def on_limit_exceeded_exception_event(&block)
139
+ @event_emitter.on(:limit_exceeded_exception, block) if block_given?
140
+ end
141
+
142
+ def on_internal_failure_exception_event(&block)
143
+ @event_emitter.on(:internal_failure_exception, block) if block_given?
144
+ end
145
+
146
+ def on_conflict_exception_event(&block)
147
+ @event_emitter.on(:conflict_exception, block) if block_given?
148
+ end
149
+
150
+ def on_service_unavailable_exception_event(&block)
151
+ @event_emitter.on(:service_unavailable_exception, block) if block_given?
152
+ end
153
+
154
+ def on_error_event(&block)
155
+ @event_emitter.on(:error, block) if block_given?
156
+ end
157
+
158
+ def on_initial_response_event(&block)
159
+ @event_emitter.on(:initial_response, block) if block_given?
160
+ end
161
+
162
+ def on_unknown_event(&block)
163
+ @event_emitter.on(:unknown_event, block) if block_given?
164
+ end
165
+
166
+ def on_event(&block)
167
+ on_utterance_event_event(&block)
168
+ on_category_event_event(&block)
169
+ on_bad_request_exception_event(&block)
170
+ on_limit_exceeded_exception_event(&block)
171
+ on_internal_failure_exception_event(&block)
172
+ on_conflict_exception_event(&block)
173
+ on_service_unavailable_exception_event(&block)
174
+ on_error_event(&block)
175
+ on_initial_response_event(&block)
176
+ on_unknown_event(&block)
177
+ end
178
+
179
+ # @api private
180
+ # @return Aws::EventEmitter
181
+ attr_reader :event_emitter
182
+
183
+ end
60
184
  class MedicalTranscriptResultStream
61
185
 
62
186
  def initialize
@@ -56,6 +56,8 @@ module Aws::TranscribeStreamingService
56
56
 
57
57
  def parameters_for_operation(context)
58
58
  case context.operation_name
59
+ when :start_call_analytics_stream_transcription
60
+ Aws::TranscribeStreamingService::Endpoints::StartCallAnalyticsStreamTranscription.build(context)
59
61
  when :start_medical_stream_transcription
60
62
  Aws::TranscribeStreamingService::Endpoints::StartMedicalStreamTranscription.build(context)
61
63
  when :start_stream_transcription