google-apis-speech_v1 0.36.0 → 0.37.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: f75950d13605bbaf88b8cee4fbe9ad36e1017f9e811eccbb9bc400156258fc8d
4
- data.tar.gz: 48fed50301b8eb3dd55a0191208f40e3fb12c34461c7cffdd797fd7f8407160f
3
+ metadata.gz: 6c74563295e5e5b9d00001e2c8eda190453b680f6719d083b3c9e4ab1f957ace
4
+ data.tar.gz: 0e10dab1d3eb672fdc291a2a86b8312d26c2f36824c9b8b4cad64c34d0e83076
5
5
  SHA512:
6
- metadata.gz: 3741222ee4f72917f2e7804f1a27bccb5a85d7f253a0f2bafea5a47c8d22523f4666ffee5b7e6d0a29857bad5086db5c555c4cc7d2b728aad704edf74a158e86
7
- data.tar.gz: ec0e2bbb2c16aa47e05e4c7cc93ea0f6868a5b59ba5aab59d6ae19248c4b2cd9136a1f523f9017378353143442d369635f81c3f57bf76354f653b814c75c122b
6
+ metadata.gz: e3fd40d5fd902dc7752f7242344326ec778afafbbce88adf047eb3a1ec03cfc59c6c5d2611bba3f23aaa1978f8abec5edaaacbc99f0d7a3d008e70ac16f26cc5
7
+ data.tar.gz: 7038fd40120e2f9f5a9660a2065e5c20121a4f5898cdfa596017e6058e3ffdc3440ade1073d07f1061c204a44777ca0625e04c52abb46ee0fb5df62629ebba25
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.36.0 (2023-09-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20230901
@@ -248,6 +248,38 @@ module Google
248
248
  end
249
249
  end
250
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
+
251
283
  # Message returned to the client by the `ListCustomClasses` method.
252
284
  class ListCustomClassesResponse
253
285
  include Google::Apis::Core::Hashable
@@ -898,6 +930,14 @@ module Google
898
930
  # @return [Array<Google::Apis::SpeechV1::SpeechContext>]
899
931
  attr_accessor :speech_contexts
900
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
+
901
941
  # Set to true to use an enhanced model for speech recognition. If `use_enhanced`
902
942
  # is set to true and the `model` field is not set, then an appropriate enhanced
903
943
  # model is chosen if an enhanced model exists for the audio. If `use_enhanced`
@@ -932,6 +972,7 @@ module Google
932
972
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
933
973
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
934
974
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
975
+ @transcript_normalization = args[:transcript_normalization] if args.key?(:transcript_normalization)
935
976
  @use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
936
977
  end
937
978
  end
@@ -1356,6 +1397,31 @@ module Google
1356
1397
  end
1357
1398
  end
1358
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
+
1359
1425
  # Specifies an optional destination for the recognition results.
1360
1426
  class TranscriptOutputConfig
1361
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.36.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 = "20230901"
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
 
@@ -254,6 +266,15 @@ module Google
254
266
  end
255
267
  end
256
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
+
257
278
  class ListCustomClassesResponse
258
279
  # @private
259
280
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -392,6 +413,8 @@ module Google
392
413
  property :sample_rate_hertz, as: 'sampleRateHertz'
393
414
  collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1::SpeechContext, decorator: Google::Apis::SpeechV1::SpeechContext::Representation
394
415
 
416
+ property :transcript_normalization, as: 'transcriptNormalization', class: Google::Apis::SpeechV1::TranscriptNormalization, decorator: Google::Apis::SpeechV1::TranscriptNormalization::Representation
417
+
395
418
  property :use_enhanced, as: 'useEnhanced'
396
419
  end
397
420
  end
@@ -501,6 +524,14 @@ module Google
501
524
  end
502
525
  end
503
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
+
504
535
  class TranscriptOutputConfig
505
536
  # @private
506
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.36.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-09-10 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.36.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: []