google-apis-texttospeech_v1 0.9.0 → 0.13.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: 708fc9434ddfa4a81f0fdcc00fa15eb2e2bf868bd117538d9776aaa21f619425
4
- data.tar.gz: 1c3868612f7b41dfc078d0424b402fe96c827eb59167e213bbca89953da121c9
3
+ metadata.gz: cb3a7866084f0dd0ce151d83962ab756394db617121782faae29f7e26345a3e5
4
+ data.tar.gz: c783029e260b3255cfcb43ec3445ee861ecd6c1b955f640cca3871d761a143b0
5
5
  SHA512:
6
- metadata.gz: c6b7db3e039db727df666d8f2149f9bbcc2f9886c5e5cbe527aea2a4e176c8dfcea79eaeb73900c3ee25d5b609fdcebe2d37eb50752ccce224392821ad6e8963
7
- data.tar.gz: ddc195cd7c3b59cf40556d31c4009b0addb149e2effb1e9c55dbc945105045ec05fc5c280d3864998c2baa33bde10ee0f8b207067385961816a7097f1c4db1d8
6
+ metadata.gz: 3d13b43b189c4bfbe397c551c7af1ba34a76d93b2a7fe1c9b93e67f88e1a3d07624d3dcd14af348b6b14820092b52d9a02d9cc6d6f32577a905ccb31d7c95f90
7
+ data.tar.gz: f31156beed04ec87d8027c1d16f1451c77d5e3285ccc52f749883bee35e414c152abfdd412448f252cb67334345262b9408ed3b803d191a48e712bf99fac0f0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-texttospeech_v1
2
2
 
3
+ ### v0.13.0 (2022-01-11)
4
+
5
+ * Regenerated from discovery document revision 20220103
6
+
7
+ ### v0.12.0 (2021-12-14)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.11.0 (2021-12-07)
12
+
13
+ * Regenerated from discovery document revision 20211130
14
+
15
+ ### v0.10.0 (2021-11-16)
16
+
17
+ * Regenerated from discovery document revision 20211105
18
+
3
19
  ### v0.9.0 (2021-10-23)
4
20
 
5
21
  * Regenerated from discovery document revision 20211015
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.
@@ -93,26 +93,6 @@ 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
-
116
96
  # The message returned to the client by the `ListVoices` method.
117
97
  class ListVoicesResponse
118
98
  include Google::Apis::Core::Hashable
@@ -132,107 +112,6 @@ module Google
132
112
  end
133
113
  end
134
114
 
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
115
  # Contains text input to be synthesized. Either `text` or `ssml` must be
237
116
  # supplied. Supplying both or neither returns google.rpc.Code.INVALID_ARGUMENT.
238
117
  # 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.9.0"
19
+ GEM_VERSION = "0.13.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 = "20211015"
25
+ REVISION = "20220103"
26
26
  end
27
27
  end
28
28
  end
@@ -28,30 +28,12 @@ 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
-
37
31
  class ListVoicesResponse
38
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
33
 
40
34
  include Google::Apis::Core::JsonObjectSupport
41
35
  end
42
36
 
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
37
  class SynthesisInput
56
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
39
 
@@ -94,13 +76,6 @@ module Google
94
76
  end
95
77
  end
96
78
 
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
-
104
79
  class ListVoicesResponse
105
80
  # @private
106
81
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -109,27 +84,6 @@ module Google
109
84
  end
110
85
  end
111
86
 
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
87
  class SynthesisInput
134
88
  # @private
135
89
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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
@@ -119,11 +85,9 @@ module Google
119
85
  # Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
120
86
  # language tag. If not specified, the API will return all supported voices. If
121
87
  # specified, the ListVoices call will only return voices that can be used to
122
- # synthesize this language_code. E.g. when specifying "en-NZ", you will get
123
- # supported "en-NZ" voices; when specifying "no", you will get supported "no-\*"
124
- # (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh" will also
125
- # get supported "cmn-\*" voices; specifying "zh-hk" will also get supported "yue-
126
- # hk" voices.
88
+ # synthesize this language_code. For example, if you specify `"en-NZ"`, all `"en-
89
+ # NZ"` voices will be returned. If you specify `"no"`, both `"no-\*"` (Norwegian)
90
+ # and `"nb-\*"` (Norwegian Bokmal) voices will be returned.
127
91
  # @param [String] fields
128
92
  # Selector specifying which fields to include in a partial response.
129
93
  # @param [String] quota_user
@@ -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.9.0
4
+ version: 0.13.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-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-17 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.13.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.2.17
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