google-apis-speech_v1p1beta1 0.11.0 → 0.12.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: b0bffe50cb24f54f15c17e0abac21bb4e68e29f9361ee61702ed2f3be494f794
4
- data.tar.gz: fb1919fe07cc5290b0f05c439b3ed1e7bc471bb598c1e24f66d89c689d22719d
3
+ metadata.gz: 0713b37beea737b34dce7575a393f9e679cff7f487183932e6bb19120823263b
4
+ data.tar.gz: 4972c695375ef43387773d1156d8aa0d47c179f17d7112cebbe4cd330d2c3b35
5
5
  SHA512:
6
- metadata.gz: 0b5ee2c715c1d1960228a4e0a18541a7afdb0d34d90c0dc3377918b4a4248e254d42569f1dae48623b466a3e2a05dfa839ac4522695232872bf42105ec14fc6a
7
- data.tar.gz: 4ef5079c956ffcfa427ef2e901c6a7d95c13e3625d5e9f2112f9ae755fbba41eeba7bfcd57f1883734d59a84850ae4b3e2db4ccde4483e7d653c3dc1a84744b5
6
+ metadata.gz: 8d13161a9c7f375b33900b1c4031fd5987281dc05adb0cdca021a29b5d03b82b92839eb4404b0cee3bacd41f13952a6c78aeaa0188e6dba8831c4b00a4abcd36
7
+ data.tar.gz: b6b2daa39f84733f2bc3f6249e423b2c7041c7940ec8e3e5c56be440d872f3608634c862fc6a5afb4ef4431dc34388d20b430b75c93a6a044974692c52ae9106
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-speech_v1p1beta1
2
2
 
3
+ ### v0.12.0 (2021-07-22)
4
+
5
+ * Regenerated from discovery document revision 20210714
6
+
3
7
  ### v0.11.0 (2021-06-29)
4
8
 
5
9
  * Regenerated using generator version 0.4.0
@@ -52,9 +52,9 @@ module Google
52
52
  # @return [Google::Apis::SpeechV1p1beta1::CustomClass]
53
53
  attr_accessor :custom_class
54
54
 
55
- # The ID to use for the custom class, which will become the final component of
56
- # the custom class' resource name. This value should be 4-63 characters, and
57
- # valid characters are /a-z-/.
55
+ # Required. The ID to use for the custom class, which will become the final
56
+ # component of the custom class' resource name. This value should be 4-63
57
+ # characters, and valid characters are /a-z-/.
58
58
  # Corresponds to the JSON property `customClassId`
59
59
  # @return [String]
60
60
  attr_accessor :custom_class_id
@@ -80,9 +80,9 @@ module Google
80
80
  # @return [Google::Apis::SpeechV1p1beta1::PhraseSet]
81
81
  attr_accessor :phrase_set
82
82
 
83
- # The ID to use for the phrase set, which will become the final component of the
84
- # phrase set's resource name. This value should be 4-63 characters, and valid
85
- # characters are /a-z-/.
83
+ # Required. The ID to use for the phrase set, which will become the final
84
+ # component of the phrase set's resource name. This value should be 4-63
85
+ # characters, and valid characters are /a-z-/.
86
86
  # Corresponds to the JSON property `phraseSetId`
87
87
  # @return [String]
88
88
  attr_accessor :phrase_set_id
@@ -149,6 +149,38 @@ module Google
149
149
  end
150
150
  end
151
151
 
152
+ # A single replacement configuration.
153
+ class Entry
154
+ include Google::Apis::Core::Hashable
155
+
156
+ # Whether the search is case sensitive.
157
+ # Corresponds to the JSON property `caseSensitive`
158
+ # @return [Boolean]
159
+ attr_accessor :case_sensitive
160
+ alias_method :case_sensitive?, :case_sensitive
161
+
162
+ # What to replace with. Max length is 100 characters.
163
+ # Corresponds to the JSON property `replace`
164
+ # @return [String]
165
+ attr_accessor :replace
166
+
167
+ # What to replace. Max length is 100 characters.
168
+ # Corresponds to the JSON property `search`
169
+ # @return [String]
170
+ attr_accessor :search
171
+
172
+ def initialize(**args)
173
+ update!(**args)
174
+ end
175
+
176
+ # Update properties of this object
177
+ def update!(**args)
178
+ @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
179
+ @replace = args[:replace] if args.key?(:replace)
180
+ @search = args[:search] if args.key?(:search)
181
+ end
182
+ end
183
+
152
184
  # Message returned to the client by the `ListCustomClasses` method.
