aws-sdk-transcribestreamingservice 1.15.0 → 1.20.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 +5 -2
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +37 -11
- data/lib/aws-sdk-transcribestreamingservice/client.rb +28 -9
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +5 -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 +40 -6
- 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: 5e9a6ef9fb878069b18b366b7ad948afe0a8830ddffd930fd614354fa3184c7f
|
4
|
+
data.tar.gz: 546423c7c0c10e0208dab08732d6e3035c5ec73716635b1602ecdcb6be7bb9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d7777faf2918e2de1251ec543dfed8d5d64fc72a6998b10e012eb19e29f0139db76966faff177edc7a65a39d2d8bd14df9f0577867e5427624e3036aed1dc2
|
7
|
+
data.tar.gz: 74803e9db449ab82637dbb51b762d1c6318c45d315ea51c0d81d64da23eecc35e026e6271eb785c4b34856c3c0b4928791abec41555ef70f5f4de750d871f75d
|
@@ -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:
|
@@ -5,6 +7,7 @@
|
|
5
7
|
#
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
10
|
+
|
8
11
|
require 'aws-sdk-core'
|
9
12
|
require 'aws-sigv4'
|
10
13
|
|
@@ -44,9 +47,9 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
|
|
44
47
|
#
|
45
48
|
# See {Errors} for more information.
|
46
49
|
#
|
47
|
-
#
|
50
|
+
# @!group service
|
48
51
|
module Aws::TranscribeStreamingService
|
49
52
|
|
50
|
-
GEM_VERSION = '1.
|
53
|
+
GEM_VERSION = '1.20.0'
|
51
54
|
|
52
55
|
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)
|
@@ -64,13 +68,28 @@ module Aws::TranscribeStreamingService
|
|
64
68
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
65
69
|
# credentials.
|
66
70
|
#
|
71
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
72
|
+
# shared file, such as `~/.aws/config`.
|
73
|
+
#
|
74
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
75
|
+
#
|
76
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
77
|
+
# assume a role after providing credentials via the web.
|
78
|
+
#
|
79
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
80
|
+
# access token generated from `aws login`.
|
81
|
+
#
|
82
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
83
|
+
# process that outputs to stdout.
|
84
|
+
#
|
67
85
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
68
86
|
# from an EC2 IMDS on an EC2 instance.
|
69
87
|
#
|
70
|
-
# * `Aws::
|
71
|
-
#
|
88
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
89
|
+
# instances running in ECS.
|
72
90
|
#
|
73
|
-
# * `Aws::
|
91
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
92
|
+
# from the Cognito Identity service.
|
74
93
|
#
|
75
94
|
# When `:credentials` are not configured directly, the following
|
76
95
|
# locations will be searched for credentials:
|
@@ -80,10 +99,10 @@ module Aws::TranscribeStreamingService
|
|
80
99
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
81
100
|
# * `~/.aws/credentials`
|
82
101
|
# * `~/.aws/config`
|
83
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
84
|
-
# very aggressive. Construct and pass an instance of
|
85
|
-
# `Aws::InstanceProfileCredentails`
|
86
|
-
# timeouts.
|
102
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
103
|
+
# are very aggressive. Construct and pass an instance of
|
104
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
105
|
+
# enable retries and extended timeouts.
|
87
106
|
#
|
88
107
|
# @option options [required, String] :region
|
89
108
|
# The AWS region to connect to. The configured `:region` is
|
@@ -116,7 +135,7 @@ module Aws::TranscribeStreamingService
|
|
116
135
|
# @option options [String] :endpoint
|
117
136
|
# The client endpoint is normally constructed from the `:region`
|
118
137
|
# option. You should only configure an `:endpoint` when connecting
|
119
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
138
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
120
139
|
#
|
121
140
|
# @option options [Proc] :event_stream_handler
|
122
141
|
# 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 +259,7 @@ module Aws::TranscribeStreamingService
|
|
240
259
|
# 8000 Hz for low quality audio and 16000 Hz for high quality audio.
|
241
260
|
#
|
242
261
|
# @option params [required, String] :media_encoding
|
243
|
-
# The encoding used for the input audio.
|
262
|
+
# The encoding used for the input audio. `pcm` is the only valid value.
|
244
263
|
#
|
245
264
|
# @option params [String] :vocabulary_name
|
246
265
|
# The name of the vocabulary to use when processing the transcription
|
@@ -254,7 +273,7 @@ module Aws::TranscribeStreamingService
|
|
254
273
|
#
|
255
274
|
# @option params [String] :vocabulary_filter_name
|
256
275
|
# The name of the vocabulary filter you've created that is unique to
|
257
|
-
# your AWS
|
276
|
+
# your AWS account. Provide the name in this field to successfully use
|
258
277
|
# it in a stream.
|
259
278
|
#
|
260
279
|
# @option params [String] :vocabulary_filter_method
|
@@ -265,6 +284,9 @@ module Aws::TranscribeStreamingService
|
|
265
284
|
# transcription results and tags them. The tag appears as
|
266
285
|
# `VocabularyFilterMatch` equal to `True`
|
267
286
|
#
|
287
|
+
# @option params [Boolean] :show_speaker_label
|
288
|
+
# When `true`, enables speaker identification in your real-time stream.
|
289
|
+
#
|
268
290
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
269
291
|
#
|
270
292
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -276,6 +298,7 @@ module Aws::TranscribeStreamingService
|
|
276
298
|
# * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
|
277
299
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
278
300
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
|
301
|
+
# * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
|
279
302
|
#
|
280
303
|
# @example Bi-directional EventStream Operation Example
|
281
304
|
#
|
@@ -380,6 +403,7 @@ module Aws::TranscribeStreamingService
|
|
380
403
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
381
404
|
# vocabulary_filter_name: "VocabularyFilterName",
|
382
405
|
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
406
|
+
# show_speaker_label: false,
|
383
407
|
# })
|
384
408
|
# # => Seahorse::Client::AsyncResponse
|
385
409
|
# async_resp.wait
|
@@ -412,6 +436,7 @@ module Aws::TranscribeStreamingService
|
|
412
436
|
# event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
|
413
437
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
414
438
|
# event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
|
439
|
+
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
415
440
|
#
|
416
441
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
417
442
|
# event.message #=> String
|
@@ -430,6 +455,7 @@ module Aws::TranscribeStreamingService
|
|
430
455
|
#
|
431
456
|
# resp.vocabulary_filter_name #=> String
|
432
457
|
# resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
|
458
|
+
# resp.show_speaker_label #=> Boolean
|
433
459
|
#
|
434
460
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
435
461
|
#
|
@@ -474,7 +500,7 @@ module Aws::TranscribeStreamingService
|
|
474
500
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
475
501
|
config: config)
|
476
502
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
477
|
-
context[:gem_version] = '1.
|
503
|
+
context[:gem_version] = '1.20.0'
|
478
504
|
Seahorse::Client::Request.new(handlers, context)
|
479
505
|
end
|
480
506
|
|
@@ -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)
|
@@ -83,13 +87,28 @@ module Aws::TranscribeStreamingService
|
|
83
87
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
84
88
|
# credentials.
|
85
89
|
#
|
90
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
91
|
+
# shared file, such as `~/.aws/config`.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
94
|
+
#
|
95
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
96
|
+
# assume a role after providing credentials via the web.
|
97
|
+
#
|
98
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
99
|
+
# access token generated from `aws login`.
|
100
|
+
#
|
101
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
102
|
+
# process that outputs to stdout.
|
103
|
+
#
|
86
104
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
87
105
|
# from an EC2 IMDS on an EC2 instance.
|
88
106
|
#
|
89
|
-
# * `Aws::
|
90
|
-
#
|
107
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
108
|
+
# instances running in ECS.
|
91
109
|
#
|
92
|
-
# * `Aws::
|
110
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
111
|
+
# from the Cognito Identity service.
|
93
112
|
#
|
94
113
|
# When `:credentials` are not configured directly, the following
|
95
114
|
# locations will be searched for credentials:
|
@@ -99,10 +118,10 @@ module Aws::TranscribeStreamingService
|
|
99
118
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
100
119
|
# * `~/.aws/credentials`
|
101
120
|
# * `~/.aws/config`
|
102
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
103
|
-
# very aggressive. Construct and pass an instance of
|
104
|
-
# `Aws::InstanceProfileCredentails`
|
105
|
-
# timeouts.
|
121
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
122
|
+
# are very aggressive. Construct and pass an instance of
|
123
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
124
|
+
# enable retries and extended timeouts.
|
106
125
|
#
|
107
126
|
# @option options [required, String] :region
|
108
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -163,7 +182,7 @@ module Aws::TranscribeStreamingService
|
|
163
182
|
# @option options [String] :endpoint
|
164
183
|
# The client endpoint is normally constructed from the `:region`
|
165
184
|
# option. You should only configure an `:endpoint` when connecting
|
166
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
185
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
167
186
|
#
|
168
187
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
169
188
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -332,7 +351,7 @@ module Aws::TranscribeStreamingService
|
|
332
351
|
params: params,
|
333
352
|
config: config)
|
334
353
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
335
|
-
context[:gem_version] = '1.
|
354
|
+
context[:gem_version] = '1.20.0'
|
336
355
|
Seahorse::Client::Request.new(handlers, context)
|
337
356
|
end
|
338
357
|
|
@@ -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,7 @@ module Aws::TranscribeStreamingService
|
|
69
71
|
Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
|
70
72
|
Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
71
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"))
|
72
75
|
Item.struct_class = Types::Item
|
73
76
|
|
74
77
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
@@ -96,6 +99,7 @@ module Aws::TranscribeStreamingService
|
|
96
99
|
StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
97
100
|
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
98
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"))
|
99
103
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
100
104
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
101
105
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -109,6 +113,7 @@ module Aws::TranscribeStreamingService
|
|
109
113
|
StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
110
114
|
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
111
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"))
|
112
117
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
113
118
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
114
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
|
|
@@ -120,6 +127,11 @@ module Aws::TranscribeStreamingService
|
|
120
127
|
# `true` then a word in the item matches your vocabulary filter.
|
121
128
|
# @return [Boolean]
|
122
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
|
+
#
|
123
135
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
|
124
136
|
#
|
125
137
|
class Item < Struct.new(
|
@@ -127,7 +139,9 @@ module Aws::TranscribeStreamingService
|
|
127
139
|
:end_time,
|
128
140
|
:type,
|
129
141
|
:content,
|
130
|
-
:vocabulary_filter_match
|
142
|
+
:vocabulary_filter_match,
|
143
|
+
:speaker)
|
144
|
+
SENSITIVE = []
|
131
145
|
include Aws::Structure
|
132
146
|
end
|
133
147
|
|
@@ -145,6 +159,7 @@ module Aws::TranscribeStreamingService
|
|
145
159
|
class LimitExceededException < Struct.new(
|
146
160
|
:message,
|
147
161
|
:event_type)
|
162
|
+
SENSITIVE = []
|
148
163
|
include Aws::Structure
|
149
164
|
end
|
150
165
|
|
@@ -188,6 +203,7 @@ module Aws::TranscribeStreamingService
|
|
188
203
|
:end_time,
|
189
204
|
:is_partial,
|
190
205
|
:alternatives)
|
206
|
+
SENSITIVE = []
|
191
207
|
include Aws::Structure
|
192
208
|
end
|
193
209
|
|
@@ -201,6 +217,7 @@ module Aws::TranscribeStreamingService
|
|
201
217
|
class ServiceUnavailableException < Struct.new(
|
202
218
|
:message,
|
203
219
|
:event_type)
|
220
|
+
SENSITIVE = []
|
204
221
|
include Aws::Structure
|
205
222
|
end
|
206
223
|
|
@@ -216,6 +233,7 @@ module Aws::TranscribeStreamingService
|
|
216
233
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
217
234
|
# vocabulary_filter_name: "VocabularyFilterName",
|
218
235
|
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
236
|
+
# show_speaker_label: false,
|
219
237
|
# }
|
220
238
|
#
|
221
239
|
# @!attribute [rw] language_code
|
@@ -229,7 +247,8 @@ module Aws::TranscribeStreamingService
|
|
229
247
|
# @return [Integer]
|
230
248
|
#
|
231
249
|
# @!attribute [rw] media_encoding
|
232
|
-
# The encoding used for the input audio.
|
250
|
+
# The encoding used for the input audio. `pcm` is the only valid
|
251
|
+
# value.
|
233
252
|
# @return [String]
|
234
253
|
#
|
235
254
|
# @!attribute [rw] vocabulary_name
|
@@ -251,8 +270,8 @@ module Aws::TranscribeStreamingService
|
|
251
270
|
#
|
252
271
|
# @!attribute [rw] vocabulary_filter_name
|
253
272
|
# The name of the vocabulary filter you've created that is unique to
|
254
|
-
# your AWS
|
255
|
-
#
|
273
|
+
# your AWS account. Provide the name in this field to successfully use
|
274
|
+
# it in a stream.
|
256
275
|
# @return [String]
|
257
276
|
#
|
258
277
|
# @!attribute [rw] vocabulary_filter_method
|
@@ -264,6 +283,11 @@ module Aws::TranscribeStreamingService
|
|
264
283
|
# `VocabularyFilterMatch` equal to `True`
|
265
284
|
# @return [String]
|
266
285
|
#
|
286
|
+
# @!attribute [rw] show_speaker_label
|
287
|
+
# When `true`, enables speaker identification in your real-time
|
288
|
+
# stream.
|
289
|
+
# @return [Boolean]
|
290
|
+
#
|
267
291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
268
292
|
#
|
269
293
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -274,7 +298,9 @@ module Aws::TranscribeStreamingService
|
|
274
298
|
:session_id,
|
275
299
|
:audio_stream,
|
276
300
|
:vocabulary_filter_name,
|
277
|
-
:vocabulary_filter_method
|
301
|
+
:vocabulary_filter_method,
|
302
|
+
:show_speaker_label)
|
303
|
+
SENSITIVE = []
|
278
304
|
include Aws::Structure
|
279
305
|
end
|
280
306
|
|
@@ -316,6 +342,10 @@ module Aws::TranscribeStreamingService
|
|
316
342
|
# The vocabulary filtering method used in the real-time stream.
|
317
343
|
# @return [String]
|
318
344
|
#
|
345
|
+
# @!attribute [rw] show_speaker_label
|
346
|
+
# Shows whether speaker identification was enabled in the stream.
|
347
|
+
# @return [Boolean]
|
348
|
+
#
|
319
349
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
320
350
|
#
|
321
351
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -327,7 +357,9 @@ module Aws::TranscribeStreamingService
|
|
327
357
|
:session_id,
|
328
358
|
:transcript_result_stream,
|
329
359
|
:vocabulary_filter_name,
|
330
|
-
:vocabulary_filter_method
|
360
|
+
:vocabulary_filter_method,
|
361
|
+
:show_speaker_label)
|
362
|
+
SENSITIVE = []
|
331
363
|
include Aws::Structure
|
332
364
|
end
|
333
365
|
|
@@ -342,6 +374,7 @@ module Aws::TranscribeStreamingService
|
|
342
374
|
#
|
343
375
|
class Transcript < Struct.new(
|
344
376
|
:results)
|
377
|
+
SENSITIVE = []
|
345
378
|
include Aws::Structure
|
346
379
|
end
|
347
380
|
|
@@ -358,6 +391,7 @@ module Aws::TranscribeStreamingService
|
|
358
391
|
class TranscriptEvent < Struct.new(
|
359
392
|
:transcript,
|
360
393
|
:event_type)
|
394
|
+
SENSITIVE = []
|
361
395
|
include Aws::Structure
|
362
396
|
end
|
363
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.20.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-09-15 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
|