google-cloud-text_to_speech-v1 0.1.0 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb +19 -14
- data/lib/google/cloud/text_to_speech/v1/version.rb +1 -1
- data/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb +1 -1
- metadata +35 -8
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b7736a16b3e52f24433ee4356d855d62e4c479056886c6588be05f5aca5eee7
|
4
|
+
data.tar.gz: 18d22c3637c31d45f3b5ac8d5e0100399767c9e5e039df69187656ee7d7e0948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21ef9bb964c66e4903e168449e00b0797607b11c9496716c3c918d2c19e3e82aff9d8eea767da503acc08bd79e233a740e3beafb11773a075a82603cb764f945
|
7
|
+
data.tar.gz: 2ccf81b15838c34f22e9d81d59411125ffc2aba149c4e85d6d14fc61c2108dc64c7dca72230303601b199fd6f1f9892c488dfff980407d3df253fdf10bf1d9d3
|
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
|
@@ -144,7 +144,8 @@ module Google
|
|
144
144
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
145
145
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
146
|
end
|
147
|
-
@quota_project_id =
|
147
|
+
@quota_project_id = @config.quota_project
|
148
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
148
149
|
|
149
150
|
@text_to_speech_stub = ::Gapic::ServiceStub.new(
|
150
151
|
::Google::Cloud::TextToSpeech::V1::TextToSpeech::Stub,
|
@@ -365,24 +366,28 @@ module Google
|
|
365
366
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
366
367
|
# trigger a retry.
|
367
368
|
# @return [::Hash]
|
369
|
+
# @!attribute [rw] quota_project
|
370
|
+
# A separate project against which to charge quota.
|
371
|
+
# @return [::String]
|
368
372
|
#
|
369
373
|
class Configuration
|
370
374
|
extend ::Gapic::Config
|
371
375
|
|
372
|
-
config_attr :endpoint,
|
373
|
-
config_attr :credentials,
|
376
|
+
config_attr :endpoint, "texttospeech.googleapis.com", ::String
|
377
|
+
config_attr :credentials, nil do |value|
|
374
378
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
375
379
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
376
380
|
allowed.any? { |klass| klass === value }
|
377
381
|
end
|
378
|
-
config_attr :scope,
|
379
|
-
config_attr :lib_name,
|
380
|
-
config_attr :lib_version,
|
381
|
-
config_attr(:channel_args,
|
382
|
-
config_attr :interceptors,
|
383
|
-
config_attr :timeout,
|
384
|
-
config_attr :metadata,
|
385
|
-
config_attr :retry_policy,
|
382
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
383
|
+
config_attr :lib_name, nil, ::String, nil
|
384
|
+
config_attr :lib_version, nil, ::String, nil
|
385
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
386
|
+
config_attr :interceptors, nil, ::Array, nil
|
387
|
+
config_attr :timeout, nil, ::Numeric, nil
|
388
|
+
config_attr :metadata, nil, ::Hash, nil
|
389
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
390
|
+
config_attr :quota_project, nil, ::String, nil
|
386
391
|
|
387
392
|
# @private
|
388
393
|
def initialize parent_config = nil
|
@@ -398,7 +403,7 @@ module Google
|
|
398
403
|
def rpcs
|
399
404
|
@rpcs ||= begin
|
400
405
|
parent_rpcs = nil
|
401
|
-
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)
|
402
407
|
Rpcs.new parent_rpcs
|
403
408
|
end
|
404
409
|
end
|
@@ -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.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-07 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
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,7 +162,6 @@ files:
|
|
134
162
|
- LICENSE.md
|
135
163
|
- README.md
|
136
164
|
- lib/google-cloud-text_to_speech-v1.rb
|
137
|
-
- lib/google/cloud/common_resources_pb.rb
|
138
165
|
- lib/google/cloud/text_to_speech/v1.rb
|
139
166
|
- lib/google/cloud/text_to_speech/v1/text_to_speech.rb
|
140
167
|
- lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb
|
@@ -165,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
192
|
- !ruby/object:Gem::Version
|
166
193
|
version: '0'
|
167
194
|
requirements: []
|
168
|
-
rubygems_version: 3.
|
195
|
+
rubygems_version: 3.1.3
|
169
196
|
signing_key:
|
170
197
|
specification_version: 4
|
171
198
|
summary: API Client library for the Cloud Text-to-Speech V1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|