153
185
  class ListCustomClassesResponse
154
186
  include Google::Apis::Core::Hashable
@@ -716,6 +748,14 @@ module Google
716
748
  # @return [Array<Google::Apis::SpeechV1p1beta1::SpeechContext>]
717
749
  attr_accessor :speech_contexts
718
750
 
751
+ # Transcription normalization configuration. Use transcription normalization to
752
+ # automatically replace parts of the transcript with phrases of your choosing.
753
+ # For StreamingRecognize, this normalization only applies to stable partial
754
+ # transcripts (stability > 0.8) and final transcripts.
755
+ # Corresponds to the JSON property `transcriptNormalization`
756
+ # @return [Google::Apis::SpeechV1p1beta1::TranscriptNormalization]
757
+ attr_accessor :transcript_normalization
758
+
719
759
  # Set to true to use an enhanced model for speech recognition. If `use_enhanced`
720
760
  # is set to true and the `model` field is not set, then an appropriate enhanced
721
761
  # model is chosen if an enhanced model exists for the audio. If `use_enhanced`
@@ -752,6 +792,7 @@ module Google
752
792
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
753
793
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
754
794
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
795
+ @transcript_normalization = args[:transcript_normalization] if args.key?(:transcript_normalization)
755
796
  @use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
756
797
  end
757
798
  end
@@ -1119,6 +1160,28 @@ module Google
1119
1160
  end
1120
1161
  end
1121
1162
 
1163
+ # Transcription normalization configuration. Use transcription normalization to
1164
+ # automatically replace parts of the transcript with phrases of your choosing.
1165
+ # For StreamingRecognize, this normalization only applies to stable partial
1166
+ # transcripts (stability > 0.8) and final transcripts.
1167
+ class TranscriptNormalization
1168
+ include Google::Apis::Core::Hashable
1169
+
1170
+ # A single replacement configuration.
1171
+ # Corresponds to the JSON property `entries`
1172
+ # @return [Google::Apis::SpeechV1p1beta1::Entry]
1173
+ attr_accessor :entries
1174
+
1175
+ def initialize(**args)
1176
+ update!(**args)
1177
+ end
1178
+
1179
+ # Update properties of this object
1180
+ def update!(**args)
1181
+ @entries = args[:entries] if args.key?(:entries)
1182
+ end
1183
+ end
1184
+
1122
1185
  # Specifies an optional destination for the recognition results.
1123
1186
  class TranscriptOutputConfig
1124
1187
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1p1beta1
18
18
  # Version of the google-apis-speech_v1p1beta1 gem
19
- GEM_VERSION = "0.11.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210429"
25
+ REVISION = "20210714"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class Entry
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class ListCustomClassesResponse
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -172,6 +178,12 @@ module Google
172
178
  include Google::Apis::Core::JsonObjectSupport
173
179
  end
174
180
 
181
+ class TranscriptNormalization
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
175
187
  class TranscriptOutputConfig
176
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
189
 
@@ -225,6 +237,15 @@ module Google
225
237
  end
226
238
  end
227
239
 
240
+ class Entry
241
+ # @private
242
+ class Representation < Google::Apis::Core::JsonRepresentation
243
+ property :case_sensitive, as: 'caseSensitive'
244
+ property :replace, as: 'replace'
245
+ property :search, as: 'search'
246
+ end
247
+ end
248
+
228
249
  class ListCustomClassesResponse
229
250
  # @private
230
251
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -353,6 +374,8 @@ module Google
353
374
  property :sample_rate_hertz, as: 'sampleRateHertz'
354
375
  collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1p1beta1::SpeechContext, decorator: Google::Apis::SpeechV1p1beta1::SpeechContext::Representation
355
376
 
377
+ property :transcript_normalization, as: 'transcriptNormalization', class: Google::Apis::SpeechV1p1beta1::TranscriptNormalization, decorator: Google::Apis::SpeechV1p1beta1::TranscriptNormalization::Representation
378
+
356
379
  property :use_enhanced, as: 'useEnhanced'
357
380
  end
358
381
  end
@@ -448,6 +471,14 @@ module Google
448
471
  end
449
472
  end
450
473
 
474
+ class TranscriptNormalization
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ property :entries, as: 'entries', class: Google::Apis::SpeechV1p1beta1::Entry, decorator: Google::Apis::SpeechV1p1beta1::Entry::Representation
478
+
479
+ end
480
+ end
481
+
451
482
  class TranscriptOutputConfig
452
483
  # @private
453
484
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.11.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []