aws-sdk-transcribestreamingservice 1.36.0 → 1.40.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/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-transcribestreamingservice/async_client.rb +65 -11
- data/lib/aws-sdk-transcribestreamingservice/client.rb +16 -3
- data/lib/aws-sdk-transcribestreamingservice/client_api.rb +18 -1
- data/lib/aws-sdk-transcribestreamingservice/types.rb +114 -24
- data/lib/aws-sdk-transcribestreamingservice.rb +1 -1
- 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: 526a7cabf4301faf9b1702c52447c46d45c9545d1215a172ece24e5e0e45b3bf
|
4
|
+
data.tar.gz: 19af510ba33f61042d586e92800a3ddd732915c604d30caf947d74120e74b813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc48ab6b0917b55103a6f30f3a6f84bca533673e6007cb4c9af0ad5bc17d0171773dcdebc625255ecd54d7ed485b16a9d48fa8007a0d739f408278f053c84393
|
7
|
+
data.tar.gz: 12afd226d4453bab8bc163092414750c1731fc4594c69091db79cd9ff7ebc8f8ff6cd3275c20e3ae1e715cd5e47299a6cec525e1c63042dcf2e2bfee54b9b24c
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.40.0 (2022-02-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.39.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.38.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.37.0 (2021-11-22)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds language identification support for streaming transcription.
|
23
|
+
|
4
24
|
1.36.0 (2021-11-04)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.40.0
|
@@ -23,6 +23,8 @@ require 'aws-sdk-core/plugins/stub_responses.rb'
|
|
23
23
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
24
24
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
25
25
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
26
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
27
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
26
28
|
require 'aws-sdk-core/plugins/invocation_id.rb'
|
27
29
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
30
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
@@ -52,6 +54,8 @@ module Aws::TranscribeStreamingService
|
|
52
54
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
53
55
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
54
56
|
add_plugin(Aws::Plugins::HttpChecksum)
|
57
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
58
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
55
59
|
add_plugin(Aws::Plugins::InvocationId)
|
56
60
|
add_plugin(Aws::Plugins::SignatureV4)
|
57
61
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
@@ -98,7 +102,9 @@ module Aws::TranscribeStreamingService
|
|
98
102
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
99
103
|
# are very aggressive. Construct and pass an instance of
|
100
104
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
101
|
-
# enable retries and extended timeouts.
|
105
|
+
# enable retries and extended timeouts. Instance profile credential
|
106
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
107
|
+
# to true.
|
102
108
|
#
|
103
109
|
# @option options [required, String] :region
|
104
110
|
# The AWS region to connect to. The configured `:region` is
|
@@ -128,6 +134,10 @@ module Aws::TranscribeStreamingService
|
|
128
134
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
129
135
|
# a clock skew correction and retry requests with skewed client clocks.
|
130
136
|
#
|
137
|
+
# @option options [String] :defaults_mode ("legacy")
|
138
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
139
|
+
# accepted modes and the configuration defaults that are included.
|
140
|
+
#
|
131
141
|
# @option options [String] :endpoint
|
132
142
|
# The client endpoint is normally constructed from the `:region`
|
133
143
|
# option. You should only configure an `:endpoint` when connecting
|
@@ -531,12 +541,13 @@ module Aws::TranscribeStreamingService
|
|
531
541
|
#
|
532
542
|
# [1]: https://docs.aws.amazon.com/sdk-for-go/api/service/transcribestreamingservice/#TranscribeStreamingService.StartStreamTranscription
|
533
543
|
#
|
534
|
-
# @option params [
|
535
|
-
#
|
544
|
+
# @option params [String] :language_code
|
545
|
+
# The language code of the input audio stream.
|
536
546
|
#
|
537
547
|
# @option params [required, Integer] :media_sample_rate_hertz
|
538
|
-
# The sample rate, in Hertz, of the input audio. We suggest that
|
539
|
-
# 8,000 Hz for low quality audio and 16,000 Hz
|
548
|
+
# The sample rate, in Hertz (Hz), of the input audio. We suggest that
|
549
|
+
# you use 8,000 Hz for low quality audio and 16,000 Hz or higher for
|
550
|
+
# high quality audio.
|
540
551
|
#
|
541
552
|
# @option params [required, String] :media_encoding
|
542
553
|
# The encoding used for the input audio.
|
@@ -562,15 +573,15 @@ module Aws::TranscribeStreamingService
|
|
562
573
|
# transcription results. `Mask` masks filtered words with a `***` in
|
563
574
|
# your transcription results. `Tag` keeps the filtered words in your
|
564
575
|
# transcription results and tags them. The tag appears as
|
565
|
-
# `VocabularyFilterMatch` equal to `True
|
576
|
+
# `VocabularyFilterMatch` equal to `True`.
|
566
577
|
#
|
567
578
|
# @option params [Boolean] :show_speaker_label
|
568
|
-
# When `true`, enables speaker identification in your
|
579
|
+
# When `true`, enables speaker identification in your media stream.
|
569
580
|
#
|
570
581
|
# @option params [Boolean] :enable_channel_identification
|
571
582
|
# When `true`, instructs Amazon Transcribe to process each audio channel
|
572
|
-
# separately
|
573
|
-
#
|
583
|
+
# separately, then merges the transcription output of each channel into
|
584
|
+
# a single transcription.
|
574
585
|
#
|
575
586
|
# Amazon Transcribe also produces a transcription of each item. An item
|
576
587
|
# includes the start time, end time, and any alternative transcriptions.
|
@@ -618,12 +629,42 @@ module Aws::TranscribeStreamingService
|
|
618
629
|
# specify entity types, you must have either `ContentIdentificationType`
|
619
630
|
# or `ContentRedactionType` enabled.
|
620
631
|
#
|
632
|
+
# `PIIEntityTypes` must be comma-separated; the available values are:
|
633
|
+
# `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
|
634
|
+
# `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`, `ADDRESS`,
|
635
|
+
# `NAME`, `PHONE`, `SSN`, and `ALL`.
|
636
|
+
#
|
621
637
|
# `PiiEntityTypes` is an optional parameter with a default value of
|
622
638
|
# `ALL`.
|
623
639
|
#
|
624
640
|
# @option params [String] :language_model_name
|
625
641
|
# The name of the language model you want to use.
|
626
642
|
#
|
643
|
+
# @option params [Boolean] :identify_language
|
644
|
+
# Optional. Set this value to `true` to enable language identification
|
645
|
+
# for your media stream.
|
646
|
+
#
|
647
|
+
# @option params [String] :language_options
|
648
|
+
# An object containing a list of languages that might be present in your
|
649
|
+
# audio.
|
650
|
+
#
|
651
|
+
# You must provide two or more language codes to help Amazon Transcribe
|
652
|
+
# identify the correct language of your media stream with the highest
|
653
|
+
# possible accuracy. You can only select one variant per language; for
|
654
|
+
# example, you can't include both `en-US` and `en-UK` in the same
|
655
|
+
# request.
|
656
|
+
#
|
657
|
+
# You can only use this parameter if you've set `IdentifyLanguage` to
|
658
|
+
# `true`in your request.
|
659
|
+
#
|
660
|
+
# @option params [String] :preferred_language
|
661
|
+
# Optional. From the subset of languages codes you provided for
|
662
|
+
# `LanguageOptions`, you can select one preferred language for your
|
663
|
+
# transcription.
|
664
|
+
#
|
665
|
+
# You can only use this parameter if you've set `IdentifyLanguage` to
|
666
|
+
# `true`in your request.
|
667
|
+
#
|
627
668
|
# @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
628
669
|
#
|
629
670
|
# * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
|
@@ -644,6 +685,9 @@ module Aws::TranscribeStreamingService
|
|
644
685
|
# * {Types::StartStreamTranscriptionResponse#content_redaction_type #content_redaction_type} => String
|
645
686
|
# * {Types::StartStreamTranscriptionResponse#pii_entity_types #pii_entity_types} => String
|
646
687
|
# * {Types::StartStreamTranscriptionResponse#language_model_name #language_model_name} => String
|
688
|
+
# * {Types::StartStreamTranscriptionResponse#identify_language #identify_language} => Boolean
|
689
|
+
# * {Types::StartStreamTranscriptionResponse#language_options #language_options} => String
|
690
|
+
# * {Types::StartStreamTranscriptionResponse#preferred_language #preferred_language} => String
|
647
691
|
#
|
648
692
|
# @example Bi-directional EventStream Operation Example
|
649
693
|
#
|
@@ -740,7 +784,7 @@ module Aws::TranscribeStreamingService
|
|
740
784
|
# @example Request syntax with placeholder values
|
741
785
|
#
|
742
786
|
# async_resp = async_client.start_stream_transcription({
|
743
|
-
# language_code: "en-US", #
|
787
|
+
# language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
|
744
788
|
# media_sample_rate_hertz: 1, # required
|
745
789
|
# media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
|
746
790
|
# vocabulary_name: "VocabularyName",
|
@@ -757,6 +801,9 @@ module Aws::TranscribeStreamingService
|
|
757
801
|
# content_redaction_type: "PII", # accepts PII
|
758
802
|
# pii_entity_types: "PiiEntityTypes",
|
759
803
|
# language_model_name: "ModelName",
|
804
|
+
# identify_language: false,
|
805
|
+
# language_options: "LanguageOptions",
|
806
|
+
# preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
|
760
807
|
# })
|
761
808
|
# # => Seahorse::Client::AsyncResponse
|
762
809
|
# async_resp.wait
|
@@ -800,6 +847,10 @@ module Aws::TranscribeStreamingService
|
|
800
847
|
# event.transcript.results[0].alternatives[0].entities[0].content #=> String
|
801
848
|
# event.transcript.results[0].alternatives[0].entities[0].confidence #=> Float
|
802
849
|
# event.transcript.results[0].channel_id #=> String
|
850
|
+
# event.transcript.results[0].language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
|
851
|
+
# event.transcript.results[0].language_identification #=> Array
|
852
|
+
# event.transcript.results[0].language_identification[0].language_code #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
|
853
|
+
# event.transcript.results[0].language_identification[0].score #=> Float
|
803
854
|
#
|
804
855
|
# For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
|
805
856
|
# event.message #=> String
|
@@ -827,6 +878,9 @@ module Aws::TranscribeStreamingService
|
|
827
878
|
# resp.content_redaction_type #=> String, one of "PII"
|
828
879
|
# resp.pii_entity_types #=> String
|
829
880
|
# resp.language_model_name #=> String
|
881
|
+
# resp.identify_language #=> Boolean
|
882
|
+
# resp.language_options #=> String
|
883
|
+
# resp.preferred_language #=> String, one of "en-US", "en-GB", "es-US", "fr-CA", "fr-FR", "en-AU", "it-IT", "de-DE", "pt-BR", "ja-JP", "ko-KR", "zh-CN"
|
830
884
|
#
|
831
885
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
|
832
886
|
#
|
@@ -871,7 +925,7 @@ module Aws::TranscribeStreamingService
|
|
871
925
|
http_response: Seahorse::Client::Http::AsyncResponse.new,
|
872
926
|
config: config)
|
873
927
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
874
|
-
context[:gem_version] = '1.
|
928
|
+
context[:gem_version] = '1.40.0'
|
875
929
|
Seahorse::Client::Request.new(handlers, context)
|
876
930
|
end
|
877
931
|
|
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
30
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
33
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
34
|
require 'aws-sdk-core/plugins/event_stream_configuration.rb'
|
@@ -74,6 +76,8 @@ module Aws::TranscribeStreamingService
|
|
74
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
75
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
76
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
80
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
77
81
|
add_plugin(Aws::Plugins::SignatureV4)
|
78
82
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
79
83
|
add_plugin(Aws::Plugins::EventStreamConfiguration)
|
@@ -121,7 +125,9 @@ module Aws::TranscribeStreamingService
|
|
121
125
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
122
126
|
# are very aggressive. Construct and pass an instance of
|
123
127
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
124
|
-
# enable retries and extended timeouts.
|
128
|
+
# enable retries and extended timeouts. Instance profile credential
|
129
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
130
|
+
# to true.
|
125
131
|
#
|
126
132
|
# @option options [required, String] :region
|
127
133
|
# The AWS region to connect to. The configured `:region` is
|
@@ -175,6 +181,10 @@ module Aws::TranscribeStreamingService
|
|
175
181
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
182
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
183
|
#
|
184
|
+
# @option options [String] :defaults_mode ("legacy")
|
185
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
186
|
+
# accepted modes and the configuration defaults that are included.
|
187
|
+
#
|
178
188
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
189
|
# Set to true to disable SDK automatically adding host prefix
|
180
190
|
# to default service endpoint when available.
|
@@ -306,7 +316,7 @@ module Aws::TranscribeStreamingService
|
|
306
316
|
# seconds to wait when opening a HTTP session before raising a
|
307
317
|
# `Timeout::Error`.
|
308
318
|
#
|
309
|
-
# @option options [
|
319
|
+
# @option options [Float] :http_read_timeout (60) The default
|
310
320
|
# number of seconds to wait for response data. This value can
|
311
321
|
# safely be set per-request on the session.
|
312
322
|
#
|
@@ -322,6 +332,9 @@ module Aws::TranscribeStreamingService
|
|
322
332
|
# disables this behaviour. This value can safely be set per
|
323
333
|
# request on the session.
|
324
334
|
#
|
335
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
336
|
+
# in seconds.
|
337
|
+
#
|
325
338
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
326
339
|
# HTTP debug output will be sent to the `:logger`.
|
327
340
|
#
|
@@ -360,7 +373,7 @@ module Aws::TranscribeStreamingService
|
|
360
373
|
params: params,
|
361
374
|
config: config)
|
362
375
|
context[:gem_name] = 'aws-sdk-transcribestreamingservice'
|
363
|
-
context[:gem_version] = '1.
|
376
|
+
context[:gem_version] = '1.40.0'
|
364
377
|
Seahorse::Client::Request.new(handlers, context)
|
365
378
|
end
|
366
379
|
|
@@ -32,6 +32,9 @@ module Aws::TranscribeStreamingService
|
|
32
32
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
33
33
|
ItemType = Shapes::StringShape.new(name: 'ItemType')
|
34
34
|
LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
|
35
|
+
LanguageIdentification = Shapes::ListShape.new(name: 'LanguageIdentification')
|
36
|
+
LanguageOptions = Shapes::StringShape.new(name: 'LanguageOptions')
|
37
|
+
LanguageWithScore = Shapes::StructureShape.new(name: 'LanguageWithScore')
|
35
38
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
36
39
|
MediaEncoding = Shapes::StringShape.new(name: 'MediaEncoding')
|
37
40
|
MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz')
|
@@ -115,6 +118,12 @@ module Aws::TranscribeStreamingService
|
|
115
118
|
|
116
119
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
117
120
|
|
121
|
+
LanguageIdentification.member = Shapes::ShapeRef.new(shape: LanguageWithScore)
|
122
|
+
|
123
|
+
LanguageWithScore.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
124
|
+
LanguageWithScore.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "Score"))
|
125
|
+
LanguageWithScore.struct_class = Types::LanguageWithScore
|
126
|
+
|
118
127
|
LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
119
128
|
LimitExceededException.struct_class = Types::LimitExceededException
|
120
129
|
|
@@ -174,6 +183,8 @@ module Aws::TranscribeStreamingService
|
|
174
183
|
Result.add_member(:is_partial, Shapes::ShapeRef.new(shape: Boolean, location_name: "IsPartial"))
|
175
184
|
Result.add_member(:alternatives, Shapes::ShapeRef.new(shape: AlternativeList, location_name: "Alternatives"))
|
176
185
|
Result.add_member(:channel_id, Shapes::ShapeRef.new(shape: String, location_name: "ChannelId"))
|
186
|
+
Result.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode"))
|
187
|
+
Result.add_member(:language_identification, Shapes::ShapeRef.new(shape: LanguageIdentification, location_name: "LanguageIdentification"))
|
177
188
|
Result.struct_class = Types::Result
|
178
189
|
|
179
190
|
ResultList.member = Shapes::ShapeRef.new(shape: Result)
|
@@ -214,7 +225,7 @@ module Aws::TranscribeStreamingService
|
|
214
225
|
StartMedicalStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
215
226
|
StartMedicalStreamTranscriptionResponse[:payload_member] = StartMedicalStreamTranscriptionResponse.member(:transcript_result_stream)
|
216
227
|
|
217
|
-
StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode,
|
228
|
+
StartStreamTranscriptionRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-language-code"))
|
218
229
|
StartStreamTranscriptionRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, required: true, location: "header", location_name: "x-amzn-transcribe-sample-rate"))
|
219
230
|
StartStreamTranscriptionRequest.add_member(:media_encoding, Shapes::ShapeRef.new(shape: MediaEncoding, required: true, location: "header", location_name: "x-amzn-transcribe-media-encoding"))
|
220
231
|
StartStreamTranscriptionRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location: "header", location_name: "x-amzn-transcribe-vocabulary-name"))
|
@@ -231,6 +242,9 @@ module Aws::TranscribeStreamingService
|
|
231
242
|
StartStreamTranscriptionRequest.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
|
232
243
|
StartStreamTranscriptionRequest.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
|
233
244
|
StartStreamTranscriptionRequest.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
|
245
|
+
StartStreamTranscriptionRequest.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
|
246
|
+
StartStreamTranscriptionRequest.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
|
247
|
+
StartStreamTranscriptionRequest.add_member(:preferred_language, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
|
234
248
|
StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
|
235
249
|
StartStreamTranscriptionRequest[:payload] = :audio_stream
|
236
250
|
StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
|
@@ -253,6 +267,9 @@ module Aws::TranscribeStreamingService
|
|
253
267
|
StartStreamTranscriptionResponse.add_member(:content_redaction_type, Shapes::ShapeRef.new(shape: ContentRedactionType, location: "header", location_name: "x-amzn-transcribe-content-redaction-type"))
|
254
268
|
StartStreamTranscriptionResponse.add_member(:pii_entity_types, Shapes::ShapeRef.new(shape: PiiEntityTypes, location: "header", location_name: "x-amzn-transcribe-pii-entity-types"))
|
255
269
|
StartStreamTranscriptionResponse.add_member(:language_model_name, Shapes::ShapeRef.new(shape: ModelName, location: "header", location_name: "x-amzn-transcribe-language-model-name"))
|
270
|
+
StartStreamTranscriptionResponse.add_member(:identify_language, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-identify-language"))
|
271
|
+
StartStreamTranscriptionResponse.add_member(:language_options, Shapes::ShapeRef.new(shape: LanguageOptions, location: "header", location_name: "x-amzn-transcribe-language-options"))
|
272
|
+
StartStreamTranscriptionResponse.add_member(:preferred_language, Shapes::ShapeRef.new(shape: LanguageCode, location: "header", location_name: "x-amzn-transcribe-preferred-language"))
|
256
273
|
StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
|
257
274
|
StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
|
258
275
|
StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
|
@@ -111,8 +111,8 @@ module Aws::TranscribeStreamingService
|
|
111
111
|
# @return [Float]
|
112
112
|
#
|
113
113
|
# @!attribute [rw] category
|
114
|
-
# The category of
|
115
|
-
#
|
114
|
+
# The category of information identified in this entity; for example,
|
115
|
+
# PII.
|
116
116
|
# @return [String]
|
117
117
|
#
|
118
118
|
# @!attribute [rw] type
|
@@ -185,18 +185,18 @@ module Aws::TranscribeStreamingService
|
|
185
185
|
#
|
186
186
|
# @!attribute [rw] vocabulary_filter_match
|
187
187
|
# Indicates whether a word in the item matches a word in the
|
188
|
-
# vocabulary filter you've chosen for your
|
189
|
-
#
|
188
|
+
# vocabulary filter you've chosen for your media stream. If `true`
|
189
|
+
# then a word in the item matches your vocabulary filter.
|
190
190
|
# @return [Boolean]
|
191
191
|
#
|
192
192
|
# @!attribute [rw] speaker
|
193
193
|
# If speaker identification is enabled, shows the speakers identified
|
194
|
-
# in the
|
194
|
+
# in the media stream.
|
195
195
|
# @return [String]
|
196
196
|
#
|
197
197
|
# @!attribute [rw] confidence
|
198
|
-
# A value between
|
199
|
-
# Amazon Transcribe assigns to each word or phrase that it
|
198
|
+
# A value between zero and one for an item that is a confidence score
|
199
|
+
# that Amazon Transcribe assigns to each word or phrase that it
|
200
200
|
# transcribes.
|
201
201
|
# @return [Float]
|
202
202
|
#
|
@@ -221,6 +221,30 @@ module Aws::TranscribeStreamingService
|
|
221
221
|
include Aws::Structure
|
222
222
|
end
|
223
223
|
|
224
|
+
# The language codes of the identified languages and their associated
|
225
|
+
# confidence scores. The confidence score is a value between zero and
|
226
|
+
# one; a larger value indicates a higher confidence in the identified
|
227
|
+
# language.
|
228
|
+
#
|
229
|
+
# @!attribute [rw] language_code
|
230
|
+
# The language code of the language identified by Amazon Transcribe.
|
231
|
+
# @return [String]
|
232
|
+
#
|
233
|
+
# @!attribute [rw] score
|
234
|
+
# The confidence score for the associated language code. Confidence
|
235
|
+
# scores are values between zero and one; larger values indicate a
|
236
|
+
# higher confidence in the identified language.
|
237
|
+
# @return [Float]
|
238
|
+
#
|
239
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/LanguageWithScore AWS API Documentation
|
240
|
+
#
|
241
|
+
class LanguageWithScore < Struct.new(
|
242
|
+
:language_code,
|
243
|
+
:score)
|
244
|
+
SENSITIVE = []
|
245
|
+
include Aws::Structure
|
246
|
+
end
|
247
|
+
|
224
248
|
# You have exceeded the maximum number of concurrent transcription
|
225
249
|
# streams, are starting transcription streams too quickly, or the
|
226
250
|
# maximum audio length of 4 hours. Wait until a stream has finished
|
@@ -482,6 +506,14 @@ module Aws::TranscribeStreamingService
|
|
482
506
|
# single channel in your audio stream.
|
483
507
|
# @return [String]
|
484
508
|
#
|
509
|
+
# @!attribute [rw] language_code
|
510
|
+
# The language code of the identified language in your media stream.
|
511
|
+
# @return [String]
|
512
|
+
#
|
513
|
+
# @!attribute [rw] language_identification
|
514
|
+
# The language code of the dominant language identified in your media.
|
515
|
+
# @return [Array<Types::LanguageWithScore>]
|
516
|
+
#
|
485
517
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Result AWS API Documentation
|
486
518
|
#
|
487
519
|
class Result < Struct.new(
|
@@ -490,7 +522,9 @@ module Aws::TranscribeStreamingService
|
|
490
522
|
:end_time,
|
491
523
|
:is_partial,
|
492
524
|
:alternatives,
|
493
|
-
:channel_id
|
525
|
+
:channel_id,
|
526
|
+
:language_code,
|
527
|
+
:language_identification)
|
494
528
|
SENSITIVE = []
|
495
529
|
include Aws::Structure
|
496
530
|
end
|
@@ -694,7 +728,7 @@ module Aws::TranscribeStreamingService
|
|
694
728
|
# data as a hash:
|
695
729
|
#
|
696
730
|
# {
|
697
|
-
# language_code: "en-US", #
|
731
|
+
# language_code: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
|
698
732
|
# media_sample_rate_hertz: 1, # required
|
699
733
|
# media_encoding: "pcm", # required, accepts pcm, ogg-opus, flac
|
700
734
|
# vocabulary_name: "VocabularyName",
|
@@ -711,16 +745,19 @@ module Aws::TranscribeStreamingService
|
|
711
745
|
# content_redaction_type: "PII", # accepts PII
|
712
746
|
# pii_entity_types: "PiiEntityTypes",
|
713
747
|
# language_model_name: "ModelName",
|
748
|
+
# identify_language: false,
|
749
|
+
# language_options: "LanguageOptions",
|
750
|
+
# preferred_language: "en-US", # accepts en-US, en-GB, es-US, fr-CA, fr-FR, en-AU, it-IT, de-DE, pt-BR, ja-JP, ko-KR, zh-CN
|
714
751
|
# }
|
715
752
|
#
|
716
753
|
# @!attribute [rw] language_code
|
717
|
-
#
|
754
|
+
# The language code of the input audio stream.
|
718
755
|
# @return [String]
|
719
756
|
#
|
720
757
|
# @!attribute [rw] media_sample_rate_hertz
|
721
|
-
# The sample rate, in Hertz, of the input audio. We suggest that
|
722
|
-
# use 8,000 Hz for low quality audio and 16,000 Hz
|
723
|
-
# audio.
|
758
|
+
# The sample rate, in Hertz (Hz), of the input audio. We suggest that
|
759
|
+
# you use 8,000 Hz for low quality audio and 16,000 Hz or higher for
|
760
|
+
# high quality audio.
|
724
761
|
# @return [Integer]
|
725
762
|
#
|
726
763
|
# @!attribute [rw] media_encoding
|
@@ -756,17 +793,16 @@ module Aws::TranscribeStreamingService
|
|
756
793
|
# transcription results. `Mask` masks filtered words with a `***` in
|
757
794
|
# your transcription results. `Tag` keeps the filtered words in your
|
758
795
|
# transcription results and tags them. The tag appears as
|
759
|
-
# `VocabularyFilterMatch` equal to `True
|
796
|
+
# `VocabularyFilterMatch` equal to `True`.
|
760
797
|
# @return [String]
|
761
798
|
#
|
762
799
|
# @!attribute [rw] show_speaker_label
|
763
|
-
# When `true`, enables speaker identification in your
|
764
|
-
# stream.
|
800
|
+
# When `true`, enables speaker identification in your media stream.
|
765
801
|
# @return [Boolean]
|
766
802
|
#
|
767
803
|
# @!attribute [rw] enable_channel_identification
|
768
804
|
# When `true`, instructs Amazon Transcribe to process each audio
|
769
|
-
# channel separately
|
805
|
+
# channel separately, then merges the transcription output of each
|
770
806
|
# channel into a single transcription.
|
771
807
|
#
|
772
808
|
# Amazon Transcribe also produces a transcription of each item. An
|
@@ -824,6 +860,11 @@ module Aws::TranscribeStreamingService
|
|
824
860
|
# to specify entity types, you must have either
|
825
861
|
# `ContentIdentificationType` or `ContentRedactionType` enabled.
|
826
862
|
#
|
863
|
+
# `PIIEntityTypes` must be comma-separated; the available values are:
|
864
|
+
# `BANK_ACCOUNT_NUMBER`, `BANK_ROUTING`, `CREDIT_DEBIT_NUMBER`,
|
865
|
+
# `CREDIT_DEBIT_CVV`, `CREDIT_DEBIT_EXPIRY`, `PIN`, `EMAIL`,
|
866
|
+
# `ADDRESS`, `NAME`, `PHONE`, `SSN`, and `ALL`.
|
867
|
+
#
|
827
868
|
# `PiiEntityTypes` is an optional parameter with a default value of
|
828
869
|
# `ALL`.
|
829
870
|
# @return [String]
|
@@ -832,6 +873,34 @@ module Aws::TranscribeStreamingService
|
|
832
873
|
# The name of the language model you want to use.
|
833
874
|
# @return [String]
|
834
875
|
#
|
876
|
+
# @!attribute [rw] identify_language
|
877
|
+
# Optional. Set this value to `true` to enable language identification
|
878
|
+
# for your media stream.
|
879
|
+
# @return [Boolean]
|
880
|
+
#
|
881
|
+
# @!attribute [rw] language_options
|
882
|
+
# An object containing a list of languages that might be present in
|
883
|
+
# your audio.
|
884
|
+
#
|
885
|
+
# You must provide two or more language codes to help Amazon
|
886
|
+
# Transcribe identify the correct language of your media stream with
|
887
|
+
# the highest possible accuracy. You can only select one variant per
|
888
|
+
# language; for example, you can't include both `en-US` and `en-UK`
|
889
|
+
# in the same request.
|
890
|
+
#
|
891
|
+
# You can only use this parameter if you've set `IdentifyLanguage` to
|
892
|
+
# `true`in your request.
|
893
|
+
# @return [String]
|
894
|
+
#
|
895
|
+
# @!attribute [rw] preferred_language
|
896
|
+
# Optional. From the subset of languages codes you provided for
|
897
|
+
# `LanguageOptions`, you can select one preferred language for your
|
898
|
+
# transcription.
|
899
|
+
#
|
900
|
+
# You can only use this parameter if you've set `IdentifyLanguage` to
|
901
|
+
# `true`in your request.
|
902
|
+
# @return [String]
|
903
|
+
#
|
835
904
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
|
836
905
|
#
|
837
906
|
class StartStreamTranscriptionRequest < Struct.new(
|
@@ -851,7 +920,10 @@ module Aws::TranscribeStreamingService
|
|
851
920
|
:content_identification_type,
|
852
921
|
:content_redaction_type,
|
853
922
|
:pii_entity_types,
|
854
|
-
:language_model_name
|
923
|
+
:language_model_name,
|
924
|
+
:identify_language,
|
925
|
+
:language_options,
|
926
|
+
:preferred_language)
|
855
927
|
SENSITIVE = []
|
856
928
|
include Aws::Structure
|
857
929
|
end
|
@@ -861,12 +933,13 @@ module Aws::TranscribeStreamingService
|
|
861
933
|
# @return [String]
|
862
934
|
#
|
863
935
|
# @!attribute [rw] language_code
|
864
|
-
# The language code
|
936
|
+
# The language code of the input audio stream.
|
865
937
|
# @return [String]
|
866
938
|
#
|
867
939
|
# @!attribute [rw] media_sample_rate_hertz
|
868
|
-
# The sample rate for the input audio stream. Use
|
869
|
-
# quality audio and 16,000 Hz for high
|
940
|
+
# The sample rate, in Hertz (Hz), for the input audio stream. Use
|
941
|
+
# 8,000 Hz for low quality audio and 16,000 Hz or higher for high
|
942
|
+
# quality audio.
|
870
943
|
# @return [Integer]
|
871
944
|
#
|
872
945
|
# @!attribute [rw] media_encoding
|
@@ -887,11 +960,11 @@ module Aws::TranscribeStreamingService
|
|
887
960
|
# @return [Types::TranscriptResultStream]
|
888
961
|
#
|
889
962
|
# @!attribute [rw] vocabulary_filter_name
|
890
|
-
# The name of the vocabulary filter used in your
|
963
|
+
# The name of the vocabulary filter used in your media stream.
|
891
964
|
# @return [String]
|
892
965
|
#
|
893
966
|
# @!attribute [rw] vocabulary_filter_method
|
894
|
-
# The vocabulary filtering method used in the
|
967
|
+
# The vocabulary filtering method used in the media stream.
|
895
968
|
# @return [String]
|
896
969
|
#
|
897
970
|
# @!attribute [rw] show_speaker_label
|
@@ -929,6 +1002,20 @@ module Aws::TranscribeStreamingService
|
|
929
1002
|
# @return [String]
|
930
1003
|
#
|
931
1004
|
# @!attribute [rw] language_model_name
|
1005
|
+
# The name of the language model used in your media stream.
|
1006
|
+
# @return [String]
|
1007
|
+
#
|
1008
|
+
# @!attribute [rw] identify_language
|
1009
|
+
# The language code of the language identified in your media stream.
|
1010
|
+
# @return [Boolean]
|
1011
|
+
#
|
1012
|
+
# @!attribute [rw] language_options
|
1013
|
+
# The language codes used in the identification of your media
|
1014
|
+
# stream's predominant language.
|
1015
|
+
# @return [String]
|
1016
|
+
#
|
1017
|
+
# @!attribute [rw] preferred_language
|
1018
|
+
# The preferred language you specified in your request.
|
932
1019
|
# @return [String]
|
933
1020
|
#
|
934
1021
|
# @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
|
@@ -951,7 +1038,10 @@ module Aws::TranscribeStreamingService
|
|
951
1038
|
:content_identification_type,
|
952
1039
|
:content_redaction_type,
|
953
1040
|
:pii_entity_types,
|
954
|
-
:language_model_name
|
1041
|
+
:language_model_name,
|
1042
|
+
:identify_language,
|
1043
|
+
:language_options,
|
1044
|
+
:preferred_language)
|
955
1045
|
SENSITIVE = []
|
956
1046
|
include Aws::Structure
|
957
1047
|
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.40.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:
|
11
|
+
date: 2022-02-03 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.126.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.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|