google-apis-texttospeech_v1 0.19.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6d3aad95f743f94a78a370aa375b2d64a5633c002de80439348520149ccfadf
|
4
|
+
data.tar.gz: ac7451a28cf522be6a5659743ef9723d84248653f3acca8a9c4baddb7b789f3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e3300ec32bbd13501c0e30db8ab68b81f09f9330e731c304be3a920821c2aaea1b143dbb046751ea19e5108bb66c740a5c307acc705e2e5e730407feb38add2
|
7
|
+
data.tar.gz: 7630243efd7bce31085c6b32340a467660858a636f8114f61ebdb9ec7b07ab5620facd0c075e64814b2766cbc34b8b88439b5ba861643cf9909c2b1d969235a1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
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
|
+
|
7
|
+
### v0.20.0 (2022-12-07)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221201
|
10
|
+
|
3
11
|
### v0.19.0 (2022-10-27)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.11.0
|
@@ -93,6 +93,19 @@ module Google
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
# The request message for Operations.CancelOperation.
|
97
|
+
class CancelOperationRequest
|
98
|
+
include Google::Apis::Core::Hashable
|
99
|
+
|
100
|
+
def initialize(**args)
|
101
|
+
update!(**args)
|
102
|
+
end
|
103
|
+
|
104
|
+
# Update properties of this object
|
105
|
+
def update!(**args)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
96
109
|
# Description of the custom voice to be synthesized.
|
97
110
|
class CustomVoiceParams
|
98
111
|
include Google::Apis::Core::Hashable
|
@@ -118,6 +131,72 @@ module Google
|
|
118
131
|
end
|
119
132
|
end
|
120
133
|
|
134
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
135
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
136
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
137
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
138
|
+
class Empty
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
def initialize(**args)
|
142
|
+
update!(**args)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Update properties of this object
|
146
|
+
def update!(**args)
|
147
|
+
end
|
148
|
+
end
|
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
|
+
|
175
|
+
# The response message for Operations.ListOperations.
|
176
|
+
class ListOperationsResponse
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
# The standard List next-page token.
|
180
|
+
# Corresponds to the JSON property `nextPageToken`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :next_page_token
|
183
|
+
|
184
|
+
# A list of operations that matches the specified filter in the request.
|
185
|
+
# Corresponds to the JSON property `operations`
|
186
|
+
# @return [Array<Google::Apis::TexttospeechV1::Operation>]
|
187
|
+
attr_accessor :operations
|
188
|
+
|
189
|
+
def initialize(**args)
|
190
|
+
update!(**args)
|
191
|
+
end
|
192
|
+
|
193
|
+
# Update properties of this object
|
194
|
+
def update!(**args)
|
195
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
196
|
+
@operations = args[:operations] if args.key?(:operations)
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
121
200
|
# The message returned to the client by the `ListVoices` method.
|
122
201
|
class ListVoicesResponse
|
123
202
|
include Google::Apis::Core::Hashable
|
@@ -137,9 +216,110 @@ module Google
|
|
137
216
|
end
|
138
217
|
end
|
139
218
|
|
219
|
+
# This resource represents a long-running operation that is the result of a
|
220
|
+
# network API call.
|
221
|
+
class Operation
|
222
|
+
include Google::Apis::Core::Hashable
|
223
|
+
|
224
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
225
|
+
# , the operation is completed, and either `error` or `response` is available.
|
226
|
+
# Corresponds to the JSON property `done`
|
227
|
+
# @return [Boolean]
|
228
|
+
attr_accessor :done
|
229
|
+
alias_method :done?, :done
|
230
|
+
|
231
|
+
# The `Status` type defines a logical error model that is suitable for different
|
232
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
233
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
234
|
+
# data: error code, error message, and error details. You can find out more
|
235
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
236
|
+
# //cloud.google.com/apis/design/errors).
|
237
|
+
# Corresponds to the JSON property `error`
|
238
|
+
# @return [Google::Apis::TexttospeechV1::Status]
|
239
|
+
attr_accessor :error
|
240
|
+
|
241
|
+
# Service-specific metadata associated with the operation. It typically contains
|
242
|
+
# progress information and common metadata such as create time. Some services
|
243
|
+
# might not provide such metadata. Any method that returns a long-running
|
244
|
+
# operation should document the metadata type, if any.
|
245
|
+
# Corresponds to the JSON property `metadata`
|
246
|
+
# @return [Hash<String,Object>]
|
247
|
+
attr_accessor :metadata
|
248
|
+
|
249
|
+
# The server-assigned name, which is only unique within the same service that
|
250
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
251
|
+
# be a resource name ending with `operations/`unique_id``.
|
252
|
+
# Corresponds to the JSON property `name`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :name
|
255
|
+
|
256
|
+
# The normal response of the operation in case of success. If the original
|
257
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
258
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
259
|
+
# the response should be the resource. For other methods, the response should
|
260
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
261
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
262
|
+
# response type is `TakeSnapshotResponse`.
|
263
|
+
# Corresponds to the JSON property `response`
|
264
|
+
# @return [Hash<String,Object>]
|
265
|
+
attr_accessor :response
|
266
|
+
|
267
|
+
def initialize(**args)
|
268
|
+
update!(**args)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Update properties of this object
|
272
|
+
def update!(**args)
|
273
|
+
@done = args[:done] if args.key?(:done)
|
274
|
+
@error = args[:error] if args.key?(:error)
|
275
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
276
|
+
@name = args[:name] if args.key?(:name)
|
277
|
+
@response = args[:response] if args.key?(:response)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# The `Status` type defines a logical error model that is suitable for different
|
282
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
283
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
284
|
+
# data: error code, error message, and error details. You can find out more
|
285
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
286
|
+
# //cloud.google.com/apis/design/errors).
|
287
|
+
class Status
|
288
|
+
include Google::Apis::Core::Hashable
|
289
|
+
|
290
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
291
|
+
# Corresponds to the JSON property `code`
|
292
|
+
# @return [Fixnum]
|
293
|
+
attr_accessor :code
|
294
|
+
|
295
|
+
# A list of messages that carry the error details. There is a common set of
|
296
|
+
# message types for APIs to use.
|
297
|
+
# Corresponds to the JSON property `details`
|
298
|
+
# @return [Array<Hash<String,Object>>]
|
299
|
+
attr_accessor :details
|
300
|
+
|
301
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
302
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
303
|
+
# field, or localized by the client.
|
304
|
+
# Corresponds to the JSON property `message`
|
305
|
+
# @return [String]
|
306
|
+
attr_accessor :message
|
307
|
+
|
308
|
+
def initialize(**args)
|
309
|
+
update!(**args)
|
310
|
+
end
|
311
|
+
|
312
|
+
# Update properties of this object
|
313
|
+
def update!(**args)
|
314
|
+
@code = args[:code] if args.key?(:code)
|
315
|
+
@details = args[:details] if args.key?(:details)
|
316
|
+
@message = args[:message] if args.key?(:message)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
140
320
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
141
321
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
142
|
-
# The input size is limited to 5000
|
322
|
+
# The input size is limited to 5000 bytes.
|
143
323
|
class SynthesisInput
|
144
324
|
include Google::Apis::Core::Hashable
|
145
325
|
|
@@ -167,6 +347,71 @@ module Google
|
|
167
347
|
end
|
168
348
|
end
|
169
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
|
+
|
375
|
+
# The top-level message sent by the client for the `SynthesizeLongAudio` method.
|
376
|
+
class SynthesizeLongAudioRequest
|
377
|
+
include Google::Apis::Core::Hashable
|
378
|
+
|
379
|
+
# Description of audio data to be synthesized.
|
380
|
+
# Corresponds to the JSON property `audioConfig`
|
381
|
+
# @return [Google::Apis::TexttospeechV1::AudioConfig]
|
382
|
+
attr_accessor :audio_config
|
383
|
+
|
384
|
+
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
385
|
+
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
386
|
+
# The input size is limited to 5000 bytes.
|
387
|
+
# Corresponds to the JSON property `input`
|
388
|
+
# @return [Google::Apis::TexttospeechV1::SynthesisInput]
|
389
|
+
attr_accessor :input
|
390
|
+
|
391
|
+
# Specifies a Cloud Storage URI for the synthesis results. Must be specified in
|
392
|
+
# the format: `gs://bucket_name/object_name`, and the bucket must already exist.
|
393
|
+
# Corresponds to the JSON property `outputGcsUri`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :output_gcs_uri
|
396
|
+
|
397
|
+
# Description of which voice to use for a synthesis request.
|
398
|
+
# Corresponds to the JSON property `voice`
|
399
|
+
# @return [Google::Apis::TexttospeechV1::VoiceSelectionParams]
|
400
|
+
attr_accessor :voice
|
401
|
+
|
402
|
+
def initialize(**args)
|
403
|
+
update!(**args)
|
404
|
+
end
|
405
|
+
|
406
|
+
# Update properties of this object
|
407
|
+
def update!(**args)
|
408
|
+
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
409
|
+
@input = args[:input] if args.key?(:input)
|
410
|
+
@output_gcs_uri = args[:output_gcs_uri] if args.key?(:output_gcs_uri)
|
411
|
+
@voice = args[:voice] if args.key?(:voice)
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
170
415
|
# The top-level message sent by the client for the `SynthesizeSpeech` method.
|
171
416
|
class SynthesizeSpeechRequest
|
172
417
|
include Google::Apis::Core::Hashable
|
@@ -178,7 +423,7 @@ module Google
|
|
178
423
|
|
179
424
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
180
425
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
181
|
-
# The input size is limited to 5000
|
426
|
+
# The input size is limited to 5000 bytes.
|
182
427
|
# Corresponds to the JSON property `input`
|
183
428
|
# @return [Google::Apis::TexttospeechV1::SynthesisInput]
|
184
429
|
attr_accessor :input
|
@@ -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.
|
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 = "
|
25
|
+
REVISION = "20230103"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,24 +28,72 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class CancelOperationRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class CustomVoiceParams
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class Empty
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListOperationsResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
37
61
|
class ListVoicesResponse
|
38
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
63
|
|
40
64
|
include Google::Apis::Core::JsonObjectSupport
|
41
65
|
end
|
42
66
|
|
67
|
+
class Operation
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Status
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
43
79
|
class SynthesisInput
|
44
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
81
|
|
46
82
|
include Google::Apis::Core::JsonObjectSupport
|
47
83
|
end
|
48
84
|
|
85
|
+
class SynthesizeLongAudioMetadata
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class SynthesizeLongAudioRequest
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
49
97
|
class SynthesizeSpeechRequest
|
50
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
99
|
|
@@ -82,6 +130,12 @@ module Google
|
|
82
130
|
end
|
83
131
|
end
|
84
132
|
|
133
|
+
class CancelOperationRequest
|
134
|
+
# @private
|
135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
85
139
|
class CustomVoiceParams
|
86
140
|
# @private
|
87
141
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -90,6 +144,29 @@ module Google
|
|
90
144
|
end
|
91
145
|
end
|
92
146
|
|
147
|
+
class Empty
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
end
|
151
|
+
end
|
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
|
+
|
161
|
+
class ListOperationsResponse
|
162
|
+
# @private
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
+
property :next_page_token, as: 'nextPageToken'
|
165
|
+
collection :operations, as: 'operations', class: Google::Apis::TexttospeechV1::Operation, decorator: Google::Apis::TexttospeechV1::Operation::Representation
|
166
|
+
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
93
170
|
class ListVoicesResponse
|
94
171
|
# @private
|
95
172
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -98,6 +175,27 @@ module Google
|
|
98
175
|
end
|
99
176
|
end
|
100
177
|
|
178
|
+
class Operation
|
179
|
+
# @private
|
180
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
181
|
+
property :done, as: 'done'
|
182
|
+
property :error, as: 'error', class: Google::Apis::TexttospeechV1::Status, decorator: Google::Apis::TexttospeechV1::Status::Representation
|
183
|
+
|
184
|
+
hash :metadata, as: 'metadata'
|
185
|
+
property :name, as: 'name'
|
186
|
+
hash :response, as: 'response'
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class Status
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
property :code, as: 'code'
|
194
|
+
collection :details, as: 'details'
|
195
|
+
property :message, as: 'message'
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
101
199
|
class SynthesisInput
|
102
200
|
# @private
|
103
201
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -106,6 +204,27 @@ module Google
|
|
106
204
|
end
|
107
205
|
end
|
108
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
|
+
|
215
|
+
class SynthesizeLongAudioRequest
|
216
|
+
# @private
|
217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
218
|
+
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::AudioConfig, decorator: Google::Apis::TexttospeechV1::AudioConfig::Representation
|
219
|
+
|
220
|
+
property :input, as: 'input', class: Google::Apis::TexttospeechV1::SynthesisInput, decorator: Google::Apis::TexttospeechV1::SynthesisInput::Representation
|
221
|
+
|
222
|
+
property :output_gcs_uri, as: 'outputGcsUri'
|
223
|
+
property :voice, as: 'voice', class: Google::Apis::TexttospeechV1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1::VoiceSelectionParams::Representation
|
224
|
+
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
109
228
|
class SynthesizeSpeechRequest
|
110
229
|
# @private
|
111
230
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,6 +49,190 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
53
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
54
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
55
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
56
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
57
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
58
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
59
|
+
# corresponding to `Code.CANCELLED`.
|
60
|
+
# @param [String] name
|
61
|
+
# The name of the operation resource to be cancelled.
|
62
|
+
# @param [Google::Apis::TexttospeechV1::CancelOperationRequest] cancel_operation_request_object
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::Empty] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::TexttospeechV1::Empty]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
82
|
+
command.request_representation = Google::Apis::TexttospeechV1::CancelOperationRequest::Representation
|
83
|
+
command.request_object = cancel_operation_request_object
|
84
|
+
command.response_representation = Google::Apis::TexttospeechV1::Empty::Representation
|
85
|
+
command.response_class = Google::Apis::TexttospeechV1::Empty
|
86
|
+
command.params['name'] = name unless name.nil?
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
88
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
89
|
+
execute_or_queue_command(command, &block)
|
90
|
+
end
|
91
|
+
|
92
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
93
|
+
# longer interested in the operation result. It does not cancel the operation.
|
94
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
95
|
+
# UNIMPLEMENTED`.
|
96
|
+
# @param [String] name
|
97
|
+
# The name of the operation resource to be deleted.
|
98
|
+
# @param [String] fields
|
99
|
+
# Selector specifying which fields to include in a partial response.
|
100
|
+
# @param [String] quota_user
|
101
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
102
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
103
|
+
# @param [Google::Apis::RequestOptions] options
|
104
|
+
# Request-specific options
|
105
|
+
#
|
106
|
+
# @yield [result, err] Result & error if block supplied
|
107
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::Empty] parsed result object
|
108
|
+
# @yieldparam err [StandardError] error object if request failed
|
109
|
+
#
|
110
|
+
# @return [Google::Apis::TexttospeechV1::Empty]
|
111
|
+
#
|
112
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
116
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
117
|
+
command.response_representation = Google::Apis::TexttospeechV1::Empty::Representation
|
118
|
+
command.response_class = Google::Apis::TexttospeechV1::Empty
|
119
|
+
command.params['name'] = name unless name.nil?
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
122
|
+
execute_or_queue_command(command, &block)
|
123
|
+
end
|
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
|
+
|
159
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
160
|
+
# to poll the operation result at intervals as recommended by the API service.
|
161
|
+
# @param [String] name
|
162
|
+
# The name of the operation resource.
|
163
|
+
# @param [String] fields
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# @param [Google::Apis::RequestOptions] options
|
169
|
+
# Request-specific options
|
170
|
+
#
|
171
|
+
# @yield [result, err] Result & error if block supplied
|
172
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::Operation] parsed result object
|
173
|
+
# @yieldparam err [StandardError] error object if request failed
|
174
|
+
#
|
175
|
+
# @return [Google::Apis::TexttospeechV1::Operation]
|
176
|
+
#
|
177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
181
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
182
|
+
command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
|
183
|
+
command.response_class = Google::Apis::TexttospeechV1::Operation
|
184
|
+
command.params['name'] = name unless name.nil?
|
185
|
+
command.query['fields'] = fields unless fields.nil?
|
186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
187
|
+
execute_or_queue_command(command, &block)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Lists operations that match the specified filter in the request. If the server
|
191
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
192
|
+
# binding allows API services to override the binding to use different resource
|
193
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
194
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
195
|
+
# service configuration. For backwards compatibility, the default name includes
|
196
|
+
# the operations collection id, however overriding users must ensure the name
|
197
|
+
# binding is the parent resource, without the operations collection id.
|
198
|
+
# @param [String] name
|
199
|
+
# The name of the operation's parent resource.
|
200
|
+
# @param [String] filter
|
201
|
+
# The standard list filter.
|
202
|
+
# @param [Fixnum] page_size
|
203
|
+
# The standard list page size.
|
204
|
+
# @param [String] page_token
|
205
|
+
# The standard list page token.
|
206
|
+
# @param [String] fields
|
207
|
+
# Selector specifying which fields to include in a partial response.
|
208
|
+
# @param [String] quota_user
|
209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
211
|
+
# @param [Google::Apis::RequestOptions] options
|
212
|
+
# Request-specific options
|
213
|
+
#
|
214
|
+
# @yield [result, err] Result & error if block supplied
|
215
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::ListOperationsResponse] parsed result object
|
216
|
+
# @yieldparam err [StandardError] error object if request failed
|
217
|
+
#
|
218
|
+
# @return [Google::Apis::TexttospeechV1::ListOperationsResponse]
|
219
|
+
#
|
220
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
221
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
222
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
225
|
+
command.response_representation = Google::Apis::TexttospeechV1::ListOperationsResponse::Representation
|
226
|
+
command.response_class = Google::Apis::TexttospeechV1::ListOperationsResponse
|
227
|
+
command.params['name'] = name unless name.nil?
|
228
|
+
command.query['filter'] = filter unless filter.nil?
|
229
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
230
|
+
command.query['pageToken'] = page_token unless page_token.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
|
+
|
52
236
|
# Synthesizes speech synchronously: receive results after all text input has
|
53
237
|
# been processed.
|
54
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.
|
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:
|
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.
|
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: []
|