aws-sdk-transcribestreamingservice 1.12.0 → 1.17.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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-transcribestreamingservice.rb +3 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +28 -3
- data/lib/aws-sdk-transcribestreamingservice/client.rb +8 -4
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +9 -0
- data/lib/aws-sdk-transcribestreamingservice/errors.rb +2 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +7 -0
- data/lib/aws-sdk-transcribestreamingservice/resource.rb +2 -0
- data/lib/aws-sdk-transcribestreamingservice/types.rb +55 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45c27af3966cad5f1aa4af3291cb14c1d236d60f178bdf5022f609f3379d6ba
|
4
|
+
data.tar.gz: '09169d66c278cfd10b98059b2374dc9df5ce5d9e402f7e9f87c32e04d8fd32e2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a8ae2e44789be8c85b43bee6856647f8803fe160aad3305b7a1d06f65bfcc204a8136111926c76a0984a41119fa4a69b33e61e4b2dcd4a8e52759a0b861ad3c
|
7
|
+
data.tar.gz: 8202739354a7c96fdedc6527409a1e43fcd11f0c01c8e1b1c2d8a5b7fb7a860bc3c5d1068cd2fe843d00e241f2425d7e55c6c07aea174b43536e13be1477ed12
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -47,6 +49,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
|
|
47
49
|
# @service
|
48
50
|
module Aws::TranscribeStreamingService
|
49
51
|
|
50
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.17.0'
|
51
53
|
|
52
54
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -23,6 +25,7 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
23
25
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
26
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
27
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
28
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
26
29
|
require 'aws-sdk-core/plugins/invocation_id.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
@@ -52,6 +55,7 @@ module Aws::TranscribeStreamingService
|
|
52
55
|
add_plugin(Aws::Plugins::StubResponses)
|
53
56
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
54
57
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
58
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
55
59
|
add_plugin(Aws::Plugins::InvocationId)
|
56
60
|
add_plugin(Aws::Plugins::SignatureV4)
|
57
61
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
@@ -88,7 +92,7 @@ module Aws::TranscribeStreamingService
|
|
88
92
|
# @option options [required, String] :region
|
89
93
|
# The AWS region to connect to. The configured `:region` is
|
90
94
|
# used to determine the service `:endpoint`. When not passed,
|
91
|
-
# a default `:region` is
|
95
|
+
# a default `:region` is searched for in the following locations:
|
92
96
|
#
|
93
97
|
# * `Aws.config[:region]`
|
94
98
|
# * `ENV['AWS_REGION']`
|
@@ -116,7 +120,7 @@ module Aws::TranscribeStreamingService
|
|
116
120
|
# @option options [String] :endpoint
|
117
121
|
# The client endpoint is normally constructed from the `:region`
|
118
122
|
# option. You should only configure an `:endpoint` when connecting
|
119
|
-
# to test endpoints. This should be
|
123
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
120
124
|
#
|
121
125
|
# @option options [Proc] :event_stream_handler
|
122
126
|
# When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
|
@@ -252,6 +256,19 @@ module Aws::TranscribeStreamingService
|
|
252
256
|
# Amazon Transcribe will generate one for you and return it in the
|
253
257
|
# response.
|
254
258
|
#
|
259
|
+
# @option params [String] :vocabulary_filter_name
|
260
|
+
# The name of the vocabulary filter you've created that is unique to
|
261
|
+
# your AWS accountf. Provide the name in this field to successfully use
|
262
|
+
# it in a stream.
|
263
|
+
#
|
264
|
+
# @option params [String] :vocabulary_filter_method
|
265
|
+
# The manner in which you use your vocabulary filter to filter words in
|
266
|
+
# your transcript. `Remove` removes filtered words from your
|
267
|
+
# transcription results. `Mask` masks those words with a `***` in your
|
268
|
+
# transcription results. `Tag` keeps the filtered words in your
|
269
|
+
# transcription results and tags them. The tag appears as
|
270
|
+
# `VocabularyFilterMatch` equal to `True`
|
271
|
+
#
|
255
272
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
256
273
|
#
|
257
274
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -261,6 +278,8 @@ module Aws::TranscribeStreamingService
|
|
261
278
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_name #vocabulary_name} => String
|
262
279
|
# * {Types::StartStreamTranscriptionResponse#session_id #session_id} => String
|
263
280
|
# * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
|
281
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
282
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
|
264
283
|
#
|
265
284
|
# @example Bi-directional EventStream Operation Example
|
266
285
|
#
|
@@ -363,6 +382,8 @@ module Aws::TranscribeStreamingService
|
|
363
382
|
# vocabulary_name: "VocabularyName",
|
364
383
|
# session_id: "SessionId",
|
365
384
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
385
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
386
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
366
387
|
# })
|
367
388
|
# # => Seahorse::Client::AsyncResponse
|
368
389
|
# async_resp.wait
|
@@ -394,6 +415,7 @@ module Aws::TranscribeStreamingService
|
|
394
415
|
# event.transcript.results[0].alternatives[0].items[0].end_time #=> Float
|
395
416
|
# event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
|
396
417
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
418
|
+
# event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
|
397
419
|
#
|
398
420
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
399
421
|
# event.message #=> String
|
@@ -410,6 +432,9 @@ module Aws::TranscribeStreamingService
|
|
410
432
|
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
411
433
|
# event.message #=> String
|
412
434
|
#
|
435
|
+
# resp.vocabulary_filter_name #=> String
|
436
|
+
# resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
|
437
|
+
#
|
413
438
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
414
439
|
#
|
415
440
|
# @overload start_stream_transcription(params = {})
|
@@ -453,7 +478,7 @@ module Aws::TranscribeStreamingService
|
|
453
478
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
454
479
|
config: config)
|
455
480
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
456
|
-
context[:gem_version] = '1.
|
481
|
+
context[:gem_version] = '1.17.0'
|
457
482
|
Seahorse::Client::Request.new(handlers, context)
|
458
483
|
end
|
459
484
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -70,6 +73,7 @@ module Aws::TranscribeStreamingService
|
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
71
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
72
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
76
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
73
77
|
add_plugin(Aws::Plugins::SignatureV4)
|
74
78
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
75
79
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -107,7 +111,7 @@ module Aws::TranscribeStreamingService
|
|
107
111
|
# @option options [required, String] :region
|
108
112
|
# The AWS region to connect to. The configured `:region` is
|
109
113
|
# used to determine the service `:endpoint`. When not passed,
|
110
|
-
# a default `:region` is
|
114
|
+
# a default `:region` is searched for in the following locations:
|
111
115
|
#
|
112
116
|
# * `Aws.config[:region]`
|
113
117
|
# * `ENV['AWS_REGION']`
|
@@ -163,7 +167,7 @@ module Aws::TranscribeStreamingService
|
|
163
167
|
# @option options [String] :endpoint
|
164
168
|
# The client endpoint is normally constructed from the `:region`
|
165
169
|
# option. You should only configure an `:endpoint` when connecting
|
166
|
-
# to test endpoints. This should be
|
170
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
167
171
|
#
|
168
172
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
169
173
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -178,7 +182,7 @@ module Aws::TranscribeStreamingService
|
|
178
182
|
# requests fetching endpoints information. Defaults to 60 sec.
|
179
183
|
#
|
180
184
|
# @option options [Boolean] :endpoint_discovery (false)
|
181
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
185
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
182
186
|
#
|
183
187
|
# @option options [Proc] :event_stream_handler
|
184
188
|
# When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
|
@@ -332,7 +336,7 @@ module Aws::TranscribeStreamingService
|
|
332
336
|
params: params,
|
333
337
|
config: config)
|
334
338
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
335
|
-
context[:gem_version] = '1.
|
339
|
+
context[:gem_version] = '1.17.0'
|
336
340
|
Seahorse::Client::Request.new(handlers, context)
|
337
341
|
end
|
338
342
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -39,6 +41,8 @@ module Aws::TranscribeStreamingService
|
|
39
41
|
Transcript = Shapes::StructureShape.new(name: 'Transcript')
|
40
42
|
TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
|
41
43
|
TranscriptResultStream = Shapes::StructureShape.new(name: 'TranscriptResultStream')
|
44
|
+
VocabularyFilterMethod = Shapes::StringShape.new(name: 'VocabularyFilterMethod')
|
45
|
+
VocabularyFilterName = Shapes::StringShape.new(name: 'VocabularyFilterName')
|
42
46
|
VocabularyName = Shapes::StringShape.new(name: 'VocabularyName')
|
43
47
|
|
44
48
|
Alternative.add_member(:transcript, Shapes::ShapeRef.new(shape: String, location_name: "Transcript"))
|
@@ -66,6 +70,7 @@ module Aws::TranscribeStreamingService
|
|
66
70
|
Item.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
67
71
|
Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
|
68
72
|
Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
73
|
+
Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
|
69
74
|
Item.struct_class = Types::Item
|
70
75
|
|
71
76
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
@@ -91,6 +96,8 @@ module Aws::TranscribeStreamingService
|
|
91
96
|
StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
92
97
|
StartStreamTranscriptionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
93
98
|
StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
99
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
100
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
94
101
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
95
102
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
96
103
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -102,6 +109,8 @@ module Aws::TranscribeStreamingService
|
|
102
109
|
StartStreamTranscriptionResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
103
110
|
StartStreamTranscriptionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
104
111
|
StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
112
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
113
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
105
114
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
106
115
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
107
116
|
StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -69,6 +71,10 @@ module Aws::TranscribeStreamingService
|
|
69
71
|
@event_emitter.on(:initial_response, block) if block_given?
|
70
72
|
end
|
71
73
|
|
74
|
+
def on_unknown_event(&block)
|
75
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
76
|
+
end
|
77
|
+
|
72
78
|
def on_event(&block)
|
73
79
|
on_transcript_event_event(&block)
|
74
80
|
on_bad_request_exception_event(&block)
|
@@ -78,6 +84,7 @@ module Aws::TranscribeStreamingService
|
|
78
84
|
on_service_unavailable_exception_event(&block)
|
79
85
|
on_error_event(&block)
|
80
86
|
on_initial_response_event(&block)
|
87
|
+
on_unknown_event(&block)
|
81
88
|
end
|
82
89
|
|
83
90
|
# @api private
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -23,6 +25,7 @@ module Aws::TranscribeStreamingService
|
|
23
25
|
class Alternative < Struct.new(
|
24
26
|
:transcript,
|
25
27
|
:items)
|
28
|
+
SENSITIVE = []
|
26
29
|
include Aws::Structure
|
27
30
|
end
|
28
31
|
|
@@ -45,6 +48,7 @@ module Aws::TranscribeStreamingService
|
|
45
48
|
class AudioEvent < Struct.new(
|
46
49
|
:audio_chunk,
|
47
50
|
:event_type)
|
51
|
+
SENSITIVE = []
|
48
52
|
include Aws::Structure
|
49
53
|
end
|
50
54
|
|
@@ -61,6 +65,7 @@ module Aws::TranscribeStreamingService
|
|
61
65
|
class BadRequestException < Struct.new(
|
62
66
|
:message,
|
63
67
|
:event_type)
|
68
|
+
SENSITIVE = []
|
64
69
|
include Aws::Structure
|
65
70
|
end
|
66
71
|
|
@@ -75,6 +80,7 @@ module Aws::TranscribeStreamingService
|
|
75
80
|
class ConflictException < Struct.new(
|
76
81
|
:message,
|
77
82
|
:event_type)
|
83
|
+
SENSITIVE = []
|
78
84
|
include Aws::Structure
|
79
85
|
end
|
80
86
|
|
@@ -89,6 +95,7 @@ module Aws::TranscribeStreamingService
|
|
89
95
|
class InternalFailureException < Struct.new(
|
90
96
|
:message,
|
91
97
|
:event_type)
|
98
|
+
SENSITIVE = []
|
92
99
|
include Aws::Structure
|
93
100
|
end
|
94
101
|
|
@@ -114,13 +121,21 @@ module Aws::TranscribeStreamingService
|
|
114
121
|
# The word or punctuation that was recognized in the input audio.
|
115
122
|
# @return [String]
|
116
123
|
#
|
124
|
+
# @!attribute [rw] vocabulary_filter_match
|
125
|
+
# Indicates whether a word in the item matches a word in the
|
126
|
+
# vocabulary filter you've chosen for your real-time stream. If
|
127
|
+
# `true` then a word in the item matches your vocabulary filter.
|
128
|
+
# @return [Boolean]
|
129
|
+
#
|
117
130
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
|
118
131
|
#
|
119
132
|
class Item < Struct.new(
|
120
133
|
:start_time,
|
121
134
|
:end_time,
|
122
135
|
:type,
|
123
|
-
:content
|
136
|
+
:content,
|
137
|
+
:vocabulary_filter_match)
|
138
|
+
SENSITIVE = []
|
124
139
|
include Aws::Structure
|
125
140
|
end
|
126
141
|
|
@@ -138,6 +153,7 @@ module Aws::TranscribeStreamingService
|
|
138
153
|
class LimitExceededException < Struct.new(
|
139
154
|
:message,
|
140
155
|
:event_type)
|
156
|
+
SENSITIVE = []
|
141
157
|
include Aws::Structure
|
142
158
|
end
|
143
159
|
|
@@ -181,6 +197,7 @@ module Aws::TranscribeStreamingService
|
|
181
197
|
:end_time,
|
182
198
|
:is_partial,
|
183
199
|
:alternatives)
|
200
|
+
SENSITIVE = []
|
184
201
|
include Aws::Structure
|
185
202
|
end
|
186
203
|
|
@@ -194,6 +211,7 @@ module Aws::TranscribeStreamingService
|
|
194
211
|
class ServiceUnavailableException < Struct.new(
|
195
212
|
:message,
|
196
213
|
:event_type)
|
214
|
+
SENSITIVE = []
|
197
215
|
include Aws::Structure
|
198
216
|
end
|
199
217
|
|
@@ -207,6 +225,8 @@ module Aws::TranscribeStreamingService
|
|
207
225
|
# vocabulary_name: "VocabularyName",
|
208
226
|
# session_id: "SessionId",
|
209
227
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
228
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
229
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
210
230
|
# }
|
211
231
|
#
|
212
232
|
# @!attribute [rw] language_code
|
@@ -240,6 +260,21 @@ module Aws::TranscribeStreamingService
|
|
240
260
|
# HTTP2 data frame.
|
241
261
|
# @return [Types::AudioStream]
|
242
262
|
#
|
263
|
+
# @!attribute [rw] vocabulary_filter_name
|
264
|
+
# The name of the vocabulary filter you've created that is unique to
|
265
|
+
# your AWS accountf. Provide the name in this field to successfully
|
266
|
+
# use it in a stream.
|
267
|
+
# @return [String]
|
268
|
+
#
|
269
|
+
# @!attribute [rw] vocabulary_filter_method
|
270
|
+
# The manner in which you use your vocabulary filter to filter words
|
271
|
+
# in your transcript. `Remove` removes filtered words from your
|
272
|
+
# transcription results. `Mask` masks those words with a `***` in your
|
273
|
+
# transcription results. `Tag` keeps the filtered words in your
|
274
|
+
# transcription results and tags them. The tag appears as
|
275
|
+
# `VocabularyFilterMatch` equal to `True`
|
276
|
+
# @return [String]
|
277
|
+
#
|
243
278
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
244
279
|
#
|
245
280
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -248,7 +283,10 @@ module Aws::TranscribeStreamingService
|
|
248
283
|
:media_encoding,
|
249
284
|
:vocabulary_name,
|
250
285
|
:session_id,
|
251
|
-
:audio_stream
|
286
|
+
:audio_stream,
|
287
|
+
:vocabulary_filter_name,
|
288
|
+
:vocabulary_filter_method)
|
289
|
+
SENSITIVE = []
|
252
290
|
include Aws::Structure
|
253
291
|
end
|
254
292
|
|
@@ -270,7 +308,7 @@ module Aws::TranscribeStreamingService
|
|
270
308
|
# @return [String]
|
271
309
|
#
|
272
310
|
# @!attribute [rw] vocabulary_name
|
273
|
-
# The name of the vocabulary used when processing the
|
311
|
+
# The name of the vocabulary used when processing the stream.
|
274
312
|
# @return [String]
|
275
313
|
#
|
276
314
|
# @!attribute [rw] session_id
|
@@ -282,6 +320,14 @@ module Aws::TranscribeStreamingService
|
|
282
320
|
# to your application.
|
283
321
|
# @return [Types::TranscriptResultStream]
|
284
322
|
#
|
323
|
+
# @!attribute [rw] vocabulary_filter_name
|
324
|
+
# The name of the vocabulary filter used in your real-time stream.
|
325
|
+
# @return [String]
|
326
|
+
#
|
327
|
+
# @!attribute [rw] vocabulary_filter_method
|
328
|
+
# The vocabulary filtering method used in the real-time stream.
|
329
|
+
# @return [String]
|
330
|
+
#
|
285
331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
286
332
|
#
|
287
333
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -291,7 +337,10 @@ module Aws::TranscribeStreamingService
|
|
291
337
|
:media_encoding,
|
292
338
|
:vocabulary_name,
|
293
339
|
:session_id,
|
294
|
-
:transcript_result_stream
|
340
|
+
:transcript_result_stream,
|
341
|
+
:vocabulary_filter_name,
|
342
|
+
:vocabulary_filter_method)
|
343
|
+
SENSITIVE = []
|
295
344
|
include Aws::Structure
|
296
345
|
end
|
297
346
|
|
@@ -306,6 +355,7 @@ module Aws::TranscribeStreamingService
|
|
306
355
|
#
|
307
356
|
class Transcript < Struct.new(
|
308
357
|
:results)
|
358
|
+
SENSITIVE = []
|
309
359
|
include Aws::Structure
|
310
360
|
end
|
311
361
|
|
@@ -322,6 +372,7 @@ module Aws::TranscribeStreamingService
|
|
322
372
|
class TranscriptEvent < Struct.new(
|
323
373
|
:transcript,
|
324
374
|
:event_type)
|
375
|
+
SENSITIVE = []
|
325
376
|
include Aws::Structure
|
326
377
|
end
|
327
378
|
|
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.17.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-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|