aws-sdk-transcribestreamingservice 1.17.0 → 1.22.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 -2
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +54 -10
- data/lib/aws-sdk-transcribestreamingservice/client.rb +23 -8
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +9 -0
- data/lib/aws-sdk-transcribestreamingservice/event_streams.rb +1 -1
- data/lib/aws-sdk-transcribestreamingservice/types.rb +67 -7
- 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: afc152ab499948942e2947980f8c927df7ee5172a67282d7ca1de64e2af0853e
|
4
|
+
data.tar.gz: 2b45219cf52cb57701ef9624940ad09cbbcb877579d54d3d8ef9891c6cb53d73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaab83ad3e38e52fc413003415dfecc0af37b802a18e53126a3b4fa5517fbfdd74de5754ec44198b5b077275513b9a1141b04bd345e167fda5dcc212560b4d41
|
7
|
+
data.tar.gz: 93792c68b64f7a0b3f0711c25d387b9d18f7ff964e7e80a9de592a78df30ea8a89b8dd3e5e9113e550e947b1193d21801b728708f949cf51116a1047681abbe7
|
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -46,9 +47,9 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
|
|
46
47
|
#
|
47
48
|
# See {Errors} for more information.
|
48
49
|
#
|
49
|
-
#
|
50
|
+
# @!group service
|
50
51
|
module Aws::TranscribeStreamingService
|
51
52
|
|
52
|
-
GEM_VERSION = '1.
|
53
|
+
GEM_VERSION = '1.22.0'
|
53
54
|
|
54
55
|
end
|
@@ -68,13 +68,28 @@ module Aws::TranscribeStreamingService
|
|
68
68
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
69
69
|
# credentials.
|
70
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
|
+
#
|
71
85
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
72
86
|
# from an EC2 IMDS on an EC2 instance.
|
73
87
|
#
|
74
|
-
# * `Aws::
|
75
|
-
#
|
88
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
89
|
+
# instances running in ECS.
|
76
90
|
#
|
77
|
-
# * `Aws::
|
91
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
92
|
+
# from the Cognito Identity service.
|
78
93
|
#
|
79
94
|
# When `:credentials` are not configured directly, the following
|
80
95
|
# locations will be searched for credentials:
|
@@ -84,10 +99,10 @@ module Aws::TranscribeStreamingService
|
|
84
99
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
85
100
|
# * `~/.aws/credentials`
|
86
101
|
# * `~/.aws/config`
|
87
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
88
|
-
# very aggressive. Construct and pass an instance of
|
89
|
-
# `Aws::InstanceProfileCredentails`
|
90
|
-
# 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.
|
91
106
|
#
|
92
107
|
# @option options [required, String] :region
|
93
108
|
# The AWS region to connect to. The configured `:region` is
|
@@ -244,7 +259,7 @@ module Aws::TranscribeStreamingService
|
|
244
259
|
# 8000 Hz for low quality audio and 16000 Hz for high quality audio.
|
245
260
|
#
|
246
261
|
# @option params [required, String] :media_encoding
|
247
|
-
# The encoding used for the input audio.
|
262
|
+
# The encoding used for the input audio. `pcm` is the only valid value.
|
248
263
|
#
|
249
264
|
# @option params [String] :vocabulary_name
|
250
265
|
# The name of the vocabulary to use when processing the transcription
|
@@ -258,7 +273,7 @@ module Aws::TranscribeStreamingService
|
|
258
273
|
#
|
259
274
|
# @option params [String] :vocabulary_filter_name
|
260
275
|
# The name of the vocabulary filter you've created that is unique to
|
261
|
-
# your AWS
|
276
|
+
# your AWS account. Provide the name in this field to successfully use
|
262
277
|
# it in a stream.
|
263
278
|
#
|
264
279
|
# @option params [String] :vocabulary_filter_method
|
@@ -269,6 +284,24 @@ module Aws::TranscribeStreamingService
|
|
269
284
|
# transcription results and tags them. The tag appears as
|
270
285
|
# `VocabularyFilterMatch` equal to `True`
|
271
286
|
#
|
287
|
+
# @option params [Boolean] :show_speaker_label
|
288
|
+
# When `true`, enables speaker identification in your real-time stream.
|
289
|
+
#
|
290
|
+
# @option params [Boolean] :enable_channel_identification
|
291
|
+
# When `true`, instructs Amazon Transcribe to process each audio channel
|
292
|
+
# separately and then merge the transcription output of each channel
|
293
|
+
# into a single transcription.
|
294
|
+
#
|
295
|
+
# Amazon Transcribe also produces a transcription of each item. An item
|
296
|
+
# includes the start time, end time, and any alternative transcriptions.
|
297
|
+
#
|
298
|
+
# You can't set both `ShowSpeakerLabel` and
|
299
|
+
# `EnableChannelIdentification` in the same request. If you set both,
|
300
|
+
# your request returns a `BadRequestException`.
|
301
|
+
#
|
302
|
+
# @option params [Integer] :number_of_channels
|
303
|
+
# The number of channels that are in your audio stream.
|
304
|
+
#
|
272
305
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
273
306
|
#
|
274
307
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -280,6 +313,9 @@ module Aws::TranscribeStreamingService
|
|
280
313
|
# * {Types::StartStreamTranscriptionResponse#transcript_result_stream #transcript_result_stream} => Types::TranscriptResultStream
|
281
314
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_name #vocabulary_filter_name} => String
|
282
315
|
# * {Types::StartStreamTranscriptionResponse#vocabulary_filter_method #vocabulary_filter_method} => String
|
316
|
+
# * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
|
317
|
+
# * {Types::StartStreamTranscriptionResponse#enable_channel_identification #enable_channel_identification} => Boolean
|
318
|
+
# * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
|
283
319
|
#
|
284
320
|
# @example Bi-directional EventStream Operation Example
|
285
321
|
#
|
@@ -384,6 +420,9 @@ module Aws::TranscribeStreamingService
|
|
384
420
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
385
421
|
# vocabulary_filter_name: "VocabularyFilterName",
|
386
422
|
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
423
|
+
# show_speaker_label: false,
|
424
|
+
# enable_channel_identification: false,
|
425
|
+
# number_of_channels: 1,
|
387
426
|
# })
|
388
427
|
# # => Seahorse::Client::AsyncResponse
|
389
428
|
# async_resp.wait
|
@@ -416,6 +455,8 @@ module Aws::TranscribeStreamingService
|
|
416
455
|
# event.transcript.results[0].alternatives[0].items[0].type #=> String, one of "pronunciation", "punctuation"
|
417
456
|
# event.transcript.results[0].alternatives[0].items[0].content #=> String
|
418
457
|
# event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
|
458
|
+
# event.transcript.results[0].alternatives[0].items[0].speaker #=> String
|
459
|
+
# event.transcript.results[0].channel_id #=> String
|
419
460
|
#
|
420
461
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
421
462
|
# event.message #=> String
|
@@ -434,6 +475,9 @@ module Aws::TranscribeStreamingService
|
|
434
475
|
#
|
435
476
|
# resp.vocabulary_filter_name #=> String
|
436
477
|
# resp.vocabulary_filter_method #=> String, one of "remove", "mask", "tag"
|
478
|
+
# resp.show_speaker_label #=> Boolean
|
479
|
+
# resp.enable_channel_identification #=> Boolean
|
480
|
+
# resp.number_of_channels #=> Integer
|
437
481
|
#
|
438
482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
439
483
|
#
|
@@ -478,7 +522,7 @@ module Aws::TranscribeStreamingService
|
|
478
522
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
479
523
|
config: config)
|
480
524
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
481
|
-
context[:gem_version] = '1.
|
525
|
+
context[:gem_version] = '1.22.0'
|
482
526
|
Seahorse::Client::Request.new(handlers, context)
|
483
527
|
end
|
484
528
|
|
@@ -87,13 +87,28 @@ module Aws::TranscribeStreamingService
|
|
87
87
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
88
88
|
# credentials.
|
89
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
|
+
#
|
90
104
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
91
105
|
# from an EC2 IMDS on an EC2 instance.
|
92
106
|
#
|
93
|
-
# * `Aws::
|
94
|
-
#
|
107
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
108
|
+
# instances running in ECS.
|
95
109
|
#
|
96
|
-
# * `Aws::
|
110
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
111
|
+
# from the Cognito Identity service.
|
97
112
|
#
|
98
113
|
# When `:credentials` are not configured directly, the following
|
99
114
|
# locations will be searched for credentials:
|
@@ -103,10 +118,10 @@ module Aws::TranscribeStreamingService
|
|
103
118
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
104
119
|
# * `~/.aws/credentials`
|
105
120
|
# * `~/.aws/config`
|
106
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
107
|
-
# very aggressive. Construct and pass an instance of
|
108
|
-
# `Aws::InstanceProfileCredentails`
|
109
|
-
# 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.
|
110
125
|
#
|
111
126
|
# @option options [required, String] :region
|
112
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -336,7 +351,7 @@ module Aws::TranscribeStreamingService
|
|
336
351
|
params: params,
|
337
352
|
config: config)
|
338
353
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
339
|
-
context[:gem_version] = '1.
|
354
|
+
context[:gem_version] = '1.22.0'
|
340
355
|
Seahorse::Client::Request.new(handlers, context)
|
341
356
|
end
|
342
357
|
|
@@ -30,6 +30,7 @@ module Aws::TranscribeStreamingService
|
|
30
30
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
31
31
|
MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
|
32
32
|
MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
|
33
|
+
NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
|
33
34
|
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
34
35
|
Result = Shapes::StructureShape.new(name: 'Result')
|
35
36
|
ResultList = Shapes::ListShape.new(name: 'ResultList')
|
@@ -71,6 +72,7 @@ module Aws::TranscribeStreamingService
|
|
71
72
|
Item.add_member(:type, Shapes::ShapeRef.new(shape: ItemType, location_name: "Type"))
|
72
73
|
Item.add_member(:content, Shapes::ShapeRef.new(shape: String, location_name: "Content"))
|
73
74
|
Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
|
75
|
+
Item.add_member(:speaker, Shapes::ShapeRef.new(shape: String, location_name: "Speaker"))
|
74
76
|
Item.struct_class = Types::Item
|
75
77
|
|
76
78
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
@@ -83,6 +85,7 @@ module Aws::TranscribeStreamingService
|
|
83
85
|
Result.add_member(:end_time, Shapes::ShapeRef.new(shape: Double, location_name: "EndTime"))
|
84
86
|
Result.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
|
85
87
|
Result.add_member(:alternatives, Shapes::ShapeRef.new(shape: AlternativeList, location_name: "Alternatives"))
|
88
|
+
Result.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
|
86
89
|
Result.struct_class = Types::Result
|
87
90
|
|
88
91
|
ResultList.member = Shapes::ShapeRef.new(shape: Result)
|
@@ -98,6 +101,9 @@ module Aws::TranscribeStreamingService
|
|
98
101
|
StartStreamTranscriptionRequest.add_member(:audio_stream, Shapes::ShapeRef.new(shape: AudioStream, required: true, eventstream: true, location_name: "AudioStream"))
|
99
102
|
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
100
103
|
StartStreamTranscriptionRequest.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
104
|
+
StartStreamTranscriptionRequest.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
|
105
|
+
StartStreamTranscriptionRequest.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
|
106
|
+
StartStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
101
107
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
102
108
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
103
109
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -111,6 +117,9 @@ module Aws::TranscribeStreamingService
|
|
111
117
|
StartStreamTranscriptionResponse.add_member(:transcript_result_stream, Shapes::ShapeRef.new(shape: TranscriptResultStream, eventstream: true, location_name: "TranscriptResultStream"))
|
112
118
|
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_name, Shapes::ShapeRef.new(shape: VocabularyFilterName, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-name"))
|
113
119
|
StartStreamTranscriptionResponse.add_member(:vocabulary_filter_method, Shapes::ShapeRef.new(shape: VocabularyFilterMethod, location: "header", location_name: "x-amzn-transcribe-vocabulary-filter-method"))
|
120
|
+
StartStreamTranscriptionResponse.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
|
121
|
+
StartStreamTranscriptionResponse.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
|
122
|
+
StartStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
|
114
123
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
115
124
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
116
125
|
StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -15,7 +15,7 @@ module Aws::TranscribeStreamingService
|
|
15
15
|
@event_emitter = Aws::EventEmitter.new
|
16
16
|
end
|
17
17
|
|
18
|
-
# @option params [String,
|
18
|
+
# @option params [String, StringIO, File] :audio_chunk
|
19
19
|
# An audio blob that contains the next part of the audio that you want
|
20
20
|
# to transcribe.
|
21
21
|
#
|
@@ -127,6 +127,11 @@ module Aws::TranscribeStreamingService
|
|
127
127
|
# `true` then a word in the item matches your vocabulary filter.
|
128
128
|
# @return [Boolean]
|
129
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
|
+
#
|
130
135
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
|
131
136
|
#
|
132
137
|
class Item < Struct.new(
|
@@ -134,7 +139,8 @@ module Aws::TranscribeStreamingService
|
|
134
139
|
:end_time,
|
135
140
|
:type,
|
136
141
|
:content,
|
137
|
-
:vocabulary_filter_match
|
142
|
+
:vocabulary_filter_match,
|
143
|
+
:speaker)
|
138
144
|
SENSITIVE = []
|
139
145
|
include Aws::Structure
|
140
146
|
end
|
@@ -189,6 +195,14 @@ module Aws::TranscribeStreamingService
|
|
189
195
|
# transcription.
|
190
196
|
# @return [Array<Types::Alternative>]
|
191
197
|
#
|
198
|
+
# @!attribute [rw] channel_id
|
199
|
+
# When channel identification is enabled, Amazon Transcribe
|
200
|
+
# transcribes the speech from each audio channel separately.
|
201
|
+
#
|
202
|
+
# You can use `ChannelId` to retrieve the transcription results for a
|
203
|
+
# single channel in your audio stream.
|
204
|
+
# @return [String]
|
205
|
+
#
|
192
206
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Result AWS API Documentation
|
193
207
|
#
|
194
208
|
class Result < Struct.new(
|
@@ -196,7 +210,8 @@ module Aws::TranscribeStreamingService
|
|
196
210
|
:start_time,
|
197
211
|
:end_time,
|
198
212
|
:is_partial,
|
199
|
-
:alternatives
|
213
|
+
:alternatives,
|
214
|
+
:channel_id)
|
200
215
|
SENSITIVE = []
|
201
216
|
include Aws::Structure
|
202
217
|
end
|
@@ -227,6 +242,9 @@ module Aws::TranscribeStreamingService
|
|
227
242
|
# input_event_stream_hander: EventStreams::AudioStream.new,
|
228
243
|
# vocabulary_filter_name: "VocabularyFilterName",
|
229
244
|
# vocabulary_filter_method: "remove", # accepts remove, mask, tag
|
245
|
+
# show_speaker_label: false,
|
246
|
+
# enable_channel_identification: false,
|
247
|
+
# number_of_channels: 1,
|
230
248
|
# }
|
231
249
|
#
|
232
250
|
# @!attribute [rw] language_code
|
@@ -240,7 +258,8 @@ module Aws::TranscribeStreamingService
|
|
240
258
|
# @return [Integer]
|
241
259
|
#
|
242
260
|
# @!attribute [rw] media_encoding
|
243
|
-
# The encoding used for the input audio.
|
261
|
+
# The encoding used for the input audio. `pcm` is the only valid
|
262
|
+
# value.
|
244
263
|
# @return [String]
|
245
264
|
#
|
246
265
|
# @!attribute [rw] vocabulary_name
|
@@ -262,8 +281,8 @@ module Aws::TranscribeStreamingService
|
|
262
281
|
#
|
263
282
|
# @!attribute [rw] vocabulary_filter_name
|
264
283
|
# The name of the vocabulary filter you've created that is unique to
|
265
|
-
# your AWS
|
266
|
-
#
|
284
|
+
# your AWS account. Provide the name in this field to successfully use
|
285
|
+
# it in a stream.
|
267
286
|
# @return [String]
|
268
287
|
#
|
269
288
|
# @!attribute [rw] vocabulary_filter_method
|
@@ -275,6 +294,29 @@ module Aws::TranscribeStreamingService
|
|
275
294
|
# `VocabularyFilterMatch` equal to `True`
|
276
295
|
# @return [String]
|
277
296
|
#
|
297
|
+
# @!attribute [rw] show_speaker_label
|
298
|
+
# When `true`, enables speaker identification in your real-time
|
299
|
+
# stream.
|
300
|
+
# @return [Boolean]
|
301
|
+
#
|
302
|
+
# @!attribute [rw] enable_channel_identification
|
303
|
+
# When `true`, instructs Amazon Transcribe to process each audio
|
304
|
+
# channel separately and then merge the transcription output of each
|
305
|
+
# channel into a single transcription.
|
306
|
+
#
|
307
|
+
# Amazon Transcribe also produces a transcription of each item. An
|
308
|
+
# item includes the start time, end time, and any alternative
|
309
|
+
# transcriptions.
|
310
|
+
#
|
311
|
+
# You can't set both `ShowSpeakerLabel` and
|
312
|
+
# `EnableChannelIdentification` in the same request. If you set both,
|
313
|
+
# your request returns a `BadRequestException`.
|
314
|
+
# @return [Boolean]
|
315
|
+
#
|
316
|
+
# @!attribute [rw] number_of_channels
|
317
|
+
# The number of channels that are in your audio stream.
|
318
|
+
# @return [Integer]
|
319
|
+
#
|
278
320
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
279
321
|
#
|
280
322
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -285,7 +327,10 @@ module Aws::TranscribeStreamingService
|
|
285
327
|
:session_id,
|
286
328
|
:audio_stream,
|
287
329
|
:vocabulary_filter_name,
|
288
|
-
:vocabulary_filter_method
|
330
|
+
:vocabulary_filter_method,
|
331
|
+
:show_speaker_label,
|
332
|
+
:enable_channel_identification,
|
333
|
+
:number_of_channels)
|
289
334
|
SENSITIVE = []
|
290
335
|
include Aws::Structure
|
291
336
|
end
|
@@ -328,6 +373,18 @@ module Aws::TranscribeStreamingService
|
|
328
373
|
# The vocabulary filtering method used in the real-time stream.
|
329
374
|
# @return [String]
|
330
375
|
#
|
376
|
+
# @!attribute [rw] show_speaker_label
|
377
|
+
# Shows whether speaker identification was enabled in the stream.
|
378
|
+
# @return [Boolean]
|
379
|
+
#
|
380
|
+
# @!attribute [rw] enable_channel_identification
|
381
|
+
# Shows whether channel identification has been enabled in the stream.
|
382
|
+
# @return [Boolean]
|
383
|
+
#
|
384
|
+
# @!attribute [rw] number_of_channels
|
385
|
+
# The number of channels identified in the stream.
|
386
|
+
# @return [Integer]
|
387
|
+
#
|
331
388
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
332
389
|
#
|
333
390
|
class StartStreamTranscriptionResponse < Struct.new(
|
@@ -339,7 +396,10 @@ module Aws::TranscribeStreamingService
|
|
339
396
|
:session_id,
|
340
397
|
:transcript_result_stream,
|
341
398
|
:vocabulary_filter_name,
|
342
|
-
:vocabulary_filter_method
|
399
|
+
:vocabulary_filter_method,
|
400
|
+
:show_speaker_label,
|
401
|
+
:enable_channel_identification,
|
402
|
+
:number_of_channels)
|
343
403
|
SENSITIVE = []
|
344
404
|
include Aws::Structure
|
345
405
|
end
|
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.22.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-30 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.109.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.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|