google-apis-texttospeech_v1 0.20.0 → 0.22.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: 73bfc9e3fadf1909d2d1f2d812360762375d682d548d3818713e82d0a417cfdb
4
+ data.tar.gz: fada7d2e4a5bc2f0fea72a5295a9443689069e8bcf728508e7091250f485192a
5
5
  SHA512:
6
- metadata.gz: 1237f57b7b6a369669c768260dd7d0e60881cbb3480f239b0a68e7f36fc25931ff4e06a311368750e7a7b1bb35670dd63514ec24338f41b26866fe0e60438c98
7
- data.tar.gz: 04f42896bbeb5748c84d4bf8ae1e77f9ae731a843951b2776793ca30917c38e5016b381074fced963d79540e434ad58387e1e543ccee9bc96fa9e223205c37ae
6
+ metadata.gz: 4b4366164f272f1fa1483dbbeafce6b88ded09cfc7613c08f348b60831d5cc95dab9a5f849bf11560f2b5610654cbd7a30f5e1db5d525e4e6a507bedab816858
7
+ data.tar.gz: e4285faa2793b3a4ab7edef5cf3969cc444744a99e6175d661dbd2a820dd5944e91a0a2660d3a8b7acc4d381e1520b1aeecd5bcd9939d54b1737020dce1f826d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.22.0 (2023-02-15)
4
+
5
+ * Regenerated using generator version 0.12.0
6
+
7
+ ### v0.21.0 (2023-01-04)
8
+
9
+ * Regenerated from discovery document revision 20230103
10
+
3
11
  ### v0.20.0 (2022-12-07)
4
12
 
5
13
  * 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.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.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.22.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-02-19 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.9.1
19
+ version: 0.11.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.9.1
29
+ version: 0.11.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-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.22.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: []
@@ -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.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Text-to-Speech API V1