google-apis-speech_v1p1beta1 0.11.0 → 0.15.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: 3b9f707be2adcc6af003b179dd79278bb0981424a786ebc9e5682293ee4bab3d
4
+ data.tar.gz: dc45a985f49bde4a0103a0c18638d70bffa3a8d7c9cf6067a46f1f6dce3dce5a
5
5
  SHA512:
6
- metadata.gz: 0b5ee2c715c1d1960228a4e0a18541a7afdb0d34d90c0dc3377918b4a4248e254d42569f1dae48623b466a3e2a05dfa839ac4522695232872bf42105ec14fc6a
7
- data.tar.gz: 4ef5079c956ffcfa427ef2e901c6a7d95c13e3625d5e9f2112f9ae755fbba41eeba7bfcd57f1883734d59a84850ae4b3e2db4ccde4483e7d653c3dc1a84744b5
6
+ metadata.gz: 01ab0b8fab16f1fad6f6c3516662d90853663174173b3e9062fb38ae3752184a0bcba528a892d562444be2470bd97493ae2cebae37579d65e3e0ac265eced2cc
7
+ data.tar.gz: dc22c3ce598c2e7e0f81a3ac4139245660289bc77561ab4cbc864a019b6ba1eb17441adc397212ad079dae158e972fb1594b5881ace363ded25aeb6c918a11c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-speech_v1p1beta1
2
2
 
3
+ ### v0.15.0 (2021-10-20)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.14.0 (2021-09-03)
8
+
9
+ * Regenerated from discovery document revision 20210825
10
+
11
+ ### v0.13.0 (2021-07-31)
12
+
13
+ * Regenerated from discovery document revision 20210726
14
+
15
+ ### v0.12.0 (2021-07-22)
16
+
17
+ * Regenerated from discovery document revision 20210714
18
+
3
19
  ### v0.11.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Speech service in particular.)
67
67
 
@@ -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
@@ -337,6 +369,11 @@ module Google
337
369
  # @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
338
370
  attr_accessor :results
339
371
 
372
+ # When available, billed audio seconds for the corresponding request.
373
+ # Corresponds to the JSON property `totalBilledTime`
374
+ # @return [String]
375
+ attr_accessor :total_billed_time
376
+
340
377
  def initialize(**args)
341
378
  update!(**args)
342
379
  end
@@ -346,6 +383,7 @@ module Google
346
383
  @output_config = args[:output_config] if args.key?(:output_config)
347
384
  @output_error = args[:output_error] if args.key?(:output_error)
348
385
  @results = args[:results] if args.key?(:results)
386
+ @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
349
387
  end
350
388
  end
351
389
 
@@ -716,6 +754,14 @@ module Google
716
754
  # @return [Array<Google::Apis::SpeechV1p1beta1::SpeechContext>]
717
755
  attr_accessor :speech_contexts
718
756
 
757
+ # Transcription normalization configuration. Use transcription normalization to
758
+ # automatically replace parts of the transcript with phrases of your choosing.
759
+ # For StreamingRecognize, this normalization only applies to stable partial
760
+ # transcripts (stability > 0.8) and final transcripts.
761
+ # Corresponds to the JSON property `transcriptNormalization`
762
+ # @return [Google::Apis::SpeechV1p1beta1::TranscriptNormalization]
763
+ attr_accessor :transcript_normalization
764
+
719
765
  # Set to true to use an enhanced model for speech recognition. If `use_enhanced`
720
766
  # is set to true and the `model` field is not set, then an appropriate enhanced
721
767
  # model is chosen if an enhanced model exists for the audio. If `use_enhanced`
@@ -752,6 +798,7 @@ module Google
752
798
  @profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
753
799
  @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
754
800
  @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
801
+ @transcript_normalization = args[:transcript_normalization] if args.key?(:transcript_normalization)
755
802
  @use_enhanced = args[:use_enhanced] if args.key?(:use_enhanced)
756
803
  end
757
804
  end
@@ -872,6 +919,11 @@ module Google
872
919
  # @return [Array<Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult>]
