google-apis-speech_v1 0.35.0 → 0.37.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cadd0498a244a11e9bfa37f33d7853868e4cd16c68353fe7d815ed5d04aa57e
4
- data.tar.gz: 8a61f90892e97a32dd51ae2b321d6b29c686bd94d96decf6c59cc43eb2919c2e
3
+ metadata.gz: 6c74563295e5e5b9d00001e2c8eda190453b680f6719d083b3c9e4ab1f957ace
4
+ data.tar.gz: 0e10dab1d3eb672fdc291a2a86b8312d26c2f36824c9b8b4cad64c34d0e83076
5
5
  SHA512:
6
- metadata.gz: 1bb57976f05ffb4ca80cbf1fe5060502c2960454be201cfe323d07e7acd5e1cd020ee4c6a763f666a3ee8f12e4d1dab39752fffb4e00480c4f9dd5745ff748c8
7
- data.tar.gz: a456c895836ec2e0cd6f474cf6444a6fdafb0516d7596b12113914d3db6be337ecc5cffb42704edd9ad723c1a0f352cec039d17fb7f79e67b73cfb509254dd62
6
+ metadata.gz: e3fd40d5fd902dc7752f7242344326ec778afafbbce88adf047eb3a1ec03cfc59c6c5d2611bba3f23aaa1978f8abec5edaaacbc99f0d7a3d008e70ac16f26cc5
7
+ data.tar.gz: 7038fd40120e2f9f5a9660a2065e5c20121a4f5898cdfa596017e6058e3ffdc3440ade1073d07f1061c204a44777ca0625e04c52abb46ee0fb5df62629ebba25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.37.0 (2023-11-19)
4
+
5
+ * Regenerated from discovery document revision 20231110
6
+
7
+ ### v0.36.0 (2023-09-10)
8
+
9
+ * Regenerated from discovery document revision 20230901
10
+
3
11
  ### v0.35.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230804
@@ -126,12 +126,45 @@ module Google
126
126
  class CustomClass
127
127
  include Google::Apis::Core::Hashable
128
128
 
129
+ # Output only. Allows users to store small amounts of arbitrary data. Both the
130
+ # key and the value must be 63 characters or less each. At most 100 annotations.
131
+ # This field is not used.
132
+ # Corresponds to the JSON property `annotations`
133
+ # @return [Hash<String,String>]
134
+ attr_accessor :annotations
135
+
129
136
  # If this custom class is a resource, the custom_class_id is the resource id of
130
137
  # the CustomClass. Case sensitive.
131
138
  # Corresponds to the JSON property `customClassId`
132
139
  # @return [String]
133
140
  attr_accessor :custom_class_id
134
141
 
142
+ # Output only. The time at which this resource was requested for deletion. This
143
+ # field is not used.
144
+ # Corresponds to the JSON property `deleteTime`
145
+ # @return [String]
146
+ attr_accessor :delete_time
147
+
148
+ # Output only. User-settable, human-readable name for the CustomClass. Must be
149
+ # 63 characters or less. This field is not used.
150
+ # Corresponds to the JSON property `displayName`
151
+ # @return [String]
152
+ attr_accessor :display_name
153
+
154
+ # Output only. This checksum is computed by the server based on the value of
155
+ # other fields. This may be sent on update, undelete, and delete requests to
156
+ # ensure the client has an up-to-date value before proceeding. This field is not
157
+ # used.
158
+ # Corresponds to the JSON property `etag`
159
+ # @return [String]
160
+ attr_accessor :etag
161
+
162
+ # Output only. The time at which this resource will be purged. This field is not
163
+ # used.
164
+ # Corresponds to the JSON property `expireTime`
165
+ # @return [String]
166
+ attr_accessor :expire_time
167
+
135
168
  # A collection of class items.
136
169
  # Corresponds to the JSON property `items`
137
170
  # @return [Array<Google::Apis::SpeechV1::ClassItem>]
@@ -159,17 +192,43 @@ module Google
159
192
  # @return [String]
160
193
  attr_accessor :name
161
194
 
