google-apis-speech_v1 0.36.0 → 0.38.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: 655157fb2d1beefe258dd35ef36d2e6e1046b3629a6b2b32a4206d636eb7f5fc
4
+ data.tar.gz: cfe8d5a16bbb9d588e633e809fd128a4b6b005711a2ba3bd9ff359da1fe53b77
5
5
  SHA512:
6
- metadata.gz: 3741222ee4f72917f2e7804f1a27bccb5a85d7f253a0f2bafea5a47c8d22523f4666ffee5b7e6d0a29857bad5086db5c555c4cc7d2b728aad704edf74a158e86
7
- data.tar.gz: ec0e2bbb2c16aa47e05e4c7cc93ea0f6868a5b59ba5aab59d6ae19248c4b2cd9136a1f523f9017378353143442d369635f81c3f57bf76354f653b814c75c122b
6
+ metadata.gz: 06f2648e5d39c3f53cfac7b072bb92eb5ee6c5153b0314980fc2172c0a181bb4e442b09fec9ce2b3d6f8ceaaba4ed9b439a48ce40711a91bca996c4bf9cf26ec
7
+ data.tar.gz: 6601b75d95a1231d547d1f4170667919428734be4f63e95b4d1fa7e3b1962ffc0caba391ecbb0beeb4dfad565349e2cc7c65f3e8f061d7cbb6c75750c27e2ea7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-speech_v1
2
2
 
3
+ ### v0.38.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20240108
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.37.0 (2023-11-19)
9
+
10
+ * Regenerated from discovery document revision 20231110
11
+
3
12
  ### v0.36.0 (2023-09-10)
4
13
 
5
14
  * 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
@@ -1061,6 +1102,13 @@ module Google
1061
1102
  # @return [String]
1062
1103
  attr_accessor :total_billed_time
1063
1104
 
1105
+ # Whether request used legacy asr models (was not automatically migrated to use
1106
+ # conformer models).
1107
+ # Corresponds to the JSON property `usingLegacyModels`
1108
+ # @return [Boolean]
1109
+ attr_accessor :using_legacy_models
1110
+ alias_method :using_legacy_models?, :using_legacy_models
1111
+
1064
1112
  def initialize(**args)
1065
1113
  update!(**args)
1066
1114
  end
@@ -1071,6 +1119,7 @@ module Google
1071
1119
  @results = args[:results] if args.key?(:results)
1072
1120
  @speech_adaptation_info = args[:speech_adaptation_info] if args.key?(:speech_adaptation_info)
1073
1121
  @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
1122
+ @using_legacy_models = args[:using_legacy_models] if args.key?(:using_legacy_models)
1074
1123
  end
1075
1124
  end
1076
1125
 
@@ -1356,6 +1405,31 @@ module Google
1356
1405
  end
1357
1406
  end
1358
1407
 
1408
+ # Transcription normalization configuration. Use transcription normalization to
1409
+ # automatically replace parts of the transcript with phrases of your choosing.
1410
+ # For StreamingRecognize, this normalization only applies to stable partial
1411
+ # transcripts (stability > 0.8) and final transcripts.
1412
+ class TranscriptNormalization
1413
+ include Google::Apis::Core::Hashable
1414
+
1415
+ # A list of replacement entries. We will perform replacement with one entry at a
1416
+ # time. For example, the second entry in ["cat" => "dog", "mountain cat" => "
1417
+ # mountain dog"] will never be applied because we will always process the first
1418
+ # entry before it. At most 100 entries.
1419
+ # Corresponds to the JSON property `entries`
1420
+ # @return [Array<Google::Apis::SpeechV1::Entry>]
1421
+ attr_accessor :entries
1422
+
1423
+ def initialize(**args)
1424
+ update!(**args)
1425
+ end
1426
+
1427
+ # Update properties of this object
1428
+ def update!(**args)
1429
+ @entries = args[:entries] if args.key?(:entries)
1430
+ end
1431
+ end
1432
+
1359
1433
  # Specifies an optional destination for the recognition results.
1360
1434
  class TranscriptOutputConfig
1361
1435
  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.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230901"
25
+ REVISION = "20240108"
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
@@ -429,6 +452,7 @@ module Google
429
452
  property :speech_adaptation_info, as: 'speechAdaptationInfo', class: Google::Apis::SpeechV1::SpeechAdaptationInfo, decorator: Google::Apis::SpeechV1::SpeechAdaptationInfo::Representation
430
453
 
431
454
  property :total_billed_time, as: 'totalBilledTime'
455
+ property :using_legacy_models, as: 'usingLegacyModels'
432
456
  end
433
457
  end
434
458
 
@@ -501,6 +525,14 @@ module Google
501
525
  end
502
526
  end
503
527
 
528
+ class TranscriptNormalization
529
+ # @private
530
+ class Representation < Google::Apis::Core::JsonRepresentation
531
+ collection :entries, as: 'entries', class: Google::Apis::SpeechV1::Entry, decorator: Google::Apis::SpeechV1::Entry::Representation
532
+
533
+ end
534
+ end
535
+
504
536
  class TranscriptOutputConfig
505
537
  # @private
506
538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -32,6 +32,8 @@ module Google
32
32
  #
33
33
  # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol
34
34
  class SpeechService < Google::Apis::Core::BaseService
35
+ DEFAULT_ENDPOINT_TEMPLATE = "https://speech.$UNIVERSE_DOMAIN$/"
36
+
35
37
  # @return [String]
36
38
  # API key. Your API key identifies your project and provides you with API access,
37
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -43,7 +45,7 @@ module Google
43
45
  attr_accessor :quota_user
44
46
 
45
47
  def initialize
46
- super('https://speech.googleapis.com/', '',
48
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
47
49
  client_name: 'google-apis-speech_v1',
48
50
  client_version: Google::Apis::SpeechV1::GEM_VERSION)
49
51
  @batch_path = 'batch'
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.38.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: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.38.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.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Speech-to-Text API V1