google-cloud-text_to_speech-v1beta1 0.6.2 → 0.6.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: eb487510f962673ad23d8d1848f70f1123ef38200e00b0c069b186b454898d7f
|
|
4
|
+
data.tar.gz: '093af08eed710febc918104cb50cd3941c6e68dc9e05f1a21f2a2f457e9504e3'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ea0372cf4fafc40edf0a4c4085951dc1124379094abc46e0d0e31912d5193a12122c00af340b7a0343ef8976c9ea8b16d6528793ff14722dc5400e40dcf97c8
|
|
7
|
+
data.tar.gz: dbbbadbdb3442fc6d9b9fa2136a4be13eb1c9be4a3421c837edad3f7b4276895c59dad101b272f515fa4ce2ce128baa45faa920818fa46b57f460439cd16b66c
|
|
@@ -39,13 +39,12 @@ module Google
|
|
|
39
39
|
# See {::Google::Cloud::TextToSpeech::V1beta1::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::V1beta1::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]
|
|
@@ -97,19 +96,15 @@ module Google
|
|
|
97
96
|
##
|
|
98
97
|
# Create a new TextToSpeech client object.
|
|
99
98
|
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
# To create a new TextToSpeech client with the default
|
|
103
|
-
# configuration:
|
|
104
|
-
#
|
|
105
|
-
# client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new
|
|
99
|
+
# @example
|
|
106
100
|
#
|
|
107
|
-
#
|
|
108
|
-
#
|
|
101
|
+
# # Create a client using the default configuration
|
|
102
|
+
# client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new
|
|
109
103
|
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
112
|
-
#
|
|
104
|
+
# # Create a client using a custom configuration
|
|
105
|
+
# client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new do |config|
|
|
106
|
+
# config.timeout = 10.0
|
|
107
|
+
# end
|
|
113
108
|
#
|
|
114
109
|
# @yield [config] Configure the TextToSpeech client.
|
|
115
110
|
# @yieldparam config [Client::Configuration]
|
|
@@ -129,10 +124,9 @@ module Google
|
|
|
129
124
|
|
|
130
125
|
# Create credentials
|
|
131
126
|
credentials = @config.credentials
|
|
132
|
-
# Use self-signed JWT if the
|
|
127
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
133
128
|
# but only if the default endpoint does not have a region prefix.
|
|
134
|
-
enable_self_signed_jwt = @config.
|
|
135
|
-
@config.endpoint == Client.configure.endpoint &&
|
|
129
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
|
136
130
|
!@config.endpoint.split(".").first.include?("-")
|
|
137
131
|
credentials ||= Credentials.default scope: @config.scope,
|
|
138
132
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -210,7 +204,9 @@ module Google
|
|
|
210
204
|
options.apply_defaults timeout: @config.rpcs.list_voices.timeout,
|
|
211
205
|
metadata: metadata,
|
|
212
206
|
retry_policy: @config.rpcs.list_voices.retry_policy
|
|
213
|
-
|
|
207
|
+
|
|
208
|
+
options.apply_defaults timeout: @config.timeout,
|
|
209
|
+
metadata: @config.metadata,
|
|
214
210
|
retry_policy: @config.retry_policy
|
|
215
211
|
|
|
216
212
|
@text_to_speech_stub.call_rpc :list_voices, request, options: options do |response, operation|
|
|
@@ -277,7 +273,9 @@ module Google
|
|
|
277
273
|
options.apply_defaults timeout: @config.rpcs.synthesize_speech.timeout,
|
|
278
274
|
metadata: metadata,
|
|
279
275
|
retry_policy: @config.rpcs.synthesize_speech.retry_policy
|
|
280
|
-
|
|
276
|
+
|
|
277
|
+
options.apply_defaults timeout: @config.timeout,
|
|
278
|
+
metadata: @config.metadata,
|
|
281
279
|
retry_policy: @config.retry_policy
|
|
282
280
|
|
|
283
281
|
@text_to_speech_stub.call_rpc :synthesize_speech, request, options: options do |response, operation|
|
|
@@ -301,22 +299,21 @@ module Google
|
|
|
301
299
|
# Configuration can be applied globally to all clients, or to a single client
|
|
302
300
|
# on construction.
|
|
303
301
|
#
|
|
304
|
-
#
|
|
305
|
-
#
|
|
306
|
-
#
|
|
307
|
-
# to 20 seconds,
|
|
308
|
-
#
|
|
309
|
-
#
|
|
310
|
-
#
|
|
311
|
-
#
|
|
312
|
-
#
|
|
313
|
-
#
|
|
314
|
-
#
|
|
315
|
-
#
|
|
316
|
-
#
|
|
317
|
-
#
|
|
318
|
-
#
|
|
319
|
-
# end
|
|
302
|
+
# @example
|
|
303
|
+
#
|
|
304
|
+
# # Modify the global config, setting the timeout for
|
|
305
|
+
# # list_voices to 20 seconds,
|
|
306
|
+
# # and all remaining timeouts to 10 seconds.
|
|
307
|
+
# ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.configure do |config|
|
|
308
|
+
# config.timeout = 10.0
|
|
309
|
+
# config.rpcs.list_voices.timeout = 20.0
|
|
310
|
+
# end
|
|
311
|
+
#
|
|
312
|
+
# # Apply the above configuration only to a new client.
|
|
313
|
+
# client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new do |config|
|
|
314
|
+
# config.timeout = 10.0
|
|
315
|
+
# config.rpcs.list_voices.timeout = 20.0
|
|
316
|
+
# end
|
|
320
317
|
#
|
|
321
318
|
# @!attribute [rw] endpoint
|
|
322
319
|
# 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-v1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.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
|