aws-sdk-transcribestreamingservice 1.28.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 845dc2ba5af048efb54a3c55f3184fdd1f2eebeb61d3aa1e74c0c42dbc8299f9
4
- data.tar.gz: 985db130dbddfde3aa46336e77abeadcf83b6f838d349cedb6cf8956611a421d
3
+ metadata.gz: ab1bc6d3004e5760660539b8b283a9d312d182a91dd8a5c83a4efba1ccf1333b
4
+ data.tar.gz: 74053acacbe3857ea54716cad3ca1b4b42e3c3d7c900e342d37954e69bda3c1e
5
5
  SHA512:
6
- metadata.gz: f9450ceb4fcaf1deb70c2bcd7adb8255daadf0af6486c07d123b99a3f849af8fb0d9a0afd4215253fcdea3817db67c636996c532336f469da37319b05a98aeac
7
- data.tar.gz: 75faad136b9752be8af43e04212a6e9adb30238bbf6b41dc4beb9516e9774dea17af02a6796bd79aeeba619cf4e6dc46c51372010bca6a185f3f0d6aab437af7
6
+ metadata.gz: afc7be8799e8185db1b19f567f5cc8e03ea515409c542693e7de8fcff2727046deb3f37e637e59fddfd1cbd7ebfcafacc96b56b32544c94886d8c6e607d96d47
7
+ data.tar.gz: cb3bebee438b98e76502fdc917b671bf41e8db994d3eebde7bb42866b2e8907d08f19bdc7e3412e1b79cba11ceab147d47aa12838eca142874ccd12a9a38bc3e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.29.0 (2021-05-11)
5
+ ------------------
6
+
7
+ * Feature - Amazon Transcribe supports partial results stabilization for streaming transcription.
8
+
4
9
  1.28.0 (2021-03-15)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.29.0
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-transcribestreamingservice/event_streams'
50
50
  # @!group service
51
51
  module Aws::TranscribeStreamingService
52
52
 
53
- GEM_VERSION = '1.28.0'
53
+ GEM_VERSION = '1.29.0'
54
54
 
55
55
  end
@@ -572,6 +572,19 @@ module Aws::TranscribeStreamingService
572
572
  # @option params [Integer] :number_of_channels
573
573
  # The number of channels that are in your audio stream.
574
574
  #
575
+ # @option params [Boolean] :enable_partial_results_stabilization
576
+ # When `true`, instructs Amazon Transcribe to present transcription
577
+ # results that have the partial results stabilized. Normally, any word
578
+ # or phrase from one partial result can change in a subsequent partial
579
+ # result. With partial results stabilization enabled, only the last few
580
+ # words of one partial result can change in another partial result.
581
+ #
582
+ # @option params [String] :partial_results_stability
583
+ # You can use this field to set the stability level of the transcription
584
+ # results. A higher stability level means that the transcription results
585
+ # are less likely to change. Higher stability levels can come with lower
586
+ # overall transcription accuracy.
587
+ #
575
588
  # @return [Types::StartStreamTranscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
576
589
  #
577
590
  # * {Types::StartStreamTranscriptionResponse#request_id #request_id} => String
@@ -586,6 +599,8 @@ module Aws::TranscribeStreamingService
586
599
  # * {Types::StartStreamTranscriptionResponse#show_speaker_label #show_speaker_label} => Boolean
587
600
  # * {Types::StartStreamTranscriptionResponse#enable_channel_identification #enable_channel_identification} => Boolean
588
601
  # * {Types::StartStreamTranscriptionResponse#number_of_channels #number_of_channels} => Integer
602
+ # * {Types::StartStreamTranscriptionResponse#enable_partial_results_stabilization #enable_partial_results_stabilization} => Boolean
603
+ # * {Types::StartStreamTranscriptionResponse#partial_results_stability #partial_results_stability} => String
589
604
  #
590
605
  # @example Bi-directional EventStream Operation Example
591
606
  #
@@ -693,6 +708,8 @@ module Aws::TranscribeStreamingService
693
708
  # show_speaker_label: false,
694
709
  # enable_channel_identification: false,
695
710
  # number_of_channels: 1,
711
+ # enable_partial_results_stabilization: false,
712
+ # partial_results_stability: "high", # accepts high, medium, low
696
713
  # })
697
714
  # # => Seahorse::Client::AsyncResponse
698
715
  # async_resp.wait
@@ -727,6 +744,7 @@ module Aws::TranscribeStreamingService
727
744
  # event.transcript.results[0].alternatives[0].items[0].vocabulary_filter_match #=> Boolean
728
745
  # event.transcript.results[0].alternatives[0].items[0].speaker #=> String
729
746
  # event.transcript.results[0].alternatives[0].items[0].confidence #=> Float
747
+ # event.transcript.results[0].alternatives[0].items[0].stable #=> Boolean
730
748
  # event.transcript.results[0].channel_id #=> String
731
749
  #
732
750
  # For :bad_request_exception event available at #on_bad_request_exception_event callback and response eventstream enumerator:
