google-cloud-text_to_speech-v1 0.4.2 → 0.4.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 680ab8572ed23898495839f6f2e17cce5a68f2d64ebb3e58ca0ba1751b20e5ad
|
4
|
+
data.tar.gz: 9dd54c7cb8e649f8bb594035aae30a5a454e5078aff72f2e8a20700f264c63dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07656a7ed9e38189d9faeba0480ddc24ed614769a9f265c97b8a9d3cfbb07ce4cd81d78d21a916c7c41f75f30b0e76941a9e44314f30bbcd86596647fd0ad303
|
7
|
+
data.tar.gz: 2e92d0610dd4fcd8afb14fabbc4bbeebc458f96be6b49992adc09203965b10203cb11628102f2920f26beced325eae0bb2b27d5de91cf2e2401ac7fbf638dbb7
|
@@ -39,13 +39,12 @@ module Google
|
|
39
39
|
# See {::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client::Configuration}
|
40
40
|
# for a description of the configuration fields.
|
41
41
|
#
|
42
|
-
#
|
42
|
+
# @example
|
43
43
|
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# end
|
44
|
+
# # Modify the configuration for all TextToSpeech clients
|
45
|
+
# ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.configure do |config|
|
46
|
+
# config.timeout = 10.0
|
47
|
+
# end
|
49
48
|
#
|
50
49
|
# @yield [config] Configure the Client client.
|
51
50
|
# @yieldparam config [Client::Configuration]
|
@@ -102,19 +101,15 @@ module Google
|
|
102
101
|
##
|
103
102
|
# Create a new TextToSpeech client object.
|
104
103
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new TextToSpeech client with the default
|
108
|
-
# configuration:
|
109
|
-
#
|
110
|
-
# client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new
|
104
|
+
# @example
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
106
|
+
# # Create a client using the default configuration
|
107
|
+
# client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new
|
114
108
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
109
|
+
# # Create a client using a custom configuration
|
110
|
+
# client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new do |config|
|
111
|
+
# config.timeout = 10.0
|
112
|
+
# end
|
118
113
|
#
|
119
114
|
# @yield [config] Configure the TextToSpeech client.
|
120
115
|
# @yieldparam config [Client::Configuration]
|
@@ -134,10 +129,9 @@ module Google
|
|
134
129
|
|
135
130
|
# Create credentials
|
136
131
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
132
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
133
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
135
|
!@config.endpoint.split(".").first.include?("-")
|
142
136
|
credentials ||= Credentials.default scope: @config.scope,
|
143
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -214,7 +208,9 @@ module Google
|
|
214
208
|
options.apply_defaults timeout: @config.rpcs.list_voices.timeout,
|
215
209
|
metadata: metadata,
|
216
210
|
retry_policy: @config.rpcs.list_voices.retry_policy
|
217
|
-
|
211
|
+
|
212
|
+
options.apply_defaults timeout: @config.timeout,
|
213
|
+
metadata: @config.metadata,
|
218
214
|
retry_policy: @config.retry_policy
|
219
215
|
|
220
216
|
@text_to_speech_stub.call_rpc :list_voices, request, options: options do |response, operation|
|
@@ -279,7 +275,9 @@ module Google
|
|
279
275
|
options.apply_defaults timeout: @config.rpcs.synthesize_speech.timeout,
|
280
276
|
metadata: metadata,
|
281
277
|
retry_policy: @config.rpcs.synthesize_speech.retry_policy
|
282
|
-
|
278
|
+
|
279
|
+
options.apply_defaults timeout: @config.timeout,
|
280
|
+
metadata: @config.metadata,
|
283
281
|
retry_policy: @config.retry_policy
|
284
282
|
|
285
283
|
@text_to_speech_stub.call_rpc :synthesize_speech, request, options: options do |response, operation|
|
@@ -303,22 +301,21 @@ module Google
|
|
303
301
|
# Configuration can be applied globally to all clients, or to a single client
|
304
302
|
# on construction.
|
305
303
|
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
# to 20 seconds,
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
# end
|
304
|
+
# @example
|
305
|
+
#
|
306
|
+
# # Modify the global config, setting the timeout for
|
307
|
+
# # list_voices to 20 seconds,
|
308
|
+
# # and all remaining timeouts to 10 seconds.
|
309
|
+
# ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.configure do |config|
|
310
|
+
# config.timeout = 10.0
|
311
|
+
# config.rpcs.list_voices.timeout = 20.0
|
312
|
+
# end
|
313
|
+
#
|
314
|
+
# # Apply the above configuration only to a new client.
|
315
|
+
# client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new do |config|
|
316
|
+
# config.timeout = 10.0
|
317
|
+
# config.rpcs.list_voices.timeout = 20.0
|
318
|
+
# end
|
322
319
|
#
|
323
320
|
# @!attribute [rw] endpoint
|
324
321
|
# The hostname or hostname:port of the service endpoint.
|
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.
|
4
|
+
version: 0.4.3
|
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-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|