aws-sdk-transcribestreamingservice 1.13.0 → 1.18.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 +3 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +35 -3
- data/lib/aws-sdk-transcribestreamingservice/client.rb +7 -3
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +12 -0
- data/lib/aws-sdk-transcribestreamingservice/errors.rb +2 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +8 -1
- data/lib/aws-sdk-transcribestreamingservice/resource.rb +2 -0
- data/lib/aws-sdk-transcribestreamingservice/types.rb +75 -5
- 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: e3b892780a1b12c2874dcb899f6bcf4c6708a911ae19e7d5e7cd3175e63a2b8a
|
4
|
+
data.tar.gz: 42907f747be112c6c74b9332a1aecd6d932af2c4c57411cfe916b02f6818b51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec75dbefad6aaac5e8ac2d2a6856a42c7ec8d2670f58bfff906b7f818d346904e9fa82b2442c59e643e254d77f2a6f5bcccbb2034308a6100d3b7ea0d3e22a49
|
7
|
+
data.tar.gz: 7f393917b5c18ac237be5748a0646e20b6c5382cabfa2a112df79082588f4534afc85fe93486019704a5ebe85b7969d4d4a65b1d4ff957da7c579893b98942cb
|
@@ -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.18.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)
|
@@ -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 a valid HTTP(S) URI.
|
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.
|
@@ -240,7 +244,7 @@ module Aws::TranscribeStreamingService
|
|
240
244
|
# 8000 Hz for low quality audio and 16000 Hz for high quality audio.
|
241
245
|
#
|
242
246
|
# @option params [required, String] :media_encoding
|
243
|
-
# The encoding used for the input audio.
|
247
|
+
# The encoding used for the input audio. `pcm` is the only valid value.
|
244
248
|
#
|
245
249
|
# @option params [String] :vocabulary_name
|
246
250
|
# The name of the vocabulary to use when processing the transcription
|
@@ -252,6 +256,22 @@ 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 account. 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
|
+
#
|
272
|
+
# @option params [Boolean] :show_speaker_label
|
273
|
+
# When `true`, enables speaker identification in your real-time stream.
|
274
|
+
#
|
255
275
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
256
276
|
#
|
257
277
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -261,6 +281,9 @@ module Aws::TranscribeStreamingService
|
|
261
281
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_name #vocabulary_name} => String
|
262
282
|
# * {Types::StartStreamTranscriptionResponse#session_id #session_id} => String
|
263
283
|
# * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
|
284
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
285
|
+
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
|
286
|
+
# * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
|
264
287
|
#
|
265
288
|
# @example Bi-directional EventStream Operation Example
|
266
289
|
#
|
@@ -363,6 +386,9 @@ module Aws::TranscribeStreamingService
|
|
363
386
|
# vocabulary_name: "VocabularyName",
|
364
387
|
# session_id: "SessionId",
|
365
388
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
389
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
390
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
391
|
+
# show_speaker_label: false,
|
366
392
|
# })
|
367
393
|
# # => Seahorse::Client::AsyncResponse
|
368
394
|
# async_resp.wait
|
@@ -394,6 +420,8 @@ module Aws::TranscribeStreamingService
|
|
394
420
|
# event.transcript.results[0].alternatives[0].items[0].end_time #=> Float
|
395
421
|
# event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
|
396
422
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
423
|
+
# event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
|
424
|
+
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
397
425
|
#
|
398
426
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
399
427
|
# event.message #=> String
|
@@ -410,6 +438,10 @@ module Aws::TranscribeStreamingService
|
|
410
438
|
# For :service_unavailable_exception event available at #on_service_unavailable_exception_event callback and response eventstream enumerator:
|
411
439
|
# event.message #=> String
|
412
440
|
#
|
441
|
+
# resp.vocabulary_filter_name #=> String
|
442
|
+
# resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
|
443
|
+
# resp.show_speaker_label #=> Boolean
|
444
|
+
#
|
413
445
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
414
446
|
#
|
415
447
|
# @overload start_stream_transcription(params = {})
|
@@ -453,7 +485,7 @@ module Aws::TranscribeStreamingService
|
|
453
485
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
454
486
|
config: config)
|
455
487
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
456
|
-
context[:gem_version] = '1.
|
488
|
+
context[:gem_version] = '1.18.0'
|
457
489
|
Seahorse::Client::Request.new(handlers, context)
|
458
490
|
end
|
459
491
|
|
@@ -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)
|
@@ -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 a valid HTTP(S) URI.
|
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.18.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,8 @@ 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"))
|
74
|
+
Item.add_member(:speaker, Shapes::ShapeRef.new(shape: String, location_name: "Speaker"))
|
69
75
|
Item.struct_class = Types::Item
|
70
76
|
|
71
77
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
@@ -91,6 +97,9 @@ module Aws::TranscribeStreamingService
|
|
91
97
|
StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
92
98
|
StartStreamTranscriptionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
93
99
|
StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
100
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
101
|
+
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
102
|
+
StartStreamTranscriptionRequest.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
|
94
103
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
95
104
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
96
105
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -102,6 +111,9 @@ module Aws::TranscribeStreamingService
|
|
102
111
|
StartStreamTranscriptionResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
103
112
|
StartStreamTranscriptionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location: "header", location_name: "x-amzn-transcribe-session-id"))
|
104
113
|
StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
114
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
115
|
+
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
116
|
+
StartStreamTranscriptionResponse.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
|
105
117
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
106
118
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
107
119
|
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:
|
@@ -13,7 +15,7 @@ module Aws::TranscribeStreamingService
|
|
13
15
|
@event_emitter = Aws::EventEmitter.new
|
14
16
|
end
|
15
17
|
|
16
|
-
# @option params [String,
|
18
|
+
# @option params [String, StringIO, File] :audio_chunk
|
17
19
|
# An audio blob that contains the next part of the audio that you want
|
18
20
|
# to transcribe.
|
19
21
|
#
|
@@ -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,27 @@ 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
|
+
#
|
130
|
+
# @!attribute [rw] speaker
|
131
|
+
# If speaker identification is enabled, shows the speakers identified
|
132
|
+
# in the real-time stream.
|
133
|
+
# @return [String]
|
134
|
+
#
|
117
135
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
|
118
136
|
#
|
119
137
|
class Item < Struct.new(
|
120
138
|
:start_time,
|
121
139
|
:end_time,
|
122
140
|
:type,
|
123
|
-
:content
|
141
|
+
:content,
|
142
|
+
:vocabulary_filter_match,
|
143
|
+
:speaker)
|
144
|
+
SENSITIVE = []
|
124
145
|
include Aws::Structure
|
125
146
|
end
|
126
147
|
|
@@ -138,6 +159,7 @@ module Aws::TranscribeStreamingService
|
|
138
159
|
class LimitExceededException < Struct.new(
|
139
160
|
:message,
|
140
161
|
:event_type)
|
162
|
+
SENSITIVE = []
|
141
163
|
include Aws::Structure
|
142
164
|
end
|
143
165
|
|
@@ -181,6 +203,7 @@ module Aws::TranscribeStreamingService
|
|
181
203
|
:end_time,
|
182
204
|
:is_partial,
|
183
205
|
:alternatives)
|
206
|
+
SENSITIVE = []
|
184
207
|
include Aws::Structure
|
185
208
|
end
|
186
209
|
|
@@ -194,6 +217,7 @@ module Aws::TranscribeStreamingService
|
|
194
217
|
class ServiceUnavailableException < Struct.new(
|
195
218
|
:message,
|
196
219
|
:event_type)
|
220
|
+
SENSITIVE = []
|
197
221
|
include Aws::Structure
|
198
222
|
end
|
199
223
|
|
@@ -207,6 +231,9 @@ module Aws::TranscribeStreamingService
|
|
207
231
|
# vocabulary_name: "VocabularyName",
|
208
232
|
# session_id: "SessionId",
|
209
233
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
234
|
+
# vocabulary_filter_name: "VocabularyFilterName",
|
235
|
+
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
236
|
+
# show_speaker_label: false,
|
210
237
|
# }
|
211
238
|
#
|
212
239
|
# @!attribute [rw] language_code
|
@@ -220,7 +247,8 @@ module Aws::TranscribeStreamingService
|
|
220
247
|
# @return [Integer]
|
221
248
|
#
|
222
249
|
# @!attribute [rw] media_encoding
|
223
|
-
# The encoding used for the input audio.
|
250
|
+
# The encoding used for the input audio. `pcm` is the only valid
|
251
|
+
# value.
|
224
252
|
# @return [String]
|
225
253
|
#
|
226
254
|
# @!attribute [rw] vocabulary_name
|
@@ -240,6 +268,26 @@ module Aws::TranscribeStreamingService
|
|
240
268
|
# HTTP2 data frame.
|
241
269
|
# @return [Types::AudioStream]
|
242
270
|
#
|
271
|
+
# @!attribute [rw] vocabulary_filter_name
|
272
|
+
# The name of the vocabulary filter you've created that is unique to
|
273
|
+
# your AWS account. Provide the name in this field to successfully use
|
274
|
+
# it in a stream.
|
275
|
+
# @return [String]
|
276
|
+
#
|
277
|
+
# @!attribute [rw] vocabulary_filter_method
|
278
|
+
# The manner in which you use your vocabulary filter to filter words
|
279
|
+
# in your transcript. `Remove` removes filtered words from your
|
280
|
+
# transcription results. `Mask` masks those words with a `***` in your
|
281
|
+
# transcription results. `Tag` keeps the filtered words in your
|
282
|
+
# transcription results and tags them. The tag appears as
|
283
|
+
# `VocabularyFilterMatch` equal to `True`
|
284
|
+
# @return [String]
|
285
|
+
#
|
286
|
+
# @!attribute [rw] show_speaker_label
|
287
|
+
# When `true`, enables speaker identification in your real-time
|
288
|
+
# stream.
|
289
|
+
# @return [Boolean]
|
290
|
+
#
|
243
291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
244
292
|
#
|
245
293
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -248,7 +296,11 @@ module Aws::TranscribeStreamingService
|
|
248
296
|
:media_encoding,
|
249
297
|
:vocabulary_name,
|
250
298
|
:session_id,
|
251
|
-
:audio_stream
|
299
|
+
:audio_stream,
|
300
|
+
:vocabulary_filter_name,
|
301
|
+
:vocabulary_filter_method,
|
302
|
+
:show_speaker_label)
|
303
|
+
SENSITIVE = []
|
252
304
|
include Aws::Structure
|
253
305
|
end
|
254
306
|
|
@@ -270,7 +322,7 @@ module Aws::TranscribeStreamingService
|
|
270
322
|
# @return [String]
|
271
323
|
#
|
272
324
|
# @!attribute [rw] vocabulary_name
|
273
|
-
# The name of the vocabulary used when processing the
|
325
|
+
# The name of the vocabulary used when processing the stream.
|
274
326
|
# @return [String]
|
275
327
|
#
|
276
328
|
# @!attribute [rw] session_id
|
@@ -282,6 +334,18 @@ module Aws::TranscribeStreamingService
|
|
282
334
|
# to your application.
|
283
335
|
# @return [Types::TranscriptResultStream]
|
284
336
|
#
|
337
|
+
# @!attribute [rw] vocabulary_filter_name
|
338
|
+
# The name of the vocabulary filter used in your real-time stream.
|
339
|
+
# @return [String]
|
340
|
+
#
|
341
|
+
# @!attribute [rw] vocabulary_filter_method
|
342
|
+
# The vocabulary filtering method used in the real-time stream.
|
343
|
+
# @return [String]
|
344
|
+
#
|
345
|
+
# @!attribute [rw] show_speaker_label
|
346
|
+
# Shows whether speaker identification was enabled in the stream.
|
347
|
+
# @return [Boolean]
|
348
|
+
#
|
285
349
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
286
350
|
#
|
287
351
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -291,7 +355,11 @@ module Aws::TranscribeStreamingService
|
|
291
355
|
:media_encoding,
|
292
356
|
:vocabulary_name,
|
293
357
|
:session_id,
|
294
|
-
:transcript_result_stream
|
358
|
+
:transcript_result_stream,
|
359
|
+
:vocabulary_filter_name,
|
360
|
+
:vocabulary_filter_method,
|
361
|
+
:show_speaker_label)
|
362
|
+
SENSITIVE = []
|
295
363
|
include Aws::Structure
|
296
364
|
end
|
297
365
|
|
@@ -306,6 +374,7 @@ module Aws::TranscribeStreamingService
|
|
306
374
|
#
|
307
375
|
class Transcript < Struct.new(
|
308
376
|
:results)
|
377
|
+
SENSITIVE = []
|
309
378
|
include Aws::Structure
|
310
379
|
end
|
311
380
|
|
@@ -322,6 +391,7 @@ module Aws::TranscribeStreamingService
|
|
322
391
|
class TranscriptEvent < Struct.new(
|
323
392
|
:transcript,
|
324
393
|
:event_type)
|
394
|
+
SENSITIVE = []
|
325
395
|
include Aws::Structure
|
326
396
|
end
|
327
397
|
|
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.18.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-08-19 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
|