google-apis-texttospeech_v1 0.12.0 → 0.15.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 +13 -0
- data/lib/google/apis/texttospeech_v1/classes.rb +18 -108
- data/lib/google/apis/texttospeech_v1/gem_version.rb +3 -3
- data/lib/google/apis/texttospeech_v1/representations.rb +6 -36
- data/lib/google/apis/texttospeech_v1/service.rb +0 -34
- data/lib/google/apis/texttospeech_v1.rb +0 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a83cd89e27921191a2fc0eff1807091ecf5ab674930c7c8a43f4544308a1b10c
|
4
|
+
data.tar.gz: bd1eb2ec150ec8d510e15e583dd2386f006e5aa09c5d534e9046eeb4884813c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c187203a00ec247774f96d23b0eb2679a80ff4e29913ea213edbd1a190884403f67d78d72565b8a95809acf16abd607e972536136bddada17853520e45da7887
|
7
|
+
data.tar.gz: 3e65f751a9ed8e5ba3548b6f0896891118aacac2139040d3cc4c3daccf37302ba7d373bcf24019e346e882ed7e98069358e15226db2c1b961a095e3fa91fbeec
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1
|
2
2
|
|
3
|
+
### v0.15.0 (2022-06-06)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.5.0
|
6
|
+
|
7
|
+
### v0.14.0 (2022-03-22)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220311
|
10
|
+
* Regenerated using generator version 0.4.1
|
11
|
+
|
12
|
+
### v0.13.0 (2022-01-11)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20220103
|
15
|
+
|
3
16
|
### v0.12.0 (2021-12-14)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -93,15 +93,19 @@ module Google
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
-
#
|
97
|
-
class
|
96
|
+
# Description of the custom voice to be synthesized.
|
97
|
+
class CustomVoiceParams
|
98
98
|
include Google::Apis::Core::Hashable
|
99
99
|
|
100
|
-
#
|
101
|
-
#
|
102
|
-
# Corresponds to the JSON property `csvCloudStorageUri`
|
100
|
+
# Required. The name of the AutoML model that synthesizes the custom voice.
|
101
|
+
# Corresponds to the JSON property `model`
|
103
102
|
# @return [String]
|
104
|
-
attr_accessor :
|
103
|
+
attr_accessor :model
|
104
|
+
|
105
|
+
# Optional. The usage of the synthesized audio to be reported.
|
106
|
+
# Corresponds to the JSON property `reportedUsage`
|
107
|
+
# @return [String]
|
108
|
+
attr_accessor :reported_usage
|
105
109
|
|
106
110
|
def initialize(**args)
|
107
111
|
update!(**args)
|
@@ -109,7 +113,8 @@ module Google
|
|
109
113
|
|
110
114
|
# Update properties of this object
|
111
115
|
def update!(**args)
|
112
|
-
@
|
116
|
+
@model = args[:model] if args.key?(:model)
|
117
|
+
@reported_usage = args[:reported_usage] if args.key?(:reported_usage)
|
113
118
|
end
|
114
119
|
end
|
115
120
|
|
@@ -132,107 +137,6 @@ module Google
|
|
132
137
|
end
|
133
138
|
end
|
134
139
|
|
135
|
-
# This resource represents a long-running operation that is the result of a
|
136
|
-
# network API call.
|
137
|
-
class Operation
|
138
|
-
include Google::Apis::Core::Hashable
|
139
|
-
|
140
|
-
# If the value is `false`, it means the operation is still in progress. If `true`
|
141
|
-
# , the operation is completed, and either `error` or `response` is available.
|
142
|
-
# Corresponds to the JSON property `done`
|
143
|
-
# @return [Boolean]
|
144
|
-
attr_accessor :done
|
145
|
-
alias_method :done?, :done
|
146
|
-
|
147
|
-
# The `Status` type defines a logical error model that is suitable for different
|
148
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
149
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
150
|
-
# data: error code, error message, and error details. You can find out more
|
151
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
152
|
-
# //cloud.google.com/apis/design/errors).
|
153
|
-
# Corresponds to the JSON property `error`
|
154
|
-
# @return [Google::Apis::TexttospeechV1::Status]
|
155
|
-
attr_accessor :error
|
156
|
-
|
157
|
-
# Service-specific metadata associated with the operation. It typically contains
|
158
|
-
# progress information and common metadata such as create time. Some services
|
159
|
-
# might not provide such metadata. Any method that returns a long-running
|
160
|
-
# operation should document the metadata type, if any.
|
161
|
-
# Corresponds to the JSON property `metadata`
|
162
|
-
# @return [Hash<String,Object>]
|
163
|
-
attr_accessor :metadata
|
164
|
-
|
165
|
-
# The server-assigned name, which is only unique within the same service that
|
166
|
-
# originally returns it. If you use the default HTTP mapping, the `name` should
|
167
|
-
# be a resource name ending with `operations/`unique_id``.
|
168
|
-
# Corresponds to the JSON property `name`
|
169
|
-
# @return [String]
|
170
|
-
attr_accessor :name
|
171
|
-
|
172
|
-
# The normal response of the operation in case of success. If the original
|
173
|
-
# method returns no data on success, such as `Delete`, the response is `google.
|
174
|
-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
175
|
-
# the response should be the resource. For other methods, the response should
|
176
|
-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
177
|
-
# example, if the original method name is `TakeSnapshot()`, the inferred
|
178
|
-
# response type is `TakeSnapshotResponse`.
|
179
|
-
# Corresponds to the JSON property `response`
|
180
|
-
# @return [Hash<String,Object>]
|
181
|
-
attr_accessor :response
|
182
|
-
|
183
|
-
def initialize(**args)
|
184
|
-
update!(**args)
|
185
|
-
end
|
186
|
-
|
187
|
-
# Update properties of this object
|
188
|
-
def update!(**args)
|
189
|
-
@done = args[:done] if args.key?(:done)
|
190
|
-
@error = args[:error] if args.key?(:error)
|
191
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
192
|
-
@name = args[:name] if args.key?(:name)
|
193
|
-
@response = args[:response] if args.key?(:response)
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
|
-
# The `Status` type defines a logical error model that is suitable for different
|
198
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
199
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
200
|
-
# data: error code, error message, and error details. You can find out more
|
201
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
202
|
-
# //cloud.google.com/apis/design/errors).
|
203
|
-
class Status
|
204
|
-
include Google::Apis::Core::Hashable
|
205
|
-
|
206
|
-
# The status code, which should be an enum value of google.rpc.Code.
|
207
|
-
# Corresponds to the JSON property `code`
|
208
|
-
# @return [Fixnum]
|
209
|
-
attr_accessor :code
|
210
|
-
|
211
|
-
# A list of messages that carry the error details. There is a common set of
|
212
|
-
# message types for APIs to use.
|
213
|
-
# Corresponds to the JSON property `details`
|
214
|
-
# @return [Array<Hash<String,Object>>]
|
215
|
-
attr_accessor :details
|
216
|
-
|
217
|
-
# A developer-facing error message, which should be in English. Any user-facing
|
218
|
-
# error message should be localized and sent in the google.rpc.Status.details
|
219
|
-
# field, or localized by the client.
|
220
|
-
# Corresponds to the JSON property `message`
|
221
|
-
# @return [String]
|
222
|
-
attr_accessor :message
|
223
|
-
|
224
|
-
def initialize(**args)
|
225
|
-
update!(**args)
|
226
|
-
end
|
227
|
-
|
228
|
-
# Update properties of this object
|
229
|
-
def update!(**args)
|
230
|
-
@code = args[:code] if args.key?(:code)
|
231
|
-
@details = args[:details] if args.key?(:details)
|
232
|
-
@message = args[:message] if args.key?(:message)
|
233
|
-
end
|
234
|
-
end
|
235
|
-
|
236
140
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
237
141
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
238
142
|
# The input size is limited to 5000 characters.
|
@@ -362,6 +266,11 @@ module Google
|
|
362
266
|
class VoiceSelectionParams
|
363
267
|
include Google::Apis::Core::Hashable
|
364
268
|
|
269
|
+
# Description of the custom voice to be synthesized.
|
270
|
+
# Corresponds to the JSON property `customVoice`
|
271
|
+
# @return [Google::Apis::TexttospeechV1::CustomVoiceParams]
|
272
|
+
attr_accessor :custom_voice
|
273
|
+
|
365
274
|
# Required. The language (and potentially also the region) of the voice
|
366
275
|
# expressed as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language
|
367
276
|
# tag, e.g. "en-US". This should not include a script tag (e.g. use "cmn-cn"
|
@@ -397,6 +306,7 @@ module Google
|
|
397
306
|
|
398
307
|
# Update properties of this object
|
399
308
|
def update!(**args)
|
309
|
+
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
|
400
310
|
@language_code = args[:language_code] if args.key?(:language_code)
|
401
311
|
@name = args[:name] if args.key?(:name)
|
402
312
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
@@ -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.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.5.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220311"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class CustomVoiceParams
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -40,18 +40,6 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class Operation
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class Status
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
43
|
class SynthesisInput
|
56
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
45
|
|
@@ -94,10 +82,11 @@ module Google
|
|
94
82
|
end
|
95
83
|
end
|
96
84
|
|
97
|
-
class
|
85
|
+
class CustomVoiceParams
|
98
86
|
# @private
|
99
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
-
property :
|
88
|
+
property :model, as: 'model'
|
89
|
+
property :reported_usage, as: 'reportedUsage'
|
101
90
|
end
|
102
91
|
end
|
103
92
|
|
@@ -109,27 +98,6 @@ module Google
|
|
109
98
|
end
|
110
99
|
end
|
111
100
|
|
112
|
-
class Operation
|
113
|
-
# @private
|
114
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
115
|
-
property :done, as: 'done'
|
116
|
-
property :error, as: 'error', class: Google::Apis::TexttospeechV1::Status, decorator: Google::Apis::TexttospeechV1::Status::Representation
|
117
|
-
|
118
|
-
hash :metadata, as: 'metadata'
|
119
|
-
property :name, as: 'name'
|
120
|
-
hash :response, as: 'response'
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
class Status
|
125
|
-
# @private
|
126
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
127
|
-
property :code, as: 'code'
|
128
|
-
collection :details, as: 'details'
|
129
|
-
property :message, as: 'message'
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
101
|
class SynthesisInput
|
134
102
|
# @private
|
135
103
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -170,6 +138,8 @@ module Google
|
|
170
138
|
class VoiceSelectionParams
|
171
139
|
# @private
|
172
140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
+
property :custom_voice, as: 'customVoice', class: Google::Apis::TexttospeechV1::CustomVoiceParams, decorator: Google::Apis::TexttospeechV1::CustomVoiceParams::Representation
|
142
|
+
|
173
143
|
property :language_code, as: 'languageCode'
|
174
144
|
property :name, as: 'name'
|
175
145
|
property :ssml_gender, as: 'ssmlGender'
|
@@ -49,40 +49,6 @@ module Google
|
|
49
49
|
@batch_path = 'batch'
|
50
50
|
end
|
51
51
|
|
52
|
-
# Imports audio+text data for training custom voice.
|
53
|
-
# @param [String] name
|
54
|
-
# The name of the Dataset resource. Format: `projects/`project`/locations/`
|
55
|
-
# location`/datasets/`dataset``
|
56
|
-
# @param [Google::Apis::TexttospeechV1::ImportDataRequest] import_data_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::TexttospeechV1::Operation] parsed result object
|
67
|
-
# @yieldparam err [StandardError] error object if request failed
|
68
|
-
#
|
69
|
-
# @return [Google::Apis::TexttospeechV1::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 import_dataset_data(name, import_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
-
command = make_simple_command(:post, 'v1/{+name}:import', options)
|
76
|
-
command.request_representation = Google::Apis::TexttospeechV1::ImportDataRequest::Representation
|
77
|
-
command.request_object = import_data_request_object
|
78
|
-
command.response_representation = Google::Apis::TexttospeechV1::Operation::Representation
|
79
|
-
command.response_class = Google::Apis::TexttospeechV1::Operation
|
80
|
-
command.params['name'] = name unless name.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
52
|
# Synthesizes speech synchronously: receive results after all text input has
|
87
53
|
# been processed.
|
88
54
|
# @param [Google::Apis::TexttospeechV1::SynthesizeSpeechRequest] synthesize_speech_request_object
|
@@ -31,9 +31,6 @@ module Google
|
|
31
31
|
|
32
32
|
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
-
|
35
|
-
# View, manage and query your Dialogflow agents
|
36
|
-
AUTH_DIALOGFLOW = 'https://www.googleapis.com/auth/dialogflow'
|
37
34
|
end
|
38
35
|
end
|
39
36
|
end
|
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.15.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-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.5'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Text-to-Speech API V1
|