google-cloud-text_to_speech-v1 0.2.1 → 0.2.6
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/README.md +4 -0
- data/lib/google/cloud/text_to_speech/v1.rb +3 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb +9 -9
- data/lib/google/cloud/text_to_speech/v1/version.rb +1 -1
- data/lib/google/cloud/texttospeech/v1/cloud_tts_services_pb.rb +2 -2
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb +5 -5
- 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: fbfd9ef75dc3132b8ea1c070d135f59102a65b711f68126230345fcfa5f3bc3a
|
4
|
+
data.tar.gz: 65f3db11b731670793a51eb5af80e4b2e7b8b4e4004863dde128612f3e2b60fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca71d3ea714d78adca07d8179c584754524585b71b0d570ea5bf1bf984bb7664bbcb75ede7b7f63885ed1c25143b10973e28b97685e943fe8fda4f08f66acff
|
7
|
+
data.tar.gz: 177157f4c7cf52ab1cdbc0e2de615b5940bd60a3a457ad19e1ba89bcc9a85f164cffb4695ce7fd0911a211aeefceca9be5678c2dc9de6e264df7484ab8bbf7a6
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/texttospeech.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.list_voices request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-text_to_speech-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/text-to-speech)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
initial_delay: 0.1,
|
69
69
|
max_delay: 60.0,
|
70
70
|
multiplier: 1.3,
|
71
|
-
retry_codes: [
|
71
|
+
retry_codes: [14, 4]
|
72
72
|
}
|
73
73
|
|
74
74
|
default_config.rpcs.synthesize_speech.timeout = 600.0
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
initial_delay: 0.1,
|
77
77
|
max_delay: 60.0,
|
78
78
|
multiplier: 1.3,
|
79
|
-
retry_codes: [
|
79
|
+
retry_codes: [14, 4]
|
80
80
|
}
|
81
81
|
|
82
82
|
default_config
|
@@ -181,10 +181,10 @@ module Google
|
|
181
181
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
|
182
182
|
# specified, the ListVoices call will only return voices that can be used to
|
183
183
|
# synthesize this language_code. E.g. when specifying "en-NZ", you will get
|
184
|
-
# supported "en
|
185
|
-
# "no
|
186
|
-
# will also get supported "cmn
|
187
|
-
# supported "yue
|
184
|
+
# supported "en-\*" voices; when specifying "no", you will get supported
|
185
|
+
# "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh"
|
186
|
+
# will also get supported "cmn-\*" voices; specifying "zh-hk" will also get
|
187
|
+
# supported "yue-\*" voices.
|
188
188
|
#
|
189
189
|
# @yield [response, operation] Access the result along with the RPC operation
|
190
190
|
# @yieldparam response [::Google::Cloud::TextToSpeech::V1::ListVoicesResponse]
|
@@ -375,7 +375,7 @@ module Google
|
|
375
375
|
|
376
376
|
config_attr :endpoint, "texttospeech.googleapis.com", ::String
|
377
377
|
config_attr :credentials, nil do |value|
|
378
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
378
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
379
379
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
380
380
|
allowed.any? { |klass| klass === value }
|
381
381
|
end
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
def rpcs
|
404
404
|
@rpcs ||= begin
|
405
405
|
parent_rpcs = nil
|
406
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
406
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
407
407
|
Rpcs.new parent_rpcs
|
408
408
|
end
|
409
409
|
end
|
@@ -415,7 +415,7 @@ module Google
|
|
415
415
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
416
416
|
# the following configuration fields:
|
417
417
|
#
|
418
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
418
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
419
419
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
420
420
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
421
421
|
# include the following keys:
|
@@ -35,10 +35,10 @@ module Google
|
|
35
35
|
self.service_name = 'google.cloud.texttospeech.v1.TextToSpeech'
|
36
36
|
|
37
37
|
# Returns a list of Voice supported for synthesis.
|
38
|
-
rpc :ListVoices, Google::Cloud::TextToSpeech::V1::ListVoicesRequest, Google::Cloud::TextToSpeech::V1::ListVoicesResponse
|
38
|
+
rpc :ListVoices, ::Google::Cloud::TextToSpeech::V1::ListVoicesRequest, ::Google::Cloud::TextToSpeech::V1::ListVoicesResponse
|
39
39
|
# Synthesizes speech synchronously: receive results after all text input
|
40
40
|
# has been processed.
|
41
|
-
rpc :SynthesizeSpeech, Google::Cloud::TextToSpeech::V1::SynthesizeSpeechRequest, Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse
|
41
|
+
rpc :SynthesizeSpeech, ::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechRequest, ::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse
|
42
42
|
end
|
43
43
|
|
44
44
|
Stub = Service.rpc_stub_class
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,10 +28,10 @@ module Google
|
|
28
28
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
|
29
29
|
# specified, the ListVoices call will only return voices that can be used to
|
30
30
|
# synthesize this language_code. E.g. when specifying "en-NZ", you will get
|
31
|
-
# supported "en
|
32
|
-
# "no
|
33
|
-
# will also get supported "cmn
|
34
|
-
# supported "yue
|
31
|
+
# supported "en-\*" voices; when specifying "no", you will get supported
|
32
|
+
# "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh"
|
33
|
+
# will also get supported "cmn-\*" voices; specifying "zh-hk" will also get
|
34
|
+
# supported "yue-\*" voices.
|
35
35
|
class ListVoicesRequest
|
36
36
|
include ::Google::Protobuf::MessageExts
|
37
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
# The SSML document to be synthesized. The SSML document must be valid
|
94
94
|
# and well-formed. Otherwise the RPC will fail and return
|
95
95
|
# [google.rpc.Code.INVALID_ARGUMENT][]. For more information, see
|
96
|
-
# [SSML](/
|
96
|
+
# [SSML](https://cloud.google.com/text-to-speech/docs/ssml).
|
97
97
|
class SynthesisInput
|
98
98
|
include ::Google::Protobuf::MessageExts
|
99
99
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-text_to_speech-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
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: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
rubygems_version: 3.
|
195
|
+
rubygems_version: 3.2.6
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: API Client library for the Cloud Text-to-Speech V1 API
|