google-apis-texttospeech_v1 0.19.0 → 0.20.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: dd1a9e3c6227dba396f5da432c0176b67d10f68a4544ada1f8bbd8a6581fd21e
|
4
|
+
data.tar.gz: f439f1b7b7df1af24c7e2b8a3d6c6784d674ca27a12ebc7c092f51afc886b62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1237f57b7b6a369669c768260dd7d0e60881cbb3480f239b0a68e7f36fc25931ff4e06a311368750e7a7b1bb35670dd63514ec24338f41b26866fe0e60438c98
|
7
|
+
data.tar.gz: 04f42896bbeb5748c84d4bf8ae1e77f9ae731a843951b2776793ca30917c38e5016b381074fced963d79540e434ad58387e1e543ccee9bc96fa9e223205c37ae
|
data/CHANGELOG.md
CHANGED
@@ -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,47 @@ 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
|
+
# The response message for Operations.ListOperations.
|
151
|
+
class ListOperationsResponse
|
152
|
+
include Google::Apis::Core::Hashable
|
153
|
+
|
154
|
+
# The standard List next-page token.
|
155
|
+
# Corresponds to the JSON property `nextPageToken`
|
156
|
+
# @return [String]
|
157
|
+
attr_accessor :next_page_token
|
158
|
+
|
159
|
+
# A list of operations that matches the specified filter in the request.
|
160
|
+
# Corresponds to the JSON property `operations`
|
161
|
+
# @return [Array<Google::Apis::TexttospeechV1::Operation>]
|
162
|
+
attr_accessor :operations
|
163
|
+
|
164
|
+
def initialize(**args)
|
165
|
+
update!(**args)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Update properties of this object
|
169
|
+
def update!(**args)
|
170
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
171
|
+
@operations = args[:operations] if args.key?(:operations)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
121
175
|
# The message returned to the client by the `ListVoices` method.
|
122
176
|
class ListVoicesResponse
|
123
177
|
include Google::Apis::Core::Hashable
|
@@ -137,9 +191,110 @@ module Google
|
|
137
191
|
end
|
138
192
|
end
|
139
193
|
|
194
|
+
# This resource represents a long-running operation that is the result of a
|
195
|
+
# network API call.
|
196
|
+
class Operation
|
197
|
+
include Google::Apis::Core::Hashable
|
198
|
+
|
199
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
200
|
+
# , the operation is completed, and either `error` or `response` is available.
|
201
|
+
# Corresponds to the JSON property `done`
|
202
|
+
# @return [Boolean]
|
203
|
+
attr_accessor :done
|
204
|
+
alias_method :done?, :done
|
205
|
+
|
206
|
+
# The `Status` type defines a logical error model that is suitable for different
|
207
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
208
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
209
|
+
# data: error code, error message, and error details. You can find out more
|
210
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
211
|
+
# //cloud.google.com/apis/design/errors).
|
212
|
+
# Corresponds to the JSON property `error`
|
213
|
+
# @return [Google::Apis::TexttospeechV1::Status]
|
214
|
+
attr_accessor :error
|
215
|
+
|
216
|
+
# Service-specific metadata associated with the operation. It typically contains
|
217
|
+
# progress information and common metadata such as create time. Some services
|
218
|
+
# might not provide such metadata. Any method that returns a long-running
|
219
|
+
# operation should document the metadata type, if any.
|
220
|
+
# Corresponds to the JSON property `metadata`
|
221
|
+
# @return [Hash<String,Object>]
|
222
|
+
attr_accessor :metadata
|
223
|
+
|
224
|
+
# The server-assigned name, which is only unique within the same service that
|
225
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
226
|
+
# be a resource name ending with `operations/`unique_id``.
|
227
|
+
# Corresponds to the JSON property `name`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :name
|
230
|
+
|
231
|
+
# The normal response of the operation in case of success. If the original
|
232
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
233
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
234
|
+
# the response should be the resource. For other methods, the response should
|
235
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
236
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
237
|
+
# response type is `TakeSnapshotResponse`.
|
238
|
+
# Corresponds to the JSON property `response`
|
239
|
+
# @return [Hash<String,Object>]
|
240
|
+
attr_accessor :response
|
241
|
+
|
242
|
+
def initialize(**args)
|
243
|
+
update!(**args)
|
244
|
+
end
|
245
|
+
|
246
|
+
# Update properties of this object
|
247
|
+
def update!(**args)
|
248
|
+
@done = args[:done] if args.key?(:done)
|
249
|
+
@error = args[:error] if args.key?(:error)
|
250
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
251
|
+
@name = args[:name] if args.key?(:name)
|
252
|
+
@response = args[:response] if args.key?(:response)
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
# The `Status` type defines a logical error model that is suitable for different
|
257
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
258
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
259
|
+
# data: error code, error message, and error details. You can find out more
|
260
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
261
|
+
# //cloud.google.com/apis/design/errors).
|
262
|
+
class Status
|
263
|
+
include Google::Apis::Core::Hashable
|
264
|
+
|
265
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
266
|
+
# Corresponds to the JSON property `code`
|
267
|
+
# @return [Fixnum]
|
268
|
+
attr_accessor :code
|
269
|
+
|
270
|
+
# A list of messages that carry the error details. There is a common set of
|
271
|
+
# message types for APIs to use.
|
272
|
+
# Corresponds to the JSON property `details`
|
273
|
+
# @return [Array<Hash<String,Object>>]
|
274
|
+
attr_accessor :details
|
275
|
+
|
276
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
277
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
278
|
+
# field, or localized by the client.
|
279
|
+
# Corresponds to the JSON property `message`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :message
|
282
|
+
|
283
|
+
def initialize(**args)
|
284
|
+
update!(**args)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update properties of this object
|
288
|
+
def update!(**args)
|
289
|
+
@code = args[:code] if args.key?(:code)
|
290
|
+
@details = args[:details] if args.key?(:details)
|
291
|
+
@message = args[:message] if args.key?(:message)
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
140
295
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
141
296
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
142
|
-
# The input size is limited to 5000
|
297
|
+
# The input size is limited to 5000 bytes.
|
143
298
|
class SynthesisInput
|
144
299
|
include Google::Apis::Core::Hashable
|
145
300
|
|
@@ -167,6 +322,46 @@ module Google
|
|
167
322
|
end
|
168
323
|
end
|
169
324
|
|
325
|
+
# The top-level message sent by the client for the `SynthesizeLongAudio` method.
|
326
|
+
class SynthesizeLongAudioRequest
|
327
|
+
include Google::Apis::Core::Hashable
|
328
|
+
|
329
|
+
# Description of audio data to be synthesized.
|
330
|
+
# Corresponds to the JSON property `audioConfig`
|
331
|
+
# @return [Google::Apis::TexttospeechV1::AudioConfig]
|
332
|
+
attr_accessor :audio_config
|
333
|
+
|
334
|
+
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
335
|
+
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
336
|
+
# The input size is limited to 5000 bytes.
|
337
|
+
# Corresponds to the JSON property `input`
|
338
|
+
# @return [Google::Apis::TexttospeechV1::SynthesisInput]
|
339
|
+
attr_accessor :input
|
340
|
+
|
341
|
+
# Specifies a Cloud Storage URI for the synthesis results. Must be specified in
|
342
|
+
# the format: `gs://bucket_name/object_name`, and the bucket must already exist.
|
343
|
+
# Corresponds to the JSON property `outputGcsUri`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :output_gcs_uri
|
346
|
+
|
347
|
+
# Description of which voice to use for a synthesis request.
|
348
|
+
# Corresponds to the JSON property `voice`
|
349
|
+
# @return [Google::Apis::TexttospeechV1::VoiceSelectionParams]
|
350
|
+
attr_accessor :voice
|
351
|
+
|
352
|
+
def initialize(**args)
|
353
|
+
update!(**args)
|
354
|
+
end
|
355
|
+
|
356
|
+
# Update properties of this object
|
357
|
+
def update!(**args)
|
358
|
+
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
359
|
+
@input = args[:input] if args.key?(:input)
|
360
|
+
@output_gcs_uri = args[:output_gcs_uri] if args.key?(:output_gcs_uri)
|
361
|
+
@voice = args[:voice] if args.key?(:voice)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
170
365
|
# The top-level message sent by the client for the `SynthesizeSpeech` method.
|
171
366
|
class SynthesizeSpeechRequest
|
172
367
|
include Google::Apis::Core::Hashable
|
@@ -178,7 +373,7 @@ module Google
|
|
178
373
|
|
179
374
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
180
375
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
181
|
-
# The input size is limited to 5000
|
376
|
+
# The input size is limited to 5000 bytes.
|
182
377
|
# Corresponds to the JSON property `input`
|
183
378
|
# @return [Google::Apis::TexttospeechV1::SynthesisInput]
|
184
379
|
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.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 = "20221201"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,24 +28,60 @@ 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 ListOperationsResponse
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
37
55
|
class ListVoicesResponse
|
38
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
57
|
|
40
58
|
include Google::Apis::Core::JsonObjectSupport
|
41
59
|
end
|
42
60
|
|
61
|
+
class Operation
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Status
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
43
73
|
class SynthesisInput
|
44
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
75
|
|
46
76
|
include Google::Apis::Core::JsonObjectSupport
|
47
77
|
end
|
48
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
|
|
@@ -82,6 +118,12 @@ module Google
|
|
82
118
|
end
|
83
119
|
end
|
84
120
|
|
121
|
+
class CancelOperationRequest
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
85
127
|
class CustomVoiceParams
|
86
128
|
# @private
|
87
129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -90,6 +132,21 @@ module Google
|
|
90
132
|
end
|
91
133
|
end
|
92
134
|
|
135
|
+
class Empty
|
136
|
+
# @private
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class ListOperationsResponse
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
property :next_page_token, as: 'nextPageToken'
|
145
|
+
collection :operations, as: 'operations', class: Google::Apis::TexttospeechV1::Operation, decorator: Google::Apis::TexttospeechV1::Operation::Representation
|
146
|
+
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
93
150
|
class ListVoicesResponse
|
94
151
|
# @private
|
95
152
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -98,6 +155,27 @@ module Google
|
|
98
155
|
end
|
99
156
|
end
|
100
157
|
|
158
|
+
class Operation
|
159
|
+
# @private
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
+
property :done, as: 'done'
|
162
|
+
property :error, as: 'error', class: Google::Apis::TexttospeechV1::Status, decorator: Google::Apis::TexttospeechV1::Status::Representation
|
163
|
+
|
164
|
+
hash :metadata, as: 'metadata'
|
165
|
+
property :name, as: 'name'
|
166
|
+
hash :response, as: 'response'
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class Status
|
171
|
+
# @private
|
172
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
173
|
+
property :code, as: 'code'
|
174
|
+
collection :details, as: 'details'
|
175
|
+
property :message, as: 'message'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
101
179
|
class SynthesisInput
|
102
180
|
# @private
|
103
181
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -106,6 +184,19 @@ module Google
|
|
106
184
|
end
|
107
185
|
end
|
108
186
|
|
187
|
+
class SynthesizeLongAudioRequest
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::AudioConfig, decorator: Google::Apis::TexttospeechV1::AudioConfig::Representation
|
191
|
+
|
192
|
+
property :input, as: 'input', class: Google::Apis::TexttospeechV1::SynthesisInput, decorator: Google::Apis::TexttospeechV1::SynthesisInput::Representation
|
193
|
+
|
194
|
+
property :output_gcs_uri, as: 'outputGcsUri'
|
195
|
+
property :voice, as: 'voice', class: Google::Apis::TexttospeechV1::VoiceSelectionParams, decorator: Google::Apis::TexttospeechV1::VoiceSelectionParams::Representation
|
196
|
+
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
109
200
|
class SynthesizeSpeechRequest
|
110
201
|
# @private
|
111
202
|
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
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
126
|
+
# to poll the operation result at intervals as recommended by the API service.
|
127
|
+
# @param [String] name
|
128
|
+
# The name of the operation resource.
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::Operation] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::TexttospeechV1::Operation]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
148
|
+
command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
|
149
|
+
command.response_class = Google::Apis::TexttospeechV1::Operation
|
150
|
+
command.params['name'] = name unless name.nil?
|
151
|
+
command.query['fields'] = fields unless fields.nil?
|
152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
153
|
+
execute_or_queue_command(command, &block)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Lists operations that match the specified filter in the request. If the server
|
157
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
158
|
+
# binding allows API services to override the binding to use different resource
|
159
|
+
# name schemes, such as `users/*/operations`. To override the binding, API
|
160
|
+
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
161
|
+
# service configuration. For backwards compatibility, the default name includes
|
162
|
+
# the operations collection id, however overriding users must ensure the name
|
163
|
+
# binding is the parent resource, without the operations collection id.
|
164
|
+
# @param [String] name
|
165
|
+
# The name of the operation's parent resource.
|
166
|
+
# @param [String] filter
|
167
|
+
# The standard list filter.
|
168
|
+
# @param [Fixnum] page_size
|
169
|
+
# The standard list page size.
|
170
|
+
# @param [String] page_token
|
171
|
+
# The standard list page token.
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
174
|
+
# @param [String] quota_user
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
178
|
+
# Request-specific options
|
179
|
+
#
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
181
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::ListOperationsResponse] parsed result object
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
183
|
+
#
|
184
|
+
# @return [Google::Apis::TexttospeechV1::ListOperationsResponse]
|
185
|
+
#
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
188
|
+
# @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)
|
191
|
+
command.response_representation = Google::Apis::TexttospeechV1::ListOperationsResponse::Representation
|
192
|
+
command.response_class = Google::Apis::TexttospeechV1::ListOperationsResponse
|
193
|
+
command.params['name'] = name unless name.nil?
|
194
|
+
command.query['filter'] = filter unless filter.nil?
|
195
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
196
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
199
|
+
execute_or_queue_command(command, &block)
|
200
|
+
end
|
201
|
+
|
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
|
+
|
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.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: 2022-
|
11
|
+
date: 2022-12-12 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.20.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: []
|