google-apis-texttospeech_v1 0.20.0 → 0.21.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: dd1a9e3c6227dba396f5da432c0176b67d10f68a4544ada1f8bbd8a6581fd21e
4
- data.tar.gz: f439f1b7b7df1af24c7e2b8a3d6c6784d674ca27a12ebc7c092f51afc886b62a
3
+ metadata.gz: e6d3aad95f743f94a78a370aa375b2d64a5633c002de80439348520149ccfadf
4
+ data.tar.gz: ac7451a28cf522be6a5659743ef9723d84248653f3acca8a9c4baddb7b789f3e
5
5
  SHA512:
6
- metadata.gz: 1237f57b7b6a369669c768260dd7d0e60881cbb3480f239b0a68e7f36fc25931ff4e06a311368750e7a7b1bb35670dd63514ec24338f41b26866fe0e60438c98
7
- data.tar.gz: 04f42896bbeb5748c84d4bf8ae1e77f9ae731a843951b2776793ca30917c38e5016b381074fced963d79540e434ad58387e1e543ccee9bc96fa9e223205c37ae
6
+ metadata.gz: 9e3300ec32bbd13501c0e30db8ab68b81f09f9330e731c304be3a920821c2aaea1b143dbb046751ea19e5108bb66c740a5c307acc705e2e5e730407feb38add2
7
+ data.tar.gz: 7630243efd7bce31085c6b32340a467660858a636f8114f61ebdb9ec7b07ab5620facd0c075e64814b2766cbc34b8b88439b5ba861643cf9909c2b1d969235a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.21.0 (2023-01-04)
4
+
5
+ * Regenerated from discovery document revision 20230103
6
+
3
7
  ### v0.20.0 (2022-12-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20221201
@@ -147,6 +147,31 @@ module Google
147
147
  end
148
148
  end
149
149
 
150
+ # Metadata for response returned by the `SynthesizeLongAudio` method.
151
+ class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
152
+ include Google::Apis::Core::Hashable
153
+
154
+ # The progress of the most recent processing update in percentage, ie. 70.0%.
155
+ # Corresponds to the JSON property `progressPercentage`
156
+ # @return [Float]
157
+ attr_accessor :progress_percentage
158
+
159
+ # Time when the request was received.
160
+ # Corresponds to the JSON property `startTime`
161
+ # @return [String]
162
+ attr_accessor :start_time
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
171
+ @start_time = args[:start_time] if args.key?(:start_time)
172
+ end
173
+ end
174
+
150
175
  # The response message for Operations.ListOperations.
151
176
  class ListOperationsResponse
152
177
  include Google::Apis::Core::Hashable
@@ -322,6 +347,31 @@ module Google
322
347
  end
323
348
  end
324
349
 
350
+ # Metadata for response returned by the `SynthesizeLongAudio` method.
351
+ class SynthesizeLongAudioMetadata
352
+ include Google::Apis::Core::Hashable
353
+
354
+ # The progress of the most recent processing update in percentage, ie. 70.0%.
355
+ # Corresponds to the JSON property `progressPercentage`
356
+ # @return [Float]
357
+ attr_accessor :progress_percentage
358
+
359
+ # Time when the request was received.
360
+ # Corresponds to the JSON property `startTime`
361
+ # @return [String]
362
+ attr_accessor :start_time
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
371
+ @start_time = args[:start_time] if args.key?(:start_time)
372
+ end
373
+ end
374
+
325
375
  # The top-level message sent by the client for the `SynthesizeLongAudio` method.
326
376
  class SynthesizeLongAudioRequest
327
377
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TexttospeechV1
18
18
  # Version of the google-apis-texttospeech_v1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221201"
25
+ REVISION = "20230103"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class ListOperationsResponse
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -76,6 +82,12 @@ module Google
76
82
  include Google::Apis::Core::JsonObjectSupport
77
83
  end
78
84
 
85
+ class SynthesizeLongAudioMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
79
91
  class SynthesizeLongAudioRequest
80
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
93
 
@@ -138,6 +150,14 @@ module Google
138
150
  end
139
151
  end
140
152
 
153
+ class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
154
+ # @private
155
+ class Representation < Google::Apis::Core::JsonRepresentation
156
+ property :progress_percentage, as: 'progressPercentage'
157
+ property :start_time, as: 'startTime'
158
+ end
159
+ end
160
+
141
161
  class ListOperationsResponse
