google-cloud-text_to_speech-v1 0.4.2 → 0.4.3

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: be43cfd9613410f6a75e837ccb9e9f370c58abf0212e06b15e02effa675fbb2f
4
- data.tar.gz: 9dc9332f7e495d25e3ebad140af6076cf513d617e952570aa1913cf73b89f972
3
+ metadata.gz: 680ab8572ed23898495839f6f2e17cce5a68f2d64ebb3e58ca0ba1751b20e5ad
4
+ data.tar.gz: 9dd54c7cb8e649f8bb594035aae30a5a454e5078aff72f2e8a20700f264c63dd
5
5
  SHA512:
6
- metadata.gz: bebfdcebdd3c76e702a7fc143d10c81e55a3521f5f55086b1559742d111420fa9ecfb698baddb37e32cb5417eb11d55c5ecf64c2465aae35727ba8c3a2c08c98
7
- data.tar.gz: 6f9a4de9742025d416f98e18eada01ac6907372e592fce8ff64f5defa20d6c3c86b0d0e2a35a81281c368130535c4d9996f6bae42d4c3052a3592f31cc08397a
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
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all TextToSpeech clients:
45
- #
46
- # ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.configure do |config|
47
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new TextToSpeech client with a custom
113
- # configuration:
106
+ # # Create a client using the default configuration
107
+ # client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new
114
108
  #
115
- # client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new do |config|
116
- # config.timeout = 10.0
117
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
307
- #
308
- # To modify the global config, setting the timeout for list_voices
309
- # to 20 seconds, and all remaining timeouts to 10 seconds:
310
- #
311
- # ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.configure do |config|
312
- # config.timeout = 10.0
313
- # config.rpcs.list_voices.timeout = 20.0
314
- # end
315
- #
316
- # To apply the above configuration only to a new client:
317
- #
318
- # client = ::Google::Cloud::TextToSpeech::V1::TextToSpeech::Client.new do |config|
319
- # config.timeout = 10.0
320
- # config.rpcs.list_voices.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module TextToSpeech
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
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.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a