google-apis-texttospeech_v1 0.8.0 → 0.12.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: f04396907ecf410314ceabc4afe474bbfe62c81bca8af56ecc3384910229719c
4
- data.tar.gz: 57fec97f9c9d46517236f4ef5ed98fb62ccb987ccac515ec36f5c2fbbff87188
3
+ metadata.gz: '029f2fa9893105d83cb32aaf9e8eb1585c0acc8806f385ffc623c0f68a088406'
4
+ data.tar.gz: d6f1f309174c9ce3f08e45a57efac412a6bee79ec95aee3211ecfbebdbf144c5
5
5
  SHA512:
6
- metadata.gz: e7e6fbe3c55351b6cb5f1cdad7d0a03715a69251d8b824cd27d6b78e20ba5142d32bf4c39b32c1a4af9a33373b6e76b9ed71a10d0ace34ca9c9df1cf399a04a6
7
- data.tar.gz: 98aba1d0e0175210f322f1196d6d7318940df6e4c8bb5754907999e36243c473882b7afeaa585606c3a46895763214b8a772bcc984f38d7f0016329c9e1c9ad7
6
+ metadata.gz: c1b8cbbe0784c146e08ea209f318d64f68ae35023f6c71288c3bb6d925be87aa6272c6081005561e43efc6b91a67285fef62de112509cda38d2b48a95b5121c7
7
+ data.tar.gz: 85d69aa5b2842b473358af125fb6a081e965ee1fb0761421cd29b30221c0ebeca982f8455265ca642da13ef0c7bdb63c4266d1570c4c512ff88da637d9bbbed5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.12.0 (2021-12-14)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.11.0 (2021-12-07)
8
+
9
+ * Regenerated from discovery document revision 20211130
10
+
11
+ ### v0.10.0 (2021-11-16)
12
+
13
+ * Regenerated from discovery document revision 20211105
14
+
15
+ ### v0.9.0 (2021-10-23)
16
+
17
+ * Regenerated from discovery document revision 20211015
18
+ * Unspecified changes
19
+
3
20
  ### v0.8.0 (2021-08-20)
4
21
 
5
22
  * Regenerated from discovery document revision 20210813
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.authentication = # ... use the googleauth gem to create credentials
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.
@@ -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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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.8.0"
19
+ GEM_VERSION = "0.12.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 = "20210813"
25
+ REVISION = "20211130"
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
@@ -85,11 +119,9 @@ module Google
85
119
  # Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
86
120
  # language tag. If not specified, the API will return all supported voices. If
87
121
  # specified, the ListVoices call will only return voices that can be used to
88
- # synthesize this language_code. E.g. when specifying "en-NZ", you will get
89
- # supported "en-NZ" voices; when specifying "no", you will get supported "no-\*"
90
- # (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh" will also
91
- # get supported "cmn-\*" voices; specifying "zh-hk" will also get supported "yue-
92
- # hk" voices.
122
+ # synthesize this language_code. For example, if you specify `"en-NZ"`, all `"en-
123
+ # NZ"` voices will be returned. If you specify `"no"`, both `"no-\*"` (Norwegian)
124
+ # and `"nb-\*"` (Norwegian Bokmal) voices will be returned.
93
125
  # @param [String] fields
94
126
  # Selector specifying which fields to include in a partial response.
95
127
  # @param [String] quota_user
@@ -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.8.0
4
+ version: 0.12.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-08-23 00:00:00.000000000 Z
11
+ date: 2022-01-10 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/master/generated/google-apis-texttospeech_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.8.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-texttospeech_v1
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.12.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:
@@ -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.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Text-to-Speech API V1