google-cloud-text_to_speech-v1 0.4.4 → 0.5.0

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: 4b52612dcfb4ba3199c8596153cbca71334c69d52a07ea33939a9f8d93ac3ca0
4
- data.tar.gz: 12c76cf60d43375e2a7f76a464b570163eec4939328e926002e60f9478df0c7f
3
+ metadata.gz: e01f3eb8d02c43950e328a35d41a27a2c720cac2065514148c555656fe8273b6
4
+ data.tar.gz: 7580a916720c64a4c0c516fd8af4d22dd5ec364765eb0c3488235e6acbb348fe
5
5
  SHA512:
6
- metadata.gz: 2d4d81c88f8c8a0e2e1d8501357b5f50e17fcbbc771687728b715a18520e180b6be4d758eae42e09517c4bc8d5a78837709b9dfe520d0d241f2ab3bf51dbd0f5
7
- data.tar.gz: 698f4e12c3603d0e4865d75da9fc923a6680b9c85cd132e41004e2b3d0c92be9b3793d3d535271b22eb7ac813daf89c200b69dca20ffdda5a052ee48b5ab4078
6
+ metadata.gz: 8086e26ada49d2a16fb3dc903be21c05ca8fb6c2d4d0569c46e62b981d86f3c06fae70976527c095eccd0ed82c922e8991d6b43011fce2c6bb210cd5606d79df
7
+ data.tar.gz: f0fcc86a5fb60fc128b23ffc1f2bca89251eb0766d11856911a95ee183299f57e1965cfca8adc517f403ac0608983c4e3058ad233d19b782171787245e00a841
@@ -62,13 +62,8 @@ module Google
62
62
  end
63
63
  default_config = Client::Configuration.new parent_config
64
64
 
65
- default_config.rpcs.list_voices.timeout = 600.0
66
- default_config.rpcs.list_voices.retry_policy = {
67
- initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
68
- }
69
-
70
- default_config.rpcs.synthesize_speech.timeout = 600.0
71
- default_config.rpcs.synthesize_speech.retry_policy = {
65
+ default_config.timeout = 300.0
66
+ default_config.retry_policy = {
72
67
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
73
68
  }
74
69
 
@@ -174,11 +169,11 @@ module Google
174
169
  # Optional. Recommended.
175
170
  # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
176
171
  # specified, the ListVoices call will only return voices that can be used to
177
- # synthesize this language_code. E.g. when specifying "en-NZ", you will get
178
- # supported "en-\*" voices; when specifying "no", you will get supported
179
- # "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh"
180
- # will also get supported "cmn-\*" voices; specifying "zh-hk" will also get
181
- # supported "yue-\*" voices.
172
+ # synthesize this language_code. E.g. when specifying `"en-NZ"`, you will get
173
+ # supported `"en-\*"` voices; when specifying `"no"`, you will get supported
174
+ # `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices; specifying
175
+ # `"zh"` will also get supported `"cmn-\*"` voices; specifying `"zh-hk"` will
176
+ # also get supported `"yue-\*"` voices.
182
177
  #
183
178
  # @yield [response, operation] Access the result along with the RPC operation
184
179
  # @yieldparam response [::Google::Cloud::TextToSpeech::V1::ListVoicesResponse]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module TextToSpeech
23
23
  module V1
24
- VERSION = "0.4.4"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -4,6 +4,7 @@
4
4
  require 'google/api/annotations_pb'
5
5
  require 'google/api/client_pb'
6
6
  require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
7
8
  require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -58,6 +59,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
58
59
  value :LINEAR16, 1
59
60
  value :MP3, 2
60
61
  value :OGG_OPUS, 3
62
+ value :MULAW, 5
63
+ value :ALAW, 6
61
64
  end
62
65
  end
63
66
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/texttospeech/v1/cloud_tts.proto for package 'Google.Cloud.TextToSpeech.V1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2021 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
15
15
  # See the License for the specific language governing permissions and
16
16
  # limitations under the License.
17
17
  #
18
- #
19
18
 
20
19
  require 'grpc'
21
20
  require 'google/cloud/texttospeech/v1/cloud_tts_pb'
@@ -27,11 +27,11 @@ module Google
27
27
  # Optional. Recommended.
28
28
  # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. If
29
29
  # specified, the ListVoices call will only return voices that can be used to
30
- # synthesize this language_code. E.g. when specifying "en-NZ", you will get
31
- # supported "en-\*" voices; when specifying "no", you will get supported
32
- # "no-\*" (Norwegian) and "nb-\*" (Norwegian Bokmal) voices; specifying "zh"
33
- # will also get supported "cmn-\*" voices; specifying "zh-hk" will also get
34
- # supported "yue-\*" voices.
30
+ # synthesize this language_code. E.g. when specifying `"en-NZ"`, you will get
31
+ # supported `"en-\*"` voices; when specifying `"no"`, you will get supported
32
+ # `"no-\*"` (Norwegian) and `"nb-\*"` (Norwegian Bokmal) voices; specifying
33
+ # `"zh"` will also get supported `"cmn-\*"` voices; specifying `"zh-hk"` will
34
+ # also get supported `"yue-\*"` voices.
35
35
  class ListVoicesRequest
36
36
  include ::Google::Protobuf::MessageExts
37
37
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -205,7 +205,7 @@ module Google
205
205
  # A female voice.
206
206
  FEMALE = 2
207
207
 
208
- # A gender-neutral voice.
208
+ # A gender-neutral voice. This voice is not yet supported.
209
209
  NEUTRAL = 3
210
210
  end
211
211
 
@@ -227,6 +227,14 @@ module Google
227
227
  # Chrome and Firefox). The quality of the encoding is considerably higher
228
228
  # than MP3 while using approximately the same bitrate.
229
229
  OGG_OPUS = 3
230
+
231
+ # 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
232
+ # Audio content returned as MULAW also contains a WAV header.
233
+ MULAW = 5
234
+
235
+ # 8-bit samples that compand 14-bit audio samples using G.711 PCMU/A-law.
236
+ # Audio content returned as ALAW also contains a WAV header.
237
+ ALAW = 6
230
238
  end
231
239
  end
232
240
  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.4
4
+ version: 0.5.0
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-08 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common