@@ -749,6 +767,8 @@ module Aws::TranscribeStreamingService
749
767
  # resp.show_speaker_label #=> Boolean
750
768
  # resp.enable_channel_identification #=> Boolean
751
769
  # resp.number_of_channels #=> Integer
770
+ # resp.enable_partial_results_stabilization #=> Boolean
771
+ # resp.partial_results_stability #=> String, one of "high", "medium", "low"
752
772
  #
753
773
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscription AWS API Documentation
754
774
  #
@@ -793,7 +813,7 @@ module Aws::TranscribeStreamingService
793
813
  http_response: Seahorse::Client::Http::AsyncResponse.new,
794
814
  config: config)
795
815
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
796
- context[:gem_version] = '1.28.0'
816
+ context[:gem_version] = '1.29.0'
797
817
  Seahorse::Client::Request.new(handlers, context)
798
818
  end
799
819
 
@@ -351,7 +351,7 @@ module Aws::TranscribeStreamingService
351
351
  params: params,
352
352
  config: config)
353
353
  context[:gem_name] = 'aws-sdk-transcribestreamingservice'
354
- context[:gem_version] = '1.28.0'
354
+ context[:gem_version] = '1.29.0'
355
355
  Seahorse::Client::Request.new(handlers, context)
356
356
  end
357
357
 
@@ -44,12 +44,14 @@ module Aws::TranscribeStreamingService
44
44
  MedicalTranscriptEvent = Shapes::StructureShape.new(name: 'MedicalTranscriptEvent')
45
45
  MedicalTranscriptResultStream = Shapes::StructureShape.new(name: 'MedicalTranscriptResultStream')
46
46
  NumberOfChannels = Shapes::IntegerShape.new(name: 'NumberOfChannels')
47
+ PartialResultsStability = Shapes::StringShape.new(name: 'PartialResultsStability')
47
48
  RequestId = Shapes::StringShape.new(name: 'RequestId')
48
49
  Result = Shapes::StructureShape.new(name: 'Result')
49
50
  ResultList = Shapes::ListShape.new(name: 'ResultList')
50
51
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
51
52
  SessionId = Shapes::StringShape.new(name: 'SessionId')
52
53
  Specialty = Shapes::StringShape.new(name: 'Specialty')
54
+ Stable = Shapes::BooleanShape.new(name: 'Stable')
53
55
  StartMedicalStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionRequest')
54
56
  StartMedicalStreamTranscriptionResponse = Shapes::StructureShape.new(name: 'StartMedicalStreamTranscriptionResponse')
55
57
  StartStreamTranscriptionRequest = Shapes::StructureShape.new(name: 'StartStreamTranscriptionRequest')
@@ -91,6 +93,7 @@ module Aws::TranscribeStreamingService
91
93
  Item.add_member(:vocabulary_filter_match, Shapes::ShapeRef.new(shape: Boolean, location_name: "VocabularyFilterMatch"))
92
94
  Item.add_member(:speaker, Shapes::ShapeRef.new(shape: String, location_name: "Speaker"))
93
95
  Item.add_member(:confidence, Shapes::ShapeRef.new(shape: Confidence, location_name: "Confidence"))
96
+ Item.add_member(:stable, Shapes::ShapeRef.new(shape: Stable, location_name: "Stable"))
94
97
  Item.struct_class = Types::Item
95
98
 
96
99
  ItemList.member = Shapes::ShapeRef.new(shape: Item)
@@ -205,6 +208,8 @@ module Aws::TranscribeStreamingService
205
208
  StartStreamTranscriptionRequest.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
206
209
  StartStreamTranscriptionRequest.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
207
210
  StartStreamTranscriptionRequest.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
211
+ StartStreamTranscriptionRequest.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
212
+ StartStreamTranscriptionRequest.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
208
213
  StartStreamTranscriptionRequest.struct_class = Types::StartStreamTranscriptionRequest
209
214
  StartStreamTranscriptionRequest[:payload] = :audio_stream
210
215
  StartStreamTranscriptionRequest[:payload_member] = StartStreamTranscriptionRequest.member(:audio_stream)
