google-apis-texttospeech_v1beta1 0.19.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 +4 -0
- data/lib/google/apis/texttospeech_v1beta1/classes.rb +75 -0
- data/lib/google/apis/texttospeech_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/texttospeech_v1beta1/representations.rb +43 -0
- data/lib/google/apis/texttospeech_v1beta1/service.rb +81 -4
- 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
@@ -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
|
@@ -268,6 +318,31 @@ module Google
|
|
268
318
|
end
|
269
319
|
end
|
270
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
|
+
|
271
346
|
# The top-level message sent by the client for the `SynthesizeLongAudio` method.
|
272
347
|
class SynthesizeLongAudioRequest
|
273
348
|
include Google::Apis::Core::Hashable
|
@@ -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,6 +34,18 @@ 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
|
|
@@ -58,6 +70,12 @@ module Google
|
|
58
70
|
include Google::Apis::Core::JsonObjectSupport
|
59
71
|
end
|
60
72
|
|
73
|
+
class SynthesizeLongAudioMetadata
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
61
79
|
class SynthesizeLongAudioRequest
|
62
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
81
|
|
@@ -114,6 +132,23 @@ module Google
|
|
114
132
|
end
|
115
133
|
end
|
116
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
|
+
|
117
152
|
class ListVoicesResponse
|
118
153
|
# @private
|
119
154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -151,6 +186,14 @@ module Google
|
|
151
186
|
end
|
152
187
|
end
|
153
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
|
+
|
154
197
|
class SynthesizeLongAudioRequest
|
155
198
|
# @private
|
156
199
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -51,8 +51,8 @@ module Google
|
|
51
51
|
|
52
52
|
# Synthesizes long form text asynchronously.
|
53
53
|
# @param [String] parent
|
54
|
-
# The resource states of the request in the form of projects/*/locations/*/
|
55
|
-
# voices
|
54
|
+
# The resource states of the request in the form of `projects/*/locations/*/
|
55
|
+
# voices/*`.
|
56
56
|
# @param [Google::Apis::TexttospeechV1beta1::SynthesizeLongAudioRequest] synthesize_long_audio_request_object
|
57
57
|
# @param [String] fields
|
58
58
|
# Selector specifying which fields to include in a partial response.
|
@@ -71,8 +71,8 @@ module Google
|
|
71
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def
|
75
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}:
|
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
76
|
command.request_representation = Google::Apis::TexttospeechV1beta1::SynthesizeLongAudioRequest::Representation
|
77
77
|
command.request_object = synthesize_long_audio_request_object
|
78
78
|
command.response_representation = Google::Apis::TexttospeechV1beta1::Operation::Representation
|
@@ -83,6 +83,83 @@ module Google
|
|
83
83
|
execute_or_queue_command(command, &block)
|
84
84
|
end
|
85
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
|
+
|
86
163
|
# Synthesizes speech synchronously: receive results after all text input has
|
87
164
|
# been processed.
|
88
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: []
|