google-apis-texttospeech_v1beta1 0.18.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/texttospeech_v1beta1/classes.rb +218 -2
- data/lib/google/apis/texttospeech_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/texttospeech_v1beta1/representations.rb +95 -0
- data/lib/google/apis/texttospeech_v1beta1/service.rb +111 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f66e9fee2b09ec23ea650e8b5922f31b43ed598ddff01493c2c180d8fd9231e
|
4
|
+
data.tar.gz: 4264c6e9cf1f372be02d3d8d5863828929beb2fccbd75814275163059d799ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb79aba8e6fd06adb285187bc153412565d5970b468fe83ff3f5b7e69ea48f7a830e340bf50ea7f3db4e833ca2f5f123e19cf4996b9c53d14acddaec746c3f9
|
7
|
+
data.tar.gz: 451833e4aaf96e9aebcafd56269c56848702dccb0c58bef23c9a4587e0f806427c95ed7f81ff15d0ffbdba7b5b2e4e3805b27edca6bb1d951cb079a1f22ab94c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1beta1
|
2
2
|
|
3
|
+
### v0.20.0 (2023-01-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230103
|
6
|
+
|
7
|
+
### v0.19.0 (2022-12-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221201
|
10
|
+
|
3
11
|
### v0.18.0 (2022-10-28)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.11.0
|
@@ -118,6 +118,56 @@ module Google
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
|
+
# Metadata for response returned by the `SynthesizeLongAudio` method.
|
122
|
+
class GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata
|
123
|
+
include Google::Apis::Core::Hashable
|
124
|
+
|
125
|
+
# The progress of the most recent processing update in percentage, ie. 70.0%.
|
126
|
+
# Corresponds to the JSON property `progressPercentage`
|
127
|
+
# @return [Float]
|
128
|
+
attr_accessor :progress_percentage
|
129
|
+
|
130
|
+
# Time when the request was received.
|
131
|
+
# Corresponds to the JSON property `startTime`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :start_time
|
134
|
+
|
135
|
+
def initialize(**args)
|
136
|
+
update!(**args)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Update properties of this object
|
140
|
+
def update!(**args)
|
141
|
+
@progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
|
142
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# The response message for Operations.ListOperations.
|
147
|
+
class ListOperationsResponse
|
148
|
+
include Google::Apis::Core::Hashable
|
149
|
+
|
150
|
+
# The standard List next-page token.
|
151
|
+
# Corresponds to the JSON property `nextPageToken`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :next_page_token
|
154
|
+
|
155
|
+
# A list of operations that matches the specified filter in the request.
|
156
|
+
# Corresponds to the JSON property `operations`
|
157
|
+
# @return [Array<Google::Apis::TexttospeechV1beta1::Operation>]
|
158
|
+
attr_accessor :operations
|
159
|
+
|
160
|
+
def initialize(**args)
|
161
|
+
update!(**args)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Update properties of this object
|
165
|
+
def update!(**args)
|
166
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
167
|
+
@operations = args[:operations] if args.key?(:operations)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
121
171
|
# The message returned to the client by the `ListVoices` method.
|
122
172
|
class ListVoicesResponse
|
123
173
|
include Google::Apis::Core::Hashable
|
@@ -137,9 +187,110 @@ module Google
|
|
137
187
|
end
|
138
188
|
end
|
139
189
|
|
190
|
+
# This resource represents a long-running operation that is the result of a
|
191
|
+
# network API call.
|
192
|
+
class Operation
|
193
|
+
include Google::Apis::Core::Hashable
|
194
|
+
|
195
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
196
|
+
# , the operation is completed, and either `error` or `response` is available.
|
197
|
+
# Corresponds to the JSON property `done`
|
198
|
+
# @return [Boolean]
|
199
|
+
attr_accessor :done
|
200
|
+
alias_method :done?, :done
|
201
|
+
|
202
|
+
# The `Status` type defines a logical error model that is suitable for different
|
203
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
204
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
205
|
+
# data: error code, error message, and error details. You can find out more
|
206
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
207
|
+
# //cloud.google.com/apis/design/errors).
|
208
|
+
# Corresponds to the JSON property `error`
|
209
|
+
# @return [Google::Apis::TexttospeechV1beta1::Status]
|
210
|
+
attr_accessor :error
|
211
|
+
|
212
|
+
# Service-specific metadata associated with the operation. It typically contains
|
213
|
+
# progress information and common metadata such as create time. Some services
|
214
|
+
# might not provide such metadata. Any method that returns a long-running
|
215
|
+
# operation should document the metadata type, if any.
|
216
|
+
# Corresponds to the JSON property `metadata`
|
217
|
+
# @return [Hash<String,Object>]
|
218
|
+
attr_accessor :metadata
|
219
|
+
|
220
|
+
# The server-assigned name, which is only unique within the same service that
|
221
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
222
|
+
# be a resource name ending with `operations/`unique_id``.
|
223
|
+
# Corresponds to the JSON property `name`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :name
|
226
|
+
|
227
|
+
# The normal response of the operation in case of success. If the original
|
228
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
229
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
230
|
+
# the response should be the resource. For other methods, the response should
|
231
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
232
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
233
|
+
# response type is `TakeSnapshotResponse`.
|
234
|
+
# Corresponds to the JSON property `response`
|
235
|
+
# @return [Hash<String,Object>]
|
236
|
+
attr_accessor :response
|
237
|
+
|
238
|
+
def initialize(**args)
|
239
|
+
update!(**args)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Update properties of this object
|
243
|
+
def update!(**args)
|
244
|
+
@done = args[:done] if args.key?(:done)
|
245
|
+
@error = args[:error] if args.key?(:error)
|
246
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
247
|
+
@name = args[:name] if args.key?(:name)
|
248
|
+
@response = args[:response] if args.key?(:response)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
# The `Status` type defines a logical error model that is suitable for different
|
253
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
254
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
255
|
+
# data: error code, error message, and error details. You can find out more
|
256
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
257
|
+
# //cloud.google.com/apis/design/errors).
|
258
|
+
class Status
|
259
|
+
include Google::Apis::Core::Hashable
|
260
|
+
|
261
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
262
|
+
# Corresponds to the JSON property `code`
|
263
|
+
# @return [Fixnum]
|
264
|
+
attr_accessor :code
|
265
|
+
|
266
|
+
# A list of messages that carry the error details. There is a common set of
|
267
|
+
# message types for APIs to use.
|
268
|
+
# Corresponds to the JSON property `details`
|
269
|
+
# @return [Array<Hash<String,Object>>]
|
270
|
+
attr_accessor :details
|
271
|
+
|
272
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
273
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
274
|
+
# field, or localized by the client.
|
275
|
+
# Corresponds to the JSON property `message`
|
276
|
+
# @return [String]
|
277
|
+
attr_accessor :message
|
278
|
+
|
279
|
+
def initialize(**args)
|
280
|
+
update!(**args)
|
281
|
+
end
|
282
|
+
|
283
|
+
# Update properties of this object
|
284
|
+
def update!(**args)
|
285
|
+
@code = args[:code] if args.key?(:code)
|
286
|
+
@details = args[:details] if args.key?(:details)
|
287
|
+
@message = args[:message] if args.key?(:message)
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
140
291
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
141
292
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
142
|
-
# The input size is limited to 5000
|
293
|
+
# The input size is limited to 5000 bytes.
|
143
294
|
class SynthesisInput
|
144
295
|
include Google::Apis::Core::Hashable
|
145
296
|
|
@@ -167,6 +318,71 @@ module Google
|
|
167
318
|
end
|
168
319
|
end
|
169
320
|
|
321
|
+
# Metadata for response returned by the `SynthesizeLongAudio` method.
|
322
|
+
class SynthesizeLongAudioMetadata
|
323
|
+
include Google::Apis::Core::Hashable
|
324
|
+
|
325
|
+
# The progress of the most recent processing update in percentage, ie. 70.0%.
|
326
|
+
# Corresponds to the JSON property `progressPercentage`
|
327
|
+
# @return [Float]
|
328
|
+
attr_accessor :progress_percentage
|
329
|
+
|
330
|
+
# Time when the request was received.
|
331
|
+
# Corresponds to the JSON property `startTime`
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :start_time
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@progress_percentage = args[:progress_percentage] if args.key?(:progress_percentage)
|
342
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
# The top-level message sent by the client for the `SynthesizeLongAudio` method.
|
347
|
+
class SynthesizeLongAudioRequest
|
348
|
+
include Google::Apis::Core::Hashable
|
349
|
+
|
350
|
+
# Description of audio data to be synthesized.
|
351
|
+
# Corresponds to the JSON property `audioConfig`
|
352
|
+
# @return [Google::Apis::TexttospeechV1beta1::AudioConfig]
|
353
|
+
attr_accessor :audio_config
|
354
|
+
|
355
|
+
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
356
|
+
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
357
|
+
# The input size is limited to 5000 bytes.
|
358
|
+
# Corresponds to the JSON property `input`
|
359
|
+
# @return [Google::Apis::TexttospeechV1beta1::SynthesisInput]
|
360
|
+
attr_accessor :input
|
361
|
+
|
362
|
+
# Specifies a Cloud Storage URI for the synthesis results. Must be specified in
|
363
|
+
# the format: `gs://bucket_name/object_name`, and the bucket must already exist.
|
364
|
+
# Corresponds to the JSON property `outputGcsUri`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :output_gcs_uri
|
367
|
+
|
368
|
+
# Description of which voice to use for a synthesis request.
|
369
|
+
# Corresponds to the JSON property `voice`
|
370
|
+
# @return [Google::Apis::TexttospeechV1beta1::VoiceSelectionParams]
|
371
|
+
attr_accessor :voice
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
380
|
+
@input = args[:input] if args.key?(:input)
|
381
|
+
@output_gcs_uri = args[:output_gcs_uri] if args.key?(:output_gcs_uri)
|
382
|
+
@voice = args[:voice] if args.key?(:voice)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
170
386
|
# The top-level message sent by the client for the `SynthesizeSpeech` method.
|
171
387
|
class SynthesizeSpeechRequest
|
172
388
|
include Google::Apis::Core::Hashable
|
@@ -183,7 +399,7 @@ module Google
|
|
183
399
|
|
184
400
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
185
401
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
186
|
-
# The input size is limited to 5000
|
402
|
+
# The input size is limited to 5000 bytes.
|
187
403
|
# Corresponds to the JSON property `input`
|
188
404
|
# @return [Google::Apis::TexttospeechV1beta1::SynthesisInput]
|
189
405
|
attr_accessor :input
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TexttospeechV1beta1
|
18
18
|
# Version of the google-apis-texttospeech_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.20.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 = "
|
25
|
+
REVISION = "20230103"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,18 +34,54 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListOperationsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
37
49
|
class ListVoicesResponse
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
40
52
|
include Google::Apis::Core::JsonObjectSupport
|
41
53
|
end
|
42
54
|
|
55
|
+
class Operation
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Status
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
43
67
|
class SynthesisInput
|
44
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
69
|
|
46
70
|
include Google::Apis::Core::JsonObjectSupport
|
47
71
|
end
|
48
72
|
|
73
|
+
class SynthesizeLongAudioMetadata
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class SynthesizeLongAudioRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
49
85
|
class SynthesizeSpeechRequest
|
50
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
87
|
|
@@ -96,6 +132,23 @@ module Google
|
|
96
132
|
end
|
97
133
|
end
|
98
134
|
|
135
|
+
class GoogleCloudTexttospeechV1beta1SynthesizeLongAudioMetadata
|
136
|
+
# @private
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
+
property :progress_percentage, as: 'progressPercentage'
|
139
|
+
property :start_time, as: 'startTime'
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
class ListOperationsResponse
|
144
|
+
# @private
|
145
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
146
|
+
property :next_page_token, as: 'nextPageToken'
|
147
|
+
collection :operations, as: 'operations', class: Google::Apis::TexttospeechV1beta1::Operation, decorator: Google::Apis::TexttospeechV1beta1::Operation::Representation
|
148
|
+
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
99
152
|
class ListVoicesResponse
|
100
153
|
# @private
|
101
154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -104,6 +157,27 @@ module Google
|
|
104
157
|
end
|
105
158
|
end
|
106
159
|
|
160
|
+
class Operation
|
161
|
+
# @private
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
+
property :done, as: 'done'
|
164
|
+
property :error, as: 'error', class: Google::Apis::TexttospeechV1beta1::Status, decorator: Google::Apis::TexttospeechV1beta1::Status::Representation
|
165
|
+
|
166
|
+
hash :metadata, as: 'metadata'
|
167
|
+
property :name, as: 'name'
|
168
|
+
hash :response, as: 'response'
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class Status
|
173
|
+
# @private
|
174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
175
|
+
property :code, as: 'code'
|
176
|
+
collection :details, as: 'details'
|
177
|
+
property :message, as: 'message'
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
107
181
|
class SynthesisInput
|
108
182
|
# @private
|
109
183
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -112,6 +186,27 @@ module Google
|
|
112
186
|
end
|
113
187
|
end
|
114
188
|
|
189
|
+
class SynthesizeLongAudioMetadata
|
190
|
+
# @private
|
191
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
192
|
+
property :progress_percentage, as: 'progressPercentage'
|
193
|
+
property :start_time, as: 'startTime'
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class SynthesizeLongAudioRequest
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1beta1::AudioConfig, decorator: Google::Apis::TexttospeechV1beta1::AudioConfig::Representation
|
201
|
+
|
202
|
+
property :input, as: 'input', class: Google::Apis::TexttospeechV1beta1::SynthesisInput, decorator: Google::Apis::TexttospeechV1beta1::SynthesisInput::Representation
|
203
|
+
|
204
|
+
property :output_gcs_uri, as: 'outputGcsUri'
|
205
|
+
property :voice, as: 'voice', class: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceSelectionParams::Representation
|
206
|
+
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
115
210
|
class SynthesizeSpeechRequest
|
116
211
|
# @private
|
117
212
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,6 +49,117 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Synthesizes long form text asynchronously.
|
53
|
+
# @param [String] parent
|
54
|
+
# The resource states of the request in the form of `projects/*/locations/*/
|
55
|
+
# voices/*`.
|
56
|
+
# @param [Google::Apis::TexttospeechV1beta1::SynthesizeLongAudioRequest] synthesize_long_audio_request_object
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::TexttospeechV1beta1::Operation] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::TexttospeechV1beta1::Operation]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def synthesize_location_long_audio(parent, synthesize_long_audio_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:synthesizeLongAudio', options)
|
76
|
+
command.request_representation = Google::Apis::TexttospeechV1beta1::SynthesizeLongAudioRequest::Representation
|
77
|
+
command.request_object = synthesize_long_audio_request_object
|
78
|
+
command.response_representation = Google::Apis::TexttospeechV1beta1::Operation::Representation
|
79
|
+
command.response_class = Google::Apis::TexttospeechV1beta1::Operation
|
80
|
+
command.params['parent'] = parent unless parent.nil?
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
execute_or_queue_command(command, &block)
|
84
|
+
end
|
85
|
+
|
86
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
87
|
+
# to poll the operation result at intervals as recommended by the API service.
|
88
|
+
# @param [String] name
|
89
|
+
# The name of the operation resource.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::TexttospeechV1beta1::Operation] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::TexttospeechV1beta1::Operation]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
109
|
+
command.response_representation = Google::Apis::TexttospeechV1beta1::Operation::Representation
|
110
|
+
command.response_class = Google::Apis::TexttospeechV1beta1::Operation
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
execute_or_queue_command(command, &block)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Lists operations that match the specified filter in the request. If the server
|
118
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
119
|
+
# binding allows API services to override the binding to use different resource
|
120
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
121
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
122
|
+
# service configuration. For backwards compatibility, the default name includes
|
123
|
+
# the operations collection id, however overriding users must ensure the name
|
124
|
+
# binding is the parent resource, without the operations collection id.
|
125
|
+
# @param [String] name
|
126
|
+
# The name of the operation's parent resource.
|
127
|
+
# @param [String] filter
|
128
|
+
# The standard list filter.
|
129
|
+
# @param [Fixnum] page_size
|
130
|
+
# The standard list page size.
|
131
|
+
# @param [String] page_token
|
132
|
+
# The standard list page token.
|
133
|
+
# @param [String] fields
|
134
|
+
# Selector specifying which fields to include in a partial response.
|
135
|
+
# @param [String] quota_user
|
136
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
137
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
138
|
+
# @param [Google::Apis::RequestOptions] options
|
139
|
+
# Request-specific options
|
140
|
+
#
|
141
|
+
# @yield [result, err] Result & error if block supplied
|
142
|
+
# @yieldparam result [Google::Apis::TexttospeechV1beta1::ListOperationsResponse] parsed result object
|
143
|
+
# @yieldparam err [StandardError] error object if request failed
|
144
|
+
#
|
145
|
+
# @return [Google::Apis::TexttospeechV1beta1::ListOperationsResponse]
|
146
|
+
#
|
147
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
148
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
149
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
150
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
151
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/operations', options)
|
152
|
+
command.response_representation = Google::Apis::TexttospeechV1beta1::ListOperationsResponse::Representation
|
153
|
+
command.response_class = Google::Apis::TexttospeechV1beta1::ListOperationsResponse
|
154
|
+
command.params['name'] = name unless name.nil?
|
155
|
+
command.query['filter'] = filter unless filter.nil?
|
156
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
157
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
158
|
+
command.query['fields'] = fields unless fields.nil?
|
159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
execute_or_queue_command(command, &block)
|
161
|
+
end
|
162
|
+
|
52
163
|
# Synthesizes speech synchronously: receive results after all text input has
|
53
164
|
# been processed.
|
54
165
|
# @param [Google::Apis::TexttospeechV1beta1::SynthesizeSpeechRequest] synthesize_speech_request_object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-texttospeech_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.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:
|
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_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.20.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|