@@ -221,6 +226,8 @@ module Aws::TranscribeStreamingService
221
226
  StartStreamTranscriptionResponse.add_member(:show_speaker_label, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-show-speaker-label"))
222
227
  StartStreamTranscriptionResponse.add_member(:enable_channel_identification, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-channel-identification"))
223
228
  StartStreamTranscriptionResponse.add_member(:number_of_channels, Shapes::ShapeRef.new(shape: NumberOfChannels, location: "header", location_name: "x-amzn-transcribe-number-of-channels"))
229
+ StartStreamTranscriptionResponse.add_member(:enable_partial_results_stabilization, Shapes::ShapeRef.new(shape: Boolean, location: "header", location_name: "x-amzn-transcribe-enable-partial-results-stabilization"))
230
+ StartStreamTranscriptionResponse.add_member(:partial_results_stability, Shapes::ShapeRef.new(shape: PartialResultsStability, location: "header", location_name: "x-amzn-transcribe-partial-results-stability"))
224
231
  StartStreamTranscriptionResponse.struct_class = Types::StartStreamTranscriptionResponse
225
232
  StartStreamTranscriptionResponse[:payload] = :transcript_result_stream
226
233
  StartStreamTranscriptionResponse[:payload_member] = StartStreamTranscriptionResponse.member(:transcript_result_stream)
@@ -145,6 +145,12 @@ module Aws::TranscribeStreamingService
145
145
  # transcribes.
146
146
  # @return [Float]
147
147
  #
148
+ # @!attribute [rw] stable
149
+ # If partial result stabilization has been enabled, indicates whether
150
+ # the word or phrase in the item is stable. If `Stable` is `true`, the
151
+ # result is stable.
152
+ # @return [Boolean]
153
+ #
148
154
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/Item AWS API Documentation
149
155
  #
150
156
  class Item < Struct.new(
@@ -154,7 +160,8 @@ module Aws::TranscribeStreamingService
154
160
  :content,
155
161
  :vocabulary_filter_match,
156
162
  :speaker,
157
- :confidence)
163
+ :confidence,
164
+ :stable)
158
165
  SENSITIVE = []
159
166
  include Aws::Structure
160
167
  end
@@ -644,6 +651,8 @@ module Aws::TranscribeStreamingService
644
651
  # show_speaker_label: false,
645
652
  # enable_channel_identification: false,
646
653
  # number_of_channels: 1,
654
+ # enable_partial_results_stabilization: false,
655
+ # partial_results_stability: "high", # accepts high, medium, low
647
656
  # }
648
657
  #
649
658
  # @!attribute [rw] language_code
@@ -715,6 +724,22 @@ module Aws::TranscribeStreamingService
715
724
  # The number of channels that are in your audio stream.
716
725
  # @return [Integer]
717
726
  #
727
+ # @!attribute [rw] enable_partial_results_stabilization
728
+ # When `true`, instructs Amazon Transcribe to present transcription
729
+ # results that have the partial results stabilized. Normally, any word
730
+ # or phrase from one partial result can change in a subsequent partial
731
+ # result. With partial results stabilization enabled, only the last
732
+ # few words of one partial result can change in another partial
733
+ # result.
734
+ # @return [Boolean]
735
+ #
736
+ # @!attribute [rw] partial_results_stability
737
+ # You can use this field to set the stability level of the
738
+ # transcription results. A higher stability level means that the
739
+ # transcription results are less likely to change. Higher stability
740
+ # levels can come with lower overall transcription accuracy.
741
+ # @return [String]
742
+ #
718
743
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionRequest AWS API Documentation
719
744
  #
720
745
  class StartStreamTranscriptionRequest < Struct.new(
@@ -728,7 +753,9 @@ module Aws::TranscribeStreamingService
728
753
  :vocabulary_filter_method,
729
754
  :show_speaker_label,
730
755
  :enable_channel_identification,
731
- :number_of_channels)
756
+ :number_of_channels,
757
+ :enable_partial_results_stabilization,
758
+ :partial_results_stability)
732
759
  SENSITIVE = []
733
760
  include Aws::Structure
734
761
  end
@@ -783,6 +810,16 @@ module Aws::TranscribeStreamingService
783
810
  # The number of channels identified in the stream.
784
811
  # @return [Integer]
785
812
  #
813
+ # @!attribute [rw] enable_partial_results_stabilization
814
+ # Shows whether partial results stabilization has been enabled in the
815
+ # stream.
816
+ # @return [Boolean]
817
+ #
818
+ # @!attribute [rw] partial_results_stability
819
+ # If partial results stabilization has been enabled in the stream,
820
+ # shows the stability level.
821
+ # @return [String]
822
+ #
786
823
  # @see http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/StartStreamTranscriptionResponse AWS API Documentation
787
824
  #
788
825
  class StartStreamTranscriptionResponse < Struct.new(
@@ -797,7 +834,9 @@ module Aws::TranscribeStreamingService
797
834
  :vocabulary_filter_method,
798
835
  :show_speaker_label,
799
836
  :enable_channel_identification,
800
- :number_of_channels)
837
+ :number_of_channels,
838
+ :enable_partial_results_stabilization,
839
+ :partial_results_stability)
801
840
  SENSITIVE = []
802
841
  include Aws::Structure
803
842
  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.28.0
4
+ version: 1.29.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: 2021-03-15 00:00:00.000000000 Z
11
+ date: 2021-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -68,8 +68,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
68
68
  licenses:
69
69
  - Apache-2.0
70
70
  metadata:
71
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-transcribestreamingservice
72
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-transcribestreamingservice/CHANGELOG.md
71
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-transcribestreamingservice
72
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-transcribestreamingservice/CHANGELOG.md
73
73
  post_install_message:
74
74
  rdoc_options: []
75
75
  require_paths:
@@ -85,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.7.6.2
88
+ rubygems_version: 3.1.6
90
89
  signing_key:
91
90
  specification_version: 4
92
91
  summary: AWS SDK for Ruby - Amazon Transcribe Streaming Service