google-cloud-text_to_speech-v1beta1 0.6.2 → 0.6.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: bec18bc306e07c7f11723508d935400e720776f1e3db3492cae07156b0e352a1
4
- data.tar.gz: d793b9ea6bde282e3870bfb148911ed91fb434e5d49687124564e2991eadc796
3
+ metadata.gz: eb487510f962673ad23d8d1848f70f1123ef38200e00b0c069b186b454898d7f
4
+ data.tar.gz: '093af08eed710febc918104cb50cd3941c6e68dc9e05f1a21f2a2f457e9504e3'
5
5
  SHA512:
6
- metadata.gz: f4e933bb75eeb91735e221b4ed42b0c05366351a2ad383ee3cb42cb6afdac10b0a16944ec2c2e5ecf26655afe375590f3d0093a0342a23f57fd83ef60f5a9cd5
7
- data.tar.gz: 616eb9fc1060c3dadd637042e7391ae45d9e91ffc84233e46ae52122978711062b8f892435a004b4b3b927d9740a0c8a4d379b940cc951f3afe986de53d0ca04
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
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all TextToSpeech clients:
45
- #
46
- # ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.configure do |config|
47
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new TextToSpeech client with a custom
108
- # configuration:
101
+ # # Create a client using the default configuration
102
+ # client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new
109
103
  #
110
- # client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new do |config|
111
- # config.timeout = 10.0
112
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
305
- #
306
- # To modify the global config, setting the timeout for list_voices
307
- # to 20 seconds, and all remaining timeouts to 10 seconds:
308
- #
309
- # ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.configure do |config|
310
- # config.timeout = 10.0
311
- # config.rpcs.list_voices.timeout = 20.0
312
- # end
313
- #
314
- # To apply the above configuration only to a new client:
315
- #
316
- # client = ::Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Client.new do |config|
317
- # config.timeout = 10.0
318
- # config.rpcs.list_voices.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module TextToSpeech
23
23
  module V1beta1
24
- VERSION = "0.6.2"
24
+ VERSION = "0.6.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-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
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-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