aws-sdk-transcribestreamingservice 1.22.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afc152ab499948942e2947980f8c927df7ee5172a67282d7ca1de64e2af0853e
4
- data.tar.gz: 2b45219cf52cb57701ef9624940ad09cbbcb877579d54d3d8ef9891c6cb53d73
3
+ metadata.gz: 84a2259056a3a83ec8c651abd8af61848fafffa0096ee79edb4e06598a689d5b
4
+ data.tar.gz: e8815f850835ac8bac0f2887248d3158a17f716a222a48627522b676416b90da
5
5
  SHA512:
6
- metadata.gz: aaab83ad3e38e52fc413003415dfecc0af37b802a18e53126a3b4fa5517fbfdd74de5754ec44198b5b077275513b9a1141b04bd345e167fda5dcc212560b4d41
7
- data.tar.gz: 93792c68b64f7a0b3f0711c25d387b9d18f7ff964e7e80a9de592a78df30ea8a89b8dd3e5e9113e550e947b1193d21801b728708f949cf51116a1047681abbe7
6
+ metadata.gz: 90ae4d0908cd98818faa8269e124148f9ea490d2f53b68117df3284b20bde172c18588553dae11bdbdf290008d491de82e4330d7fdeb46a928d9baf00a0d95e5
7
+ data.tar.gz: 15c470e0ce0d0cb41ec376fc491eb5faad47e91aecb5184039debcde9993a0a6a8da13acd77c1b62b1e3200486c36d34876e3284ceb9858eb7d917554c66201b
data/CHANGELOG.md ADDED
@@ -0,0 +1,153 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.27.0 (2021-03-10)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.26.0 (2021-02-02)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.25.0 (2021-01-29)
15
+ ------------------
16
+
17
+ * Feature - Amazon Transcribe Streaming Medical now supports Protected Health Information (PHI) identification which enables you to identify PHI entities based on HIPAA Privacy Rule.
18
+
19
+ 1.24.0 (2020-11-24)
20
+ ------------------
21
+
22
+ * Feature - Amazon Transcribe Medical streaming added medical specialties and HTTP/2 support. Amazon Transcribe streaming supports additional languages. Both support OGG/OPUS and FLAC codecs for streaming.
23
+
24
+ 1.23.0 (2020-11-04)
25
+ ------------------
26
+
27
+ * Feature - With this release, Amazon Transcribe now supports real-time transcription from audio sources in Italian (it-IT) and German(de-DE).
28
+
29
+ 1.22.0 (2020-09-30)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.21.0 (2020-09-17)
35
+ ------------------
36
+
37
+ * Feature - Amazon Transcribe now supports channel identification in real-time streaming, which enables you to transcribe multi-channel streaming audio.
38
+
39
+ 1.20.0 (2020-09-15)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.19.0 (2020-08-25)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.18.0 (2020-08-19)
50
+ ------------------
51
+
52
+ * Feature - Amazon Transcribe and Amazon Transcribe Medical now enable you to identify different speakers in your real-time streams with speaker identification.
53
+
54
+ 1.17.0 (2020-06-23)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.16.1 (2020-06-11)
60
+ ------------------
61
+
62
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
63
+
64
+ 1.16.0 (2020-06-10)
65
+ ------------------
66
+
67
+ * Issue - This version has been yanked. (#2327).
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.15.0 (2020-05-28)
71
+ ------------------
72
+
73
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
74
+
75
+ 1.14.0 (2020-05-20)
76
+ ------------------
77
+
78
+ * Feature - This release adds support for vocabulary filtering in streaming with which you can filter unwanted words from the real-time transcription results. Visit https://docs.aws.amazon.com/transcribe/latest/dg/how-it-works.html to learn more.
79
+
80
+ 1.13.0 (2020-05-07)
81
+ ------------------
82
+
83
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
84
+
85
+ 1.12.0 (2020-04-22)
86
+ ------------------
87
+
88
+ * Feature - Adding ServiceUnavailableException as one of the expected exceptions
89
+
90
+ 1.11.0 (2020-03-09)
91
+ ------------------
92
+
93
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
94
+
95
+ 1.10.0 (2019-10-25)
96
+ ------------------
97
+
98
+ * Feature - With this release, Amazon Transcribe Streaming now supports audio sources in Australian English (en-AU).
99
+
100
+ 1.9.0 (2019-10-23)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.8.0 (2019-07-25)
106
+ ------------------
107
+
108
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
109
+
110
+ 1.7.0 (2019-07-01)
111
+ ------------------
112
+
113
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
114
+
115
+ 1.6.0 (2019-06-17)
116
+ ------------------
117
+
118
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
119
+
120
+ 1.5.0 (2019-05-21)
121
+ ------------------
122
+
123
+ * Feature - API update.
124
+
125
+ 1.4.0 (2019-05-15)
126
+ ------------------
127
+
128
+ * Feature - API update.
129
+
130
+ 1.3.0 (2019-05-14)
131
+ ------------------
132
+
133
+ * Feature - API update.
134
+
135
+ 1.2.0 (2019-04-18)
136
+ ------------------
137
+
138
+ * Feature - API update.
139
+
140
+ 1.1.0 (2019-04-05)
141
+ ------------------
142
+
143
+ * Feature - Amazon Transcribe now supports GB English, CA French and FR French which expands upon the existing language support for US English and US Spanish.
144
+
145
+ 1.0.1 (2019-03-26)
146
+ ------------------
147
+
148
+ * Issue - Remove debug message spam when `http-2` gem is not present.
149
+
150
+ 1.0.0 (2019-03-21)
151
+ ------------------
152
+
153
+ * Feature - Initial release of `aws-sdk-transcribestreamingservice`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.27.0
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -30,7 +30,7 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
30
30
  # structure.
31
31
  #
32
32
  # transcribe_streaming_service = Aws::TranscribeStreamingService::Client.new
33
- # resp = transcribe_streaming_service.start_stream_transcription(params)
33
+ # resp = transcribe_streaming_service.start_medical_stream_transcription(params)
34
34
  #
35
35
  # See {Client} for more information.
36
36
  #
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
50
50
  # @!group service
51
51
  module Aws::TranscribeStreamingService
52
52
 
53
- GEM_VERSION = '1.22.0'
53
+ GEM_VERSION = '1.27.0'
54
54
 
55
55
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -237,6 +237,276 @@ module Aws::TranscribeStreamingService
237
237
 
238
238
  # @!group API Operations
239
239
 
240
+ # Starts a bidirectional HTTP/2 stream where audio is streamed to Amazon
241
+ # Transcribe Medical and the transcription results are streamed to your
242
+ # application.
243
+ #
244
+ # @option params [required, String] :language_code
245
+ # Indicates the source language used in the input audio stream. For
246
+ # Amazon Transcribe Medical, this is US English (en-US).
247
+ #
248
+ # @option params [required, Integer] :media_sample_rate_hertz
249
+ # The sample rate of the input audio in Hertz. Sample rates of 16000 Hz
250
+ # or higher are accepted.
251
+ #
252
+ # @option params [required, String] :media_encoding
253
+ # The encoding used for the input audio.
254
+ #
255
+ # @option params [String] :vocabulary_name
256
+ # The name of the medical custom vocabulary to use when processing the
257
+ # real-time stream.
258
+ #
259
+ # @option params [required, String] :specialty
260
+ # The medical specialty of the clinician or provider.
261
+ #
262
+ # @option params [required, String] :type
263
+ # The type of input audio. Choose `DICTATION` for a provider dictating
264
+ # patient notes. Choose `CONVERSATION` for a dialogue between a patient
265
+ # and one or more medical professionanls.
266
+ #
267
+ # @option params [Boolean] :show_speaker_label
268
+ # When `true`, enables speaker identification in your real-time stream.
269
+ #
270
+ # @option params [String] :session_id
271
+ # Optional. An identifier for the transcription session. If you don't
272
+ # provide a session ID, Amazon Transcribe generates one for you and
273
+ # returns it in the response.
274
+ #
275
+ # @option params [Boolean] :enable_channel_identification
276
+ # When `true`, instructs Amazon Transcribe Medical to process each audio
277
+ # channel separately and then merge the transcription output of each
278
+ # channel into a single transcription.
279
+ #
280
+ # Amazon Transcribe Medical also produces a transcription of each item.
281
+ # An item includes the start time, end time, and any alternative
282
+ # transcriptions.
283
+ #
284
+ # You can't set both `ShowSpeakerLabel` and
285
+ # `EnableChannelIdentification` in the same request. If you set both,
286
+ # your request returns a `BadRequestException`.
287
+ #
288
+ # @option params [Integer] :number_of_channels
289
+ # The number of channels that are in your audio stream.
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
+ #
295
+ # @return [Types::StartMedicalStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
296
+ #
297
+ # * {Types::StartMedicalStreamTranscriptionResponse#request_id #request_id} => String
298
+ # * {Types::StartMedicalStreamTranscriptionResponse#language_code #language_code} => String
299
+ # * {Types::StartMedicalStreamTranscriptionResponse#media_sample_rate_hertz #media_sample_rate_hertz} => Integer
300
+ # * {Types::StartMedicalStreamTranscriptionResponse#media_encoding #media_encoding} => String
301
+ # * {Types::StartMedicalStreamTranscriptionResponse#vocabulary_name #vocabulary_name} => String
302
+ # * {Types::StartMedicalStreamTranscriptionResponse#specialty #specialty} => String
303
+ # * {Types::StartMedicalStreamTranscriptionResponse#type #type} => String
304
+ # * {Types::StartMedicalStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
305
+ # * {Types::StartMedicalStreamTranscriptionResponse#session_id #session_id} => String
306
+ # * {Types::StartMedicalStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::MedicalTranscriptResultStream
307
+ # * {Types::StartMedicalStreamTranscriptionResponse#enable_channel_identification #enable_channel_identification} => Boolean
308
+ # * {Types::StartMedicalStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
309
+ # * {Types::StartMedicalStreamTranscriptionResponse#content_identification_type #content_identification_type} => String
310
+ #
311
+ # @example Bi-directional EventStream Operation Example
312
+ #
313
+ # You can signal input events after initial request is
314
+ # established, events will be sent to stream
315
+ # immediately (once stream connection is established successfully).
316
+ #
317
+ # To signal events, you can call #signal methods from an Aws::TranscribeStreamingService::EventStreams::AudioStream object.
318
+ # Make sure signal events before calling #wait or #join! at async response.
319
+ #
320
+ # input_stream = Aws::TranscribeStreamingService::EventStreams::AudioStream.new
321
+ #
322
+ # async_resp = client.start_medical_stream_transcription( # params input,
323
+ # input_event_stream_handler: input_stream) do |out_stream|
324
+ #
325
+ # # register callbacks for events arrival
326
+ # out_stream.on_transcript_event_event do |event|
327
+ # event # => Aws::TranscribeStreamingService::Types::TranscriptEvent
328
+ # end
329
+ # out_stream.on_bad_request_exception_event do |event|
330
+ # event # => Aws::TranscribeStreamingService::Types::BadRequestException
331
+ # end
332
+ # out_stream.on_limit_exceeded_exception_event do |event|
333
+ # event # => Aws::TranscribeStreamingService::Types::LimitExceededException
334
+ # end
335
+ # out_stream.on_internal_failure_exception_event do |event|
336
+ # event # => Aws::TranscribeStreamingService::Types::InternalFailureException
337
+ # end
338
+ # out_stream.on_conflict_exception_event do |event|
339
+ # event # => Aws::TranscribeStreamingService::Types::ConflictException
340
+ # end
341
+ # out_stream.on_service_unavailable_exception_event do |event|
342
+ # event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
343
+ # end
344
+ #
345
+ # end
346
+ # # => returns Aws::Seahorse::Client::AsyncResponse
347
+ #
348
+ # # signal events
349
+ # input_stream.signal_audio_event_event( ... )
350
+ #
351
+ # # make sure signaling :end_stream in the end
352
+ # input_stream.signal_end_stream
353
+ #
354
+ # # wait until stream is closed before finalizing sync response
355
+ # resp = async_resp.wait
356
+ # # Or close stream and finalizing sync response immediately
357
+ # # resp = async_resp.join!
358
+ #
359
+ # Inorder to streamingly processing events received, you can also provide an Aws::TranscribeStreamingService::EventStreams::MedicalTranscriptResultStream
360
+ # object to register callbacks before initializing request instead of processing from request block
361
+ #
362
+ # output_stream = Aws::TranscribeStreamingService::EventStreams::MedicalTranscriptResultStream.new
363
+ # # register callbacks for events arrival
364
+ # output_stream.on_transcript_event_event do |event|
365
+ # event # => Aws::TranscribeStreamingService::Types::TranscriptEvent
366
+ # end
367
+ # output_stream.on_bad_request_exception_event do |event|
368
+ # event # => Aws::TranscribeStreamingService::Types::BadRequestException
369
+ # end
370
+ # output_stream.on_limit_exceeded_exception_event do |event|
371
+ # event # => Aws::TranscribeStreamingService::Types::LimitExceededException
372
+ # end
373
+ # output_stream.on_internal_failure_exception_event do |event|
374
+ # event # => Aws::TranscribeStreamingService::Types::InternalFailureException
375
+ # end
376
+ # output_stream.on_conflict_exception_event do |event|
377
+ # event # => Aws::TranscribeStreamingService::Types::ConflictException
378
+ # end
379
+ # output_stream.on_service_unavailable_exception_event do |event|
380
+ # event # => Aws::TranscribeStreamingService::Types::ServiceUnavailableException
381
+ # end
382
+ # output_stream.on_error_event do |event|
383
+ # # catch unmodeled error event in the stream
384
+ # raise event
385
+ # # => Aws::Errors::EventError
386
+ # # event.event_type => :error
387
+ # # event.error_code => String
388
+ # # event.error_message => String
389
+ # end
390
+ #
391
+ # async_resp = client.start_medical_stream_transcription ( #params input,
392
+ # input_event_stream_handler: input_stream
393
+ # output_event_stream_handler: output_stream
394
+ # )
395
+ #
396
+ # resp = async_resp.wait!
397
+ #
398
+ # Besides above usage patterns for process events when they arrive immediately, you can also
399
+ # iterate through events after response complete.
400
+ #
401
+ # Events are available at resp.transcript_result_stream # => Enumerator
402
+ #
403
+ # @example Request syntax with placeholder values
404
+ #
405
+ # async_resp = async_client.start_medical_stream_transcription({
406
+ # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR
407
+ # media_sample_rate_hertz: 1, # required
408
+ # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
409
+ # vocabulary_name: "VocabularyName",
410
+ # specialty: "PRIMARYCARE", # required, accepts PRIMARYCARE, CARDIOLOGY, NEUROLOGY, ONCOLOGY, RADIOLOGY, UROLOGY
411
+ # type: "CONVERSATION", # required, accepts CONVERSATION, DICTATION
412
+ # show_speaker_label: false,
413
+ # session_id: "SessionId",
414
+ # input_event_stream_hander: EventStreams::AudioStream.new,
415
+ # enable_channel_identification: false,
416
+ # number_of_channels: 1,
417
+ # content_identification_type: "PHI", # accepts PHI
418
+ # })
419
+ # # => Seahorse::Client::AsyncResponse
420
+ # async_resp.wait
421
+ # # => Seahorse::Client::Response
422
+ # # Or use async_resp.join!
423
+ #
424
+ # @example Response structure
425
+ #
426
+ # resp.request_id #=> String
427
+ # resp.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR"
428
+ # resp.media_sample_rate_hertz #=> Integer
429
+ # resp.media_encoding #=> String, one of "pcm", "ogg-opus", "flac"
430
+ # resp.vocabulary_name #=> String
431
+ # resp.specialty #=> String, one of "PRIMARYCARE", "CARDIOLOGY", "NEUROLOGY", "ONCOLOGY", "RADIOLOGY", "UROLOGY"
432
+ # resp.type #=> String, one of "CONVERSATION", "DICTATION"
433
+ # resp.show_speaker_label #=> Boolean
434
+ # resp.session_id #=> String
435
+ # All events are available at resp.transcript_result_stream:
436
+ # resp.transcript_result_stream #=> Enumerator
437
+ # resp.transcript_result_stream.event_types #=> [:transcript_event, :bad_request_exception, :limit_exceeded_exception, :internal_failure_exception, :conflict_exception, :service_unavailable_exception]
438
+ #
439
+ # For :transcript_event event available at #on_transcript_event_event callback and response eventstream enumerator:
440
+ # event.transcript.results #=> Array
441
+ # event.transcript.results[0].result_id #=> String
442
+ # event.transcript.results[0].start_time #=> Float
443
+ # event.transcript.results[0].end_time #=> Float
444
+ # event.transcript.results[0].is_partial #=> Boolean
445
+ # event.transcript.results[0].alternatives #=> Array
446
+ # event.transcript.results[0].alternatives[0].transcript #=> String
447
+ # event.transcript.results[0].alternatives[0].items #=> Array
448
+ # event.transcript.results[0].alternatives[0].items[0].start_time #=> Float
449
+ # event.transcript.results[0].alternatives[0].items[0].end_time #=> Float
450
+ # event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
451
+ # event.transcript.results[0].alternatives[0].items[0].content #=> String
452
+ # event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
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
460
+ # event.transcript.results[0].channel_id #=> String
461
+ #
462
+ # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
463
+ # event.message #=> String
464
+ #
465
+ # For :limit_exceeded_exception event available at #on_limit_exceeded_exception_event callback and response eventstream enumerator:
466
+ # event.message #=> String
467
+ #
468
+ # For :internal_failure_exception event available at #on_internal_failure_exception_event callback and response eventstream enumerator:
469
+ # event.message #=> String
470
+ #
471
+ # For :conflict_exception event available at #on_conflict_exception_event callback and response eventstream enumerator:
472
+ # event.message #=> String
473
+ #
474
+ # For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
475
+ # event.message #=> String
476
+ #
477
+ # resp.enable_channel_identification #=> Boolean
478
+ # resp.number_of_channels #=> Integer
479
+ # resp.content_identification_type #=> String, one of "PHI"
480
+ #
481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartMedicalStreamTranscription AWS API Documentation
482
+ #
483
+ # @overload start_medical_stream_transcription(params = {})
484
+ # @param [Hash] params ({})
485
+ def start_medical_stream_transcription(params = {}, options = {}, &block)
486
+ params = params.dup
487
+ input_event_stream_handler = _event_stream_handler(
488
+ :input,
489
+ params.delete(:input_event_stream_handler),
490
+ EventStreams::AudioStream
491
+ )
492
+ output_event_stream_handler = _event_stream_handler(
493
+ :output,
494
+ params.delete(:output_event_stream_handler) || params.delete(:event_stream_handler),
495
+ EventStreams::MedicalTranscriptResultStream
496
+ )
497
+
498
+ yield(output_event_stream_handler) if block_given?
499
+
500
+ req = build_request(:start_medical_stream_transcription, params)
501
+
502
+ req.context[:input_event_stream_handler] = input_event_stream_handler
503
+ req.handlers.add(Aws::Binary::EncodeHandler, priority: 95)
504
+ req.context[:output_event_stream_handler] = output_event_stream_handler
505
+ req.handlers.add(Aws::Binary::DecodeHandler, priority: 95)
506
+
507
+ req.send_request(options, &block)
508
+ end
509
+
240
510
  # Starts a bidirectional HTTP2 stream where audio is streamed to Amazon
241
511
  # Transcribe and the transcription results are streamed to your
242
512
  # application.
@@ -259,7 +529,7 @@ module Aws::TranscribeStreamingService
259
529
  # 8000 Hz for low quality audio and 16000 Hz for high quality audio.
260
530
  #
261
531
  # @option params [required, String] :media_encoding
262
- # The encoding used for the input audio. `pcm` is the only valid value.
532
+ # The encoding used for the input audio.
263
533
  #
264
534
  # @option params [String] :vocabulary_name
265
535
  # The name of the vocabulary to use when processing the transcription
@@ -412,9 +682,9 @@ module Aws::TranscribeStreamingService
412
682
  # @example Request syntax with placeholder values
413
683
  #
414
684
  # async_resp = async_client.start_stream_transcription({
415
- # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU
685
+ # language_code: "en-US", # required, accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR
416
686
  # media_sample_rate_hertz: 1, # required
417
- # media_encoding: "pcm", # required, accepts pcm
687
+ # media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
418
688
  # vocabulary_name: "VocabularyName",
419
689
  # session_id: "SessionId",
420
690
  # input_event_stream_hander: EventStreams::AudioStream.new,
@@ -432,9 +702,9 @@ module Aws::TranscribeStreamingService
432
702
  # @example Response structure
433
703
  #
434
704
  # resp.request_id #=> String
435
- # resp.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU"
705
+ # resp.language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR"
436
706
  # resp.media_sample_rate_hertz #=> Integer
437
- # resp.media_encoding #=> String, one of "pcm"
707
+ # resp.media_encoding #=> String, one of "pcm", "ogg-opus", "flac"
438
708
  # resp.vocabulary_name #=> String
439
709
  # resp.session_id #=> String
440
710
  # All events are available at resp.transcript_result_stream:
@@ -522,7 +792,7 @@ module Aws::TranscribeStreamingService
522
792
  http_response: Seahorse::Client::Http::AsyncResponse.new,
523
793
  config: config)
524
794
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
525
- context[:gem_version] = '1.22.0'
795
+ context[:gem_version] = '1.27.0'
526
796
  Seahorse::Client::Request.new(handlers, context)
527
797
  end
528
798