google-apis-texttospeech_v1 0.11.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/OVERVIEW.md +1 -1
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90d8e2eeada8532f475833e58849021e89ff220e3497db8c17482b61d478cb82
|
4
|
+
data.tar.gz: 0cdf1a316bbbe8ae2db741f4d435b73d06827c8c001f8ee336d23956ca3bebfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be4c8ae35ae4a1178dfea07ae5bd268fac7a3fc88ca5f752b07c89277de0b762ddeb27973b064437b25292300f40548906aacf24d3948d4023ed7c61da6b5f8b
|
7
|
+
data.tar.gz: 54e49bd99d61772addc1c7925fe7adf234d41fbecfe57da6b044b35ddaf427ced9696c61e26b54c1cee7f76086573bbe1a2bfcd79eafd609b932e8ff6aca2333
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2022-03-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220311
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.13.0 (2022-01-11)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220103
|
11
|
+
|
12
|
+
### v0.12.0 (2021-12-14)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
3
16
|
### v0.11.0 (2021-12-07)
|
4
17
|
|
5
18
|
* Regenerated from discovery document revision 20211130
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/texttospeech_v1"
|
|
51
51
|
client = Google::Apis::TexttospeechV1::TexttospeechService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
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.14.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: 2022-03-28 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.14.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.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Text-to-Speech API V1
|