873
920
  attr_accessor :results
874
921
 
922
+ # When available, billed audio seconds for the corresponding request.
923
+ # Corresponds to the JSON property `totalBilledTime`
924
+ # @return [String]
925
+ attr_accessor :total_billed_time
926
+
875
927
  def initialize(**args)
876
928
  update!(**args)
877
929
  end
@@ -879,6 +931,7 @@ module Google
879
931
  # Update properties of this object
880
932
  def update!(**args)
881
933
  @results = args[:results] if args.key?(:results)
934
+ @total_billed_time = args[:total_billed_time] if args.key?(:total_billed_time)
882
935
  end
883
936
  end
884
937
 
@@ -1119,6 +1172,31 @@ module Google
1119
1172
  end
1120
1173
  end
1121
1174
 
1175
+ # Transcription normalization configuration. Use transcription normalization to
1176
+ # automatically replace parts of the transcript with phrases of your choosing.
1177
+ # For StreamingRecognize, this normalization only applies to stable partial
1178
+ # transcripts (stability > 0.8) and final transcripts.
1179
+ class TranscriptNormalization
1180
+ include Google::Apis::Core::Hashable
1181
+
1182
+ # A list of replacement entries. We will perform replacement with one entry at a
1183
+ # time. For example, the second entry in ["cat" => "dog", "mountain cat" => "
1184
+ # mountain dog"] will never be applied because we will always process the first
1185
+ # entry before it. At most 100 entries.
1186
+ # Corresponds to the JSON property `entries`
1187
+ # @return [Array<Google::Apis::SpeechV1p1beta1::Entry>]
1188
+ attr_accessor :entries
1189
+
1190
+ def initialize(**args)
1191
+ update!(**args)
1192
+ end
1193
+
1194
+ # Update properties of this object
1195
+ def update!(**args)
1196
+ @entries = args[:entries] if args.key?(:entries)
1197
+ end
1198
+ end
1199
+
1122
1200
  # Specifies an optional destination for the recognition results.
1123
1201
  class TranscriptOutputConfig
1124
1202
  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.15.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 = "20210825"
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
@@ -285,6 +306,7 @@ module Google
285
306
 
286
307
  collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
287
308
 
309
+ property :total_billed_time, as: 'totalBilledTime'
288
310
  end
289
311
  end
290
312
 
@@ -353,6 +375,8 @@ module Google
353
375
  property :sample_rate_hertz, as: 'sampleRateHertz'
354
376
  collection :speech_contexts, as: 'speechContexts', class: Google::Apis::SpeechV1p1beta1::SpeechContext, decorator: Google::Apis::SpeechV1p1beta1::SpeechContext::Representation
355
377
 
378
+ property :transcript_normalization, as: 'transcriptNormalization', class: Google::Apis::SpeechV1p1beta1::TranscriptNormalization, decorator: Google::Apis::SpeechV1p1beta1::TranscriptNormalization::Representation
379
+
356
380
  property :use_enhanced, as: 'useEnhanced'
357
381
  end
358
382
  end
@@ -387,6 +411,7 @@ module Google
387
411
  class Representation < Google::Apis::Core::JsonRepresentation
388
412
  collection :results, as: 'results', class: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV1p1beta1::SpeechRecognitionResult::Representation
389
413
 
414
+ property :total_billed_time, as: 'totalBilledTime'
390
415
  end
391
416
  end
392
417
 
@@ -448,6 +473,14 @@ module Google
448
473
  end
449
474
  end
450
475
 
476
+ class TranscriptNormalization
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ collection :entries, as: 'entries', class: Google::Apis::SpeechV1p1beta1::Entry, decorator: Google::Apis::SpeechV1p1beta1::Entry::Representation
480
+
481
+ end
482
+ end
483
+
451
484
  class TranscriptOutputConfig
452
485
  # @private
453
486
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1p1beta1'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
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.15.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-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
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
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-speech_v1p1beta1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1p1beta1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-speech_v1p1beta1/v0.15.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-speech_v1p1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths: