aws-sdk-transcribestreamingservice 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +22 -1
- data/lib/aws-sdk-transcribestreamingservice/client.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +7 -0
- data/lib/aws-sdk-transcribestreamingservice/types.rb +40 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7ae51406aaf873d2039757ba77120ad42a430e4b45e41e7d263c795bca749f
|
4
|
+
data.tar.gz: 6962deebc6fbd1f6c1c97fe9393238e5fc0febd4bbc7bfc01241e2a449681349
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ef592700ba4f5bf65eabb5077cfea4d250d44428aa6831f113293b0f1f658ff09eb2f893036b020f67dbf58e0338ea47fb232c9221d49d8ae42110b7a7c3b0
|
7
|
+
data.tar.gz: c8a75c669caf72e20f0487498bab12106e8f554a9977e608b53e6ab847677beebb058d005e2fa50a4e2197fb1957365f0ef24ba8d16662027bf936624b67ffd2
|
@@ -252,6 +252,19 @@ module Aws::TranscribeStreamingService
|
|
252
252
|
# Amazon Transcribe will generate one for you and return it in the
|
253
253
|
# response.
|
254
254
|
#
|
255
|
+
# @option params [String] :vocabulary_filter_name
|
256
|
+
# The name of the vocabulary filter you've created that is unique to
|
257
|
+
# your AWS accountf. Provide the name in this field to successfully use
|
258
|
+
# it in a stream.
|
259
|
+
#
|
260
|
+
# @option params [String] :vocabulary_filter_method
|
261
|
+
# The manner in which you use your vocabulary filter to filter words in
|
262
|
+
# your transcript. `Remove` removes filtered words from your
|
263
|
+
# transcription results. `Mask` masks those words with a `***` in your
|
264
|
+
# transcription results. `Tag` keeps the filtered words in your
|
265
|
+
# transcription results and tags them. The tag appears as
|
266
|
+
# `VocabularyFilterMatch` equal to `True`
|
267
|
+
#
|
255
268
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
256
269
|
#
|
257
270
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -261,6 +274,8 @@ module Aws::TranscribeStreamingService
|
|
261
274
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_name #vocabulary_name} => String
|
262
275
|
# * {Types::StartStreamTranscriptionResponse#session_id #session_id} => String
|
263
276
|
# * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
|
277
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
278
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
|
264
279
|
#
|
265
280
|
# @example Bi-directional EventStream Operation Example
|
266
281
|
#
|
@@ -363,6 +378,8 @@ module Aws::TranscribeStreamingService
|
|
363
378
|
# vocabulary_name: "VocabularyName",
|
364
379
|
# session_id: "SessionId",
|
365
380
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
381
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
382
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
366
383
|
# })
|
367
384
|
# # => Seahorse::Client::AsyncResponse
|
368
385
|
# async_resp.wait
|
@@ -394,6 +411,7 @@ module Aws::TranscribeStreamingService
|
|
394
411
|
# event.transcript.results[0].alternatives[0].items[0].end_time #=> Float
|
395
412
|
# event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
|
396
413
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
414
|
+
# event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
|
397
415
|
#
|
398
416
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
399
417
|
# event.message #=> String
|
@@ -410,6 +428,9 @@ module Aws::TranscribeStreamingService
|
|
410
428
|
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
411
429
|
# event.message #=> String
|
412
430
|
#
|
431
|
+
# resp.vocabulary_filter_name #=> String
|
432
|
+
# resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
|
433
|
+
#
|
413
434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
414
435
|
#
|
415
436
|
# @overload start_stream_transcription(params = {})
|
@@ -453,7 +474,7 @@ module Aws::TranscribeStreamingService
|
|
453
474
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
454
475
|
config: config)
|
455
476
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
456
|
-
context[:gem_version] = '1.
|
477
|
+
context[:gem_version] = '1.14.0'
|
457
478
|
Seahorse::Client::Request.new(handlers, context)
|
458
479
|
end
|
459
480
|
|
@@ -332,7 +332,7 @@ module Aws::TranscribeStreamingService
|
|
332
332
|
params: params,
|
333
333
|
config: config)
|
334
334
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
335
|
-
context[:gem_version] = '1.
|
335
|
+
context[:gem_version] = '1.14.0'
|
336
336
|
Seahorse::Client::Request.new(handlers, context)
|
337
337
|
end
|
338
338
|
|
@@ -39,6 +39,8 @@ module Aws::TranscribeStreamingService
|
|
39
39
|
Transcript = Shapes::StructureShape.new(name: 'Transcript')
|
40
40
|
TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
|
41
41
|
TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
|
42
|
+
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
43
|
+
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
42
44
|
VocabularyName = Shapes::StringShape.new(name: 'VocabularyName')
|
43
45
|
|
44
46
|
Alternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
|
@@ -66,6 +68,7 @@ module Aws::TranscribeStreamingService
|
|
66
68
|
Item.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
67
69
|
Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
|
68
70
|
Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
71
|
+
Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
|
69
72
|
Item.struct_class = Types::Item
|
70
73
|
|
71
74
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
@@ -91,6 +94,8 @@ module Aws::TranscribeStreamingService
|
|
91
94
|
StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
92
95
|
StartStreamTranscriptionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
93
96
|
StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
97
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
98
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
94
99
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
95
100
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
96
101
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -102,6 +107,8 @@ module Aws::TranscribeStreamingService
|
|
102
107
|
StartStreamTranscriptionResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
103
108
|
StartStreamTranscriptionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
104
109
|
StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
110
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
111
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
105
112
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
106
113
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
107
114
|
StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -114,13 +114,20 @@ module Aws::TranscribeStreamingService
|
|
114
114
|
# The word or punctuation that was recognized in the input audio.
|
115
115
|
# @return [String]
|
116
116
|
#
|
117
|
+
# @!attribute [rw] vocabulary_filter_match
|
118
|
+
# Indicates whether a word in the item matches a word in the
|
119
|
+
# vocabulary filter you've chosen for your real-time stream. If
|
120
|
+
# `true` then a word in the item matches your vocabulary filter.
|
121
|
+
# @return [Boolean]
|
122
|
+
#
|
117
123
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
|
118
124
|
#
|
119
125
|
class Item < Struct.new(
|
120
126
|
:start_time,
|
121
127
|
:end_time,
|
122
128
|
:type,
|
123
|
-
:content
|
129
|
+
:content,
|
130
|
+
:vocabulary_filter_match)
|
124
131
|
include Aws::Structure
|
125
132
|
end
|
126
133
|
|
@@ -207,6 +214,8 @@ module Aws::TranscribeStreamingService
|
|
207
214
|
# vocabulary_name: "VocabularyName",
|
208
215
|
# session_id: "SessionId",
|
209
216
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
217
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
218
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
210
219
|
# }
|
211
220
|
#
|
212
221
|
# @!attribute [rw] language_code
|
@@ -240,6 +249,21 @@ module Aws::TranscribeStreamingService
|
|
240
249
|
# HTTP2 data frame.
|
241
250
|
# @return [Types::AudioStream]
|
242
251
|
#
|
252
|
+
# @!attribute [rw] vocabulary_filter_name
|
253
|
+
# The name of the vocabulary filter you've created that is unique to
|
254
|
+
# your AWS accountf. Provide the name in this field to successfully
|
255
|
+
# use it in a stream.
|
256
|
+
# @return [String]
|
257
|
+
#
|
258
|
+
# @!attribute [rw] vocabulary_filter_method
|
259
|
+
# The manner in which you use your vocabulary filter to filter words
|
260
|
+
# in your transcript. `Remove` removes filtered words from your
|
261
|
+
# transcription results. `Mask` masks those words with a `***` in your
|
262
|
+
# transcription results. `Tag` keeps the filtered words in your
|
263
|
+
# transcription results and tags them. The tag appears as
|
264
|
+
# `VocabularyFilterMatch` equal to `True`
|
265
|
+
# @return [String]
|
266
|
+
#
|
243
267
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
244
268
|
#
|
245
269
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -248,7 +272,9 @@ module Aws::TranscribeStreamingService
|
|
248
272
|
:media_encoding,
|
249
273
|
:vocabulary_name,
|
250
274
|
:session_id,
|
251
|
-
:audio_stream
|
275
|
+
:audio_stream,
|
276
|
+
:vocabulary_filter_name,
|
277
|
+
:vocabulary_filter_method)
|
252
278
|
include Aws::Structure
|
253
279
|
end
|
254
280
|
|
@@ -270,7 +296,7 @@ module Aws::TranscribeStreamingService
|
|
270
296
|
# @return [String]
|
271
297
|
#
|
272
298
|
# @!attribute [rw] vocabulary_name
|
273
|
-
# The name of the vocabulary used when processing the
|
299
|
+
# The name of the vocabulary used when processing the stream.
|
274
300
|
# @return [String]
|
275
301
|
#
|
276
302
|
# @!attribute [rw] session_id
|
@@ -282,6 +308,14 @@ module Aws::TranscribeStreamingService
|
|
282
308
|
# to your application.
|
283
309
|
# @return [Types::TranscriptResultStream]
|
284
310
|
#
|
311
|
+
# @!attribute [rw] vocabulary_filter_name
|
312
|
+
# The name of the vocabulary filter used in your real-time stream.
|
313
|
+
# @return [String]
|
314
|
+
#
|
315
|
+
# @!attribute [rw] vocabulary_filter_method
|
316
|
+
# The vocabulary filtering method used in the real-time stream.
|
317
|
+
# @return [String]
|
318
|
+
#
|
285
319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
286
320
|
#
|
287
321
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -291,7 +325,9 @@ module Aws::TranscribeStreamingService
|
|
291
325
|
:media_encoding,
|
292
326
|
:vocabulary_name,
|
293
327
|
:session_id,
|
294
|
-
:transcript_result_stream
|
328
|
+
:transcript_result_stream,
|
329
|
+
:vocabulary_filter_name,
|
330
|
+
:vocabulary_filter_method)
|
295
331
|
include Aws::Structure
|
296
332
|
end
|
297
333
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-transcribestreamingservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|