142
162
  # @private
143
163
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -184,6 +204,14 @@ module Google
184
204
  end
185
205
  end
186
206
 
207
+ class SynthesizeLongAudioMetadata
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ property :progress_percentage, as: 'progressPercentage'
211
+ property :start_time, as: 'startTime'
212
+ end
213
+ end
214
+
187
215
  class SynthesizeLongAudioRequest
188
216
  # @private
189
217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +122,40 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Synthesizes long form text asynchronously.
126
+ # @param [String] parent
127
+ # The resource states of the request in the form of `projects/*/locations/*/
128
+ # voices/*`.
129
+ # @param [Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest] synthesize_long_audio_request_object
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::TexttospeechV1::Operation] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::TexttospeechV1::Operation]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def synthesize_location_long_audio(parent, synthesize_long_audio_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:post, 'v1/{+parent}:synthesizeLongAudio', options)
149
+ command.request_representation = Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest::Representation
150
+ command.request_object = synthesize_long_audio_request_object
151
+ command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
152
+ command.response_class = Google::Apis::TexttospeechV1::Operation
153
+ command.params['parent'] = parent unless parent.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
156
+ execute_or_queue_command(command, &block)
157
+ end
158
+
125
159
  # Gets the latest state of a long-running operation. Clients can use this method
126
160
  # to poll the operation result at intervals as recommended by the API service.
127
161
  # @param [String] name
@@ -143,7 +177,7 @@ module Google
143
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
146
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
180
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
147
181
  command = make_simple_command(:get, 'v1/{+name}', options)
148
182
  command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
149
183
  command.response_class = Google::Apis::TexttospeechV1::Operation
@@ -186,8 +220,8 @@ module Google
186
220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
189
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
190
- command = make_simple_command(:get, 'v1/{+name}', options)
223
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
191
225
  command.response_representation = Google::Apis::TexttospeechV1::ListOperationsResponse::Representation
192
226
  command.response_class = Google::Apis::TexttospeechV1::ListOperationsResponse
193
227
  command.params['name'] = name unless name.nil?
@@ -199,40 +233,6 @@ module Google
199
233
  execute_or_queue_command(command, &block)
200
234
  end
201
235
 
202
- # Synthesizes long form text asynchronously.
203
- # @param [String] parent
204
- # The resource states of the request in the form of projects/*/locations/*/
205
- # voices/*.
206
- # @param [Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest] synthesize_long_audio_request_object
207
- # @param [String] fields
208
- # Selector specifying which fields to include in a partial response.
209
- # @param [String] quota_user
210
- # Available to use for quota purposes for server-side applications. Can be any
211
- # arbitrary string assigned to a user, but should not exceed 40 characters.
212
- # @param [Google::Apis::RequestOptions] options
213
- # Request-specific options
214
- #
215
- # @yield [result, err] Result & error if block supplied
216
- # @yieldparam result [Google::Apis::TexttospeechV1::Operation] parsed result object
217
- # @yieldparam err [StandardError] error object if request failed
218
- #
219
- # @return [Google::Apis::TexttospeechV1::Operation]
220
- #
221
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
222
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
223
- # @raise [Google::Apis::AuthorizationError] Authorization is required
224
- def synthesize_voice_long_audio(parent, synthesize_long_audio_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
225
- command = make_simple_command(:post, 'v1/{+parent}:SynthesizeLongAudio', options)
226
- command.request_representation = Google::Apis::TexttospeechV1::SynthesizeLongAudioRequest::Representation
227
- command.request_object = synthesize_long_audio_request_object
228
- command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
229
- command.response_class = Google::Apis::TexttospeechV1::Operation
230
- command.params['parent'] = parent unless parent.nil?
231
- command.query['fields'] = fields unless fields.nil?
232
- command.query['quotaUser'] = quota_user unless quota_user.nil?
233
- execute_or_queue_command(command, &block)
234
- end
235
-
236
236
  # Synthesizes speech synchronously: receive results after all text input has
237
237
  # been processed.
238
238
  # @param [Google::Apis::TexttospeechV1::SynthesizeSpeechRequest] synthesize_speech_request_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-texttospeech_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.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: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-04 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-texttospeech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
63
63
  post_install_message:
64
64
  rdoc_options: []