google-apis-texttospeech_v1 0.8.0 → 0.9.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 +5 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/texttospeech_v1/classes.rb +121 -0
- data/lib/google/apis/texttospeech_v1/gem_version.rb +2 -2
- data/lib/google/apis/texttospeech_v1/representations.rb +46 -0
- data/lib/google/apis/texttospeech_v1/service.rb +34 -0
- data/lib/google/apis/texttospeech_v1.rb +3 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 708fc9434ddfa4a81f0fdcc00fa15eb2e2bf868bd117538d9776aaa21f619425
|
4
|
+
data.tar.gz: 1c3868612f7b41dfc078d0424b402fe96c827eb59167e213bbca89953da121c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b7db3e039db727df666d8f2149f9bbcc2f9886c5e5cbe527aea2a4e176c8dfcea79eaeb73900c3ee25d5b609fdcebe2d37eb50752ccce224392821ad6e8963
|
7
|
+
data.tar.gz: ddc195cd7c3b59cf40556d31c4009b0addb149e2effb1e9c55dbc945105045ec05fc5c280d3864998c2baa33bde10ee0f8b207067385961816a7097f1c4db1d8
|
data/CHANGELOG.md
CHANGED
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Texttospeech service in particular.)
|
67
67
|
|
@@ -93,6 +93,26 @@ module Google
|
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
|
+
# A request to import data.
|
97
|
+
class ImportDataRequest
|
98
|
+
include Google::Apis::Core::Hashable
|
99
|
+
|
100
|
+
# Customer provide a Cloud Storage link which point to a .csv file which stores
|
101
|
+
# all the truth text and Cloud Storage link of audio data.
|
102
|
+
# Corresponds to the JSON property `csvCloudStorageUri`
|
103
|
+
# @return [String]
|
104
|
+
attr_accessor :csv_cloud_storage_uri
|
105
|
+
|
106
|
+
def initialize(**args)
|
107
|
+
update!(**args)
|
108
|
+
end
|
109
|
+
|
110
|
+
# Update properties of this object
|
111
|
+
def update!(**args)
|
112
|
+
@csv_cloud_storage_uri = args[:csv_cloud_storage_uri] if args.key?(:csv_cloud_storage_uri)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
96
116
|
# The message returned to the client by the `ListVoices` method.
|
97
117
|
class ListVoicesResponse
|
98
118
|
include Google::Apis::Core::Hashable
|
@@ -112,6 +132,107 @@ module Google
|
|
112
132
|
end
|
113
133
|
end
|
114
134
|
|
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
|
+
|
115
236
|
# Contains text input to be synthesized. Either `text` or `ssml` must be
|
116
237
|
# supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
|
117
238
|
# The input size is limited to 5000 characters.
|
@@ -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.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211015"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -28,12 +28,30 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class ImportDataRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class ListVoicesResponse
|
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 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
|
+
|
37
55
|
class SynthesisInput
|
38
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
57
|
|
@@ -76,6 +94,13 @@ module Google
|
|
76
94
|
end
|
77
95
|
end
|
78
96
|
|
97
|
+
class ImportDataRequest
|
98
|
+
# @private
|
99
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
+
property :csv_cloud_storage_uri, as: 'csvCloudStorageUri'
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
79
104
|
class ListVoicesResponse
|
80
105
|
# @private
|
81
106
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -84,6 +109,27 @@ module Google
|
|
84
109
|
end
|
85
110
|
end
|
86
111
|
|
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
|
+
|
87
133
|
class SynthesisInput
|
88
134
|
# @private
|
89
135
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -49,6 +49,40 @@ 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
|
+
|
52
86
|
# Synthesizes speech synchronously: receive results after all text input has
|
53
87
|
# been processed.
|
54
88
|
# @param [Google::Apis::TexttospeechV1::SynthesizeSpeechRequest] synthesize_speech_request_object
|
@@ -31,6 +31,9 @@ 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'
|
34
37
|
end
|
35
38
|
end
|
36
39
|
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.9.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: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
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.9.0
|
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: []
|
65
65
|
require_paths:
|