195
+ # Output only. Whether or not this CustomClass is in the process of being
196
+ # updated. This field is not used.
197
+ # Corresponds to the JSON property `reconciling`
198
+ # @return [Boolean]
199
+ attr_accessor :reconciling
200
+ alias_method :reconciling?, :reconciling
201
+
202
+ # Output only. The CustomClass lifecycle state. This field is not used.
203
+ # Corresponds to the JSON property `state`
204
+ # @return [String]
205
+ attr_accessor :state
206
+
207
+ # Output only. System-assigned unique identifier for the CustomClass. This field
208
+ # is not used.
209
+ # Corresponds to the JSON property `uid`
210
+ # @return [String]
211
+ attr_accessor :uid
212
+
162
213
  def initialize(**args)
163
214
  update!(**args)
164
215
  end
165
216
 
166
217
  # Update properties of this object
167
218
  def update!(**args)
219
+ @annotations = args[:annotations] if args.key?(:annotations)
168
220
  @custom_class_id = args[:custom_class_id] if args.key?(:custom_class_id)
221
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
222
+ @display_name = args[:display_name] if args.key?(:display_name)
223
+ @etag = args[:etag] if args.key?(:etag)
224
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
169
225
  @items = args[:items] if args.key?(:items)
170
226
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
171
227
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
172
228
  @name = args[:name] if args.key?(:name)
229
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
230
+ @state = args[:state] if args.key?(:state)
231
+ @uid = args[:uid] if args.key?(:uid)
173
232
  end
174
233
  end
175
234
 
@@ -189,6 +248,38 @@ module Google
189
248
  end
190
249
  end
191
250
 
251
+ # A single replacement configuration.
252
+ class Entry
253
+ include Google::Apis::Core::Hashable
254
+
255
+ # Whether the search is case sensitive.
256
+ # Corresponds to the JSON property `caseSensitive`
257
+ # @return [Boolean]
258
+ attr_accessor :case_sensitive
259
+ alias_method :case_sensitive?, :case_sensitive
260
+
261
+ # What to replace with. Max length is 100 characters.
262
+ # Corresponds to the JSON property `replace`
263
+ # @return [String]
264
+ attr_accessor :replace
265
+
266
+ # What to replace. Max length is 100 characters.
267
+ # Corresponds to the JSON property `search`
268
+ # @return [String]
269
+ attr_accessor :search
270
+
271
+ def initialize(**args)
272
+ update!(**args)
273
+ end
274
+
275
+ # Update properties of this object
276
+ def update!(**args)
277
+ @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive)
278
+ @replace = args[:replace] if args.key?(:replace)
279
+ @search = args[:search] if args.key?(:search)
280
+ end
281
+ end
282
+
192
283
  # Message returned to the client by the `ListCustomClasses` method.
193
284
  class ListCustomClassesResponse
194
285
  include Google::Apis::Core::Hashable
@@ -521,6 +612,13 @@ module Google
521
612
  class PhraseSet
522
613
  include Google::Apis::Core::Hashable
523
614
 
615
+ # Output only. Allows users to store small amounts of arbitrary data. Both the
616
+ # key and the value must be 63 characters or less each. At most 100 annotations.
617
+ # This field is not used.
618
+ # Corresponds to the JSON property `annotations`
619
+ # @return [Hash<String,String>]
620
+ attr_accessor :annotations
621
+
524
622
  # Hint Boost. Positive value will increase the probability that a specific
525
623
  # phrase will be recognized over other similar sounding phrases. The higher the
526
624
  # boost, the higher the chance of false positive recognition as well. Negative
@@ -534,6 +632,32 @@ module Google
534
632
  # @return [Float]
535
633
  attr_accessor :boost
536
634
 
635
+ # Output only. The time at which this resource was requested for deletion. This
636
+ # field is not used.
637
+ # Corresponds to the JSON property `deleteTime`
638
+ # @return [String]
639
+ attr_accessor :delete_time
640
+
641
+ # Output only. User-settable, human-readable name for the PhraseSet. Must be 63
642
+ # characters or less. This field is not used.
643
+ # Corresponds to the JSON property `displayName`
644
+ # @return [String]
645
+ attr_accessor :display_name
646
+
647
+ # Output only. This checksum is computed by the server based on the value of
648
+ # other fields. This may be sent on update, undelete, and delete requests to
649
+ # ensure the client has an up-to-date value before proceeding. This field is not
650
+ # used.
651
+ # Corresponds to the JSON property `etag`
652
+ # @return [String]
653
+ attr_accessor :etag
654
+
655
+ # Output only. The time at which this resource will be purged. This field is not
656
+ # used.
657
+ # Corresponds to the JSON property `expireTime`
658
+ # @return [String]
659
+ attr_accessor :expire_time
660
+
537
661
  # Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-
538
662
  # hierarchy#keys) with which the content of the PhraseSet is encrypted. The
539
663
  # expected format is `projects/`project`/locations/`location`/keyRings/`key_ring`
@@ -561,17 +685,43 @@ module Google
561
685
  # @return [Array<Google::Apis::SpeechV1::Phrase>]
562
686
  attr_accessor :phrases
563
687
 
688
+ # Output only. Whether or not this PhraseSet is in the process of being updated.
689
+ # This field is not used.
690
+ # Corresponds to the JSON property `reconciling`
691
+ # @return [Boolean]
692
+ attr_accessor :reconciling
693
+ alias_method :reconciling?, :reconciling
694
+
695
+ # Output only. The CustomClass lifecycle state. This field is not used.
696
+ # Corresponds to the JSON property `state`
697
+ # @return [String]
698
+ attr_accessor :state
699
+
700
+ # Output only. System-assigned unique identifier for the PhraseSet. This field
701
+ # is not used.
702
+ # Corresponds to the JSON property `uid`
703
+ # @return [String]
704
+ attr_accessor :uid
705
+
564
706
  def initialize(**args)
565
707
  update!(**args)
566
708
  end
567
709
 
568
710
  # Update properties of this object
569
711
  def update!(**args)
712
+ @annotations = args[:annotations] if args.key?(:annotations)
570
713
  @boost = args[:boost] if args.key?(:boost)
714
+ @delete_time = args[:delete_time] if args.key?(:delete_time)
715
+ @display_name = args[:display_name] if args.key?(:display_name)
716
+ @etag = args[:etag] if args.key?(:etag)
717
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
571
718
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
572
719
  @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
573
720
  @name = args[:name] if args.key?(:name)
574
721
  @phrases = args[:phrases] if args.key?(:phrases)
722
+ @reconciling = args[:reconciling] if args.key?(:reconciling)
723
+ @state = args[:state] if args.key?(:state)
724
+ @uid = args[:uid] if args.key?(:uid)
575
725
  end
576
726
  end
577
727
 
@@ -780,6 +930,14 @@ module Google
780
930
  # @return [Array<Google::Apis::SpeechV1::SpeechContext>]
781
931
  attr_accessor :speech_contexts
782
932
 
933
+ # Transcription normalization configuration. Use transcription normalization to
934
+ # automatically replace parts of the transcript with phrases of your choosing.
935
+ # For StreamingRecognize, this normalization only applies to stable partial
936
+ # transcripts (stability > 0.8) and final transcripts.
937
+ # Corresponds to the JSON property `transcriptNormalization`
938
+ # @return [Google::Apis::SpeechV1::TranscriptNormalization]
939
+ attr_accessor :transcript_normalization
940
+
783
941
  # Set to true to use an enhanced model for speech recognition. If `use_enhanced`
784
942
  # is set to true and the `model` field is not set, then an appropriate enhanced
785
943
  # model is chosen if an enhanced model exists for the audio. If `use_enhanced`
@@ -814,6 +972,7 @@ module Google
814
972
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
815
973
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
816
974
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
975
+ @transcript_normalization = args[:transcript_normalization] if args.key?(:transcript_normalization)
817
976
  @use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
818
977
  end
819
978
  end
@@ -1238,6 +1397,31 @@ module Google
1238
1397
  end
1239
1398
  end
1240
1399
 
1400
+ # Transcription normalization configuration. Use transcription normalization to
1401
+ # automatically replace parts of the transcript with phrases of your choosing.
1402
+ # For StreamingRecognize, this normalization only applies to stable partial
1403
+ # transcripts (stability > 0.8) and final transcripts.
1404
+ class TranscriptNormalization
1405
+ include Google::Apis::Core::Hashable
1406
+
1407
+ # A list of replacement entries. We will perform replacement with one entry at a
1408
+ # time. For example, the second entry in ["cat" => "dog", "mountain cat" => "
1409
+ # mountain dog"] will never be applied because we will always process the first
1410
+ # entry before it. At most 100 entries.
1411
+ # Corresponds to the JSON property `entries`
1412
+ # @return [Array<Google::Apis::SpeechV1::Entry>]
1413
+ attr_accessor :entries
1414
+
1415
+ def initialize(**args)
1416
+ update!(**args)
1417
+ end
1418
+
1419
+ # Update properties of this object
1420
+ def update!(**args)
1421
+ @entries = args[:entries] if args.key?(:entries)
1422
+ end
1423
+ end
1424
+
1241
1425
  # Specifies an optional destination for the recognition results.
1242
1426
  class TranscriptOutputConfig
1243
1427
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SpeechV1
18
18
  # Version of the google-apis-speech_v1 gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.37.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230804"
25
+ REVISION = "20231110"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class Entry
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class ListCustomClassesResponse
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -184,6 +190,12 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class TranscriptNormalization
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
187
199
  class TranscriptOutputConfig
188
200
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
201
 
@@ -231,12 +243,20 @@ module Google
231
243
  class CustomClass
232
244
  # @private
233
245
  class Representation < Google::Apis::Core::JsonRepresentation
246
+ hash :annotations, as: 'annotations'
234
247
  property :custom_class_id, as: 'customClassId'
248
+ property :delete_time, as: 'deleteTime'
249
+ property :display_name, as: 'displayName'
250
+ property :etag, as: 'etag'
251
+ property :expire_time, as: 'expireTime'
235
252
  collection :items, as: 'items', class: Google::Apis::SpeechV1::ClassItem, decorator: Google::Apis::SpeechV1::ClassItem::Representation
236
253
 
237
254
  property :kms_key_name, as: 'kmsKeyName'
238
255
  property :kms_key_version_name, as: 'kmsKeyVersionName'
239
256
  property :name, as: 'name'
257
+ property :reconciling, as: 'reconciling'
258
+ property :state, as: 'state'
259
+ property :uid, as: 'uid'
240
260
  end
241
261
  end
242
262
 
@@ -246,6 +266,15 @@ module Google
246
266
  end
247
267
  end
248
268
 
269
+ class Entry
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :case_sensitive, as: 'caseSensitive'
273
+ property :replace, as: 'replace'
274
+ property :search, as: 'search'
275
+ end
276
+ end
277
+
249
278
  class ListCustomClassesResponse
250
279
  # @private
251
280
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -334,12 +363,20 @@ module Google
334
363
  class PhraseSet
335
364
  # @private
336
365
  class Representation < Google::Apis::Core::JsonRepresentation
366
+ hash :annotations, as: 'annotations'
337
367
  property :boost, as: 'boost'
368
+ property :delete_time, as: 'deleteTime'
369
+ property :display_name, as: 'displayName'
370
+ property :etag, as: 'etag'
371
+ property :expire_time, as: 'expireTime'
338
372
  property :kms_key_name, as: 'kmsKeyName'
339
373
  property :kms_key_version_name, as: 'kmsKeyVersionName'
340
374
  property :name, as: 'name'
341
375
  collection :phrases, as: 'phrases', class: Google::Apis::SpeechV1::Phrase, decorator: Google::Apis::SpeechV1::Phrase::Representation
342
376
 
377
+ property :reconciling, as: 'reconciling'
378
+ property :state, as: 'state'
379
+ property :uid, as: 'uid'
343
380
  end
344
381
  end
345
382
 
@@ -376,6 +413,8 @@ module Google
376
413
  property :sample_rate_hertz, as: 'sampleRateHertz'
377
414
  collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1::SpeechContext, decorator: Google::Apis::SpeechV1::SpeechContext::Representation
378
415
 
416
+ property :transcript_normalization, as: 'transcriptNormalization', class: Google::Apis::SpeechV1::TranscriptNormalization, decorator: Google::Apis::SpeechV1::TranscriptNormalization::Representation
417
+
379
418
  property :use_enhanced, as: 'useEnhanced'
380
419
  end
381
420
  end
@@ -485,6 +524,14 @@ module Google
485
524
  end
486
525
  end
487
526
 
527
+ class TranscriptNormalization
528
+ # @private
529
+ class Representation < Google::Apis::Core::JsonRepresentation
530
+ collection :entries, as: 'entries', class: Google::Apis::SpeechV1::Entry, decorator: Google::Apis::SpeechV1::Entry::Representation
531
+
532
+ end
533
+ end
534
+
488
535
  class TranscriptOutputConfig
489
536
  # @private
490
537
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-speech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.37.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: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-11-19 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/main/generated/google-apis-speech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.35.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Speech-to-Text API V1