google-cloud-text_to_speech 0.6.1 → 0.7.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: 61b36a11b3733dc37a7c9d30d432cd2819443782cfe156cb40b46a185a6b0435
4
- data.tar.gz: 208fcf99877b8a3fd50a898f8d01f270f756977b7a3833a4443e68a152864e68
3
+ metadata.gz: 1daa3d5fef9d7a095e6fabaf7d611f21eb5629647756b677c1b943b79d22c7a7
4
+ data.tar.gz: c7a21a8289aab4a49f6f3241c9f55e90b4b92d64f57375ab4d41e45f2329c700
5
5
  SHA512:
6
- metadata.gz: 4d0e9d2b5d2835f2184934936dcfd4532d76d5795ee3b47c3d2bd2c3232aaafa8d1d4ffbd8e172bf1859324c0346e479e1290e737a5decd32619587f72bb3228
7
- data.tar.gz: e3adab976a4048d9b64202f2ad64384144463d1c73594099682970ef9c235303b789e7e45cb51bd3ae6b001f5cd94d8211e3770faec890cab9a1fdcb7adf7bca
6
+ metadata.gz: b4da928d1c629d55362a1cfa59bcfa304cbf6b99c8a6e4ea9887598738ca71d97ca143c787d36ecb95b80dfce7468d066723096da2e465cf320fc39be83d5b2b
7
+ data.tar.gz: 591f4e9f1fa33e144cfed553b567c080477362bc49c40ff0505e5cd59f1128e749c147b81151d4c626bf3e08bda4105faa9ec0b242200b3906487eb48b46f797
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Cloud
18
- module Texttospeech
18
+ module TextToSpeech
19
19
  module V1
20
20
  # The top-level message sent by the client for the `ListVoices` method.
21
21
  # @!attribute [rw] language_code
@@ -32,7 +32,7 @@ module Google
32
32
 
33
33
  # The message returned to the client by the `ListVoices` method.
34
34
  # @!attribute [rw] voices
35
- # @return [Array<Google::Cloud::Texttospeech::V1::Voice>]
35
+ # @return [Array<Google::Cloud::TextToSpeech::V1::Voice>]
36
36
  # The list of voices.
37
37
  class ListVoicesResponse; end
38
38
 
@@ -46,7 +46,7 @@ module Google
46
46
  # @return [String]
47
47
  # The name of this voice. Each distinct voice has a unique name.
48
48
  # @!attribute [rw] ssml_gender
49
- # @return [Google::Cloud::Texttospeech::V1::SsmlVoiceGender]
49
+ # @return [Google::Cloud::TextToSpeech::V1::SsmlVoiceGender]
50
50
  # The gender of this voice.
51
51
  # @!attribute [rw] natural_sample_rate_hertz
52
52
  # @return [Integer]
@@ -55,13 +55,13 @@ module Google
55
55
 
56
56
  # The top-level message sent by the client for the `SynthesizeSpeech` method.
57
57
  # @!attribute [rw] input
58
- # @return [Google::Cloud::Texttospeech::V1::SynthesisInput]
58
+ # @return [Google::Cloud::TextToSpeech::V1::SynthesisInput]
59
59
  # Required. The Synthesizer requires either plain text or SSML as input.
60
60
  # @!attribute [rw] voice
61
- # @return [Google::Cloud::Texttospeech::V1::VoiceSelectionParams]
61
+ # @return [Google::Cloud::TextToSpeech::V1::VoiceSelectionParams]
62
62
  # Required. The desired voice of the synthesized audio.
63
63
  # @!attribute [rw] audio_config
64
- # @return [Google::Cloud::Texttospeech::V1::AudioConfig]
64
+ # @return [Google::Cloud::TextToSpeech::V1::AudioConfig]
65
65
  # Required. The configuration of the synthesized audio.
66
66
  class SynthesizeSpeechRequest; end
67
67
 
@@ -99,7 +99,7 @@ module Google
99
99
  # The name of the voice. If not set, the service will choose a
100
100
  # voice based on the other parameters such as language_code and gender.
101
101
  # @!attribute [rw] ssml_gender
102
- # @return [Google::Cloud::Texttospeech::V1::SsmlVoiceGender]
102
+ # @return [Google::Cloud::TextToSpeech::V1::SsmlVoiceGender]
103
103
  # The preferred gender of the voice. If not set, the service will
104
104
  # choose a voice based on the other parameters such as language_code and
105
105
  # name. Note that this is only a preference, not requirement; if a
@@ -109,7 +109,7 @@ module Google
109
109
 
110
110
  # Description of audio data to be synthesized.
111
111
  # @!attribute [rw] audio_encoding
112
- # @return [Google::Cloud::Texttospeech::V1::AudioEncoding]
112
+ # @return [Google::Cloud::TextToSpeech::V1::AudioEncoding]
113
113
  # Required. The format of the audio byte stream.
114
114
  # @!attribute [rw] speaking_rate
115
115
  # @return [Float]
@@ -36,7 +36,7 @@ module Google
36
36
  # Service that implements Google Cloud Text-to-Speech API.
37
37
  #
38
38
  # @!attribute [r] text_to_speech_stub
39
- # @return [Google::Cloud::Texttospeech::V1::TextToSpeech::Stub]
39
+ # @return [Google::Cloud::TextToSpeech::V1::TextToSpeech::Stub]
40
40
  class TextToSpeechClient
41
41
  # @private
42
42
  attr_reader :text_to_speech_stub
@@ -167,7 +167,7 @@ module Google
167
167
  updater_proc: updater_proc,
168
168
  scopes: scopes,
169
169
  interceptors: interceptors,
170
- &Google::Cloud::Texttospeech::V1::TextToSpeech::Stub.method(:new)
170
+ &Google::Cloud::TextToSpeech::V1::TextToSpeech::Stub.method(:new)
171
171
  )
172
172
 
173
173
  @list_voices = Google::Gax.create_api_call(
@@ -199,9 +199,9 @@ module Google
199
199
  # Overrides the default settings for this call, e.g, timeout,
200
200
  # retries, etc.
201
201
  # @yield [result, operation] Access the result along with the RPC operation
202
- # @yieldparam result [Google::Cloud::Texttospeech::V1::ListVoicesResponse]
202
+ # @yieldparam result [Google::Cloud::TextToSpeech::V1::ListVoicesResponse]
203
203
  # @yieldparam operation [GRPC::ActiveCall::Operation]
204
- # @return [Google::Cloud::Texttospeech::V1::ListVoicesResponse]
204
+ # @return [Google::Cloud::TextToSpeech::V1::ListVoicesResponse]
205
205
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
206
206
  # @example
207
207
  # require "google/cloud/text_to_speech"
@@ -216,32 +216,32 @@ module Google
216
216
  req = {
217
217
  language_code: language_code
218
218
  }.delete_if { |_, v| v.nil? }
219
- req = Google::Gax::to_proto(req, Google::Cloud::Texttospeech::V1::ListVoicesRequest)
219
+ req = Google::Gax::to_proto(req, Google::Cloud::TextToSpeech::V1::ListVoicesRequest)
220
220
  @list_voices.call(req, options, &block)
221
221
  end
222
222
 
223
223
  # Synthesizes speech synchronously: receive results after all text input
224
224
  # has been processed.
225
225
  #
226
- # @param input [Google::Cloud::Texttospeech::V1::SynthesisInput | Hash]
226
+ # @param input [Google::Cloud::TextToSpeech::V1::SynthesisInput | Hash]
227
227
  # Required. The Synthesizer requires either plain text or SSML as input.
228
- # A hash of the same form as `Google::Cloud::Texttospeech::V1::SynthesisInput`
228
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1::SynthesisInput`
229
229
  # can also be provided.
230
- # @param voice [Google::Cloud::Texttospeech::V1::VoiceSelectionParams | Hash]
230
+ # @param voice [Google::Cloud::TextToSpeech::V1::VoiceSelectionParams | Hash]
231
231
  # Required. The desired voice of the synthesized audio.
232
- # A hash of the same form as `Google::Cloud::Texttospeech::V1::VoiceSelectionParams`
232
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1::VoiceSelectionParams`
233
233
  # can also be provided.
234
- # @param audio_config [Google::Cloud::Texttospeech::V1::AudioConfig | Hash]
234
+ # @param audio_config [Google::Cloud::TextToSpeech::V1::AudioConfig | Hash]
235
235
  # Required. The configuration of the synthesized audio.
236
- # A hash of the same form as `Google::Cloud::Texttospeech::V1::AudioConfig`
236
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1::AudioConfig`
237
237
  # can also be provided.
238
238
  # @param options [Google::Gax::CallOptions]
239
239
  # Overrides the default settings for this call, e.g, timeout,
240
240
  # retries, etc.
241
241
  # @yield [result, operation] Access the result along with the RPC operation
242
- # @yieldparam result [Google::Cloud::Texttospeech::V1::SynthesizeSpeechResponse]
242
+ # @yieldparam result [Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
243
243
  # @yieldparam operation [GRPC::ActiveCall::Operation]
244
- # @return [Google::Cloud::Texttospeech::V1::SynthesizeSpeechResponse]
244
+ # @return [Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
245
245
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
246
246
  # @example
247
247
  # require "google/cloud/text_to_speech"
@@ -269,7 +269,7 @@ module Google
269
269
  voice: voice,
270
270
  audio_config: audio_config
271
271
  }.delete_if { |_, v| v.nil? }
272
- req = Google::Gax::to_proto(req, Google::Cloud::Texttospeech::V1::SynthesizeSpeechRequest)
272
+ req = Google::Gax::to_proto(req, Google::Cloud::TextToSpeech::V1::SynthesizeSpeechRequest)
273
273
  @synthesize_speech.call(req, options, &block)
274
274
  end
275
275
  end
@@ -15,7 +15,7 @@
15
15
 
16
16
  module Google
17
17
  module Cloud
18
- module Texttospeech
18
+ module TextToSpeech
19
19
  module V1beta1
20
20
  # The top-level message sent by the client for the `ListVoices` method.
21
21
  # @!attribute [rw] language_code
@@ -32,7 +32,7 @@ module Google
32
32
 
33
33
  # The message returned to the client by the `ListVoices` method.
34
34
  # @!attribute [rw] voices
35
- # @return [Array<Google::Cloud::Texttospeech::V1beta1::Voice>]
35
+ # @return [Array<Google::Cloud::TextToSpeech::V1beta1::Voice>]
36
36
  # The list of voices.
37
37
  class ListVoicesResponse; end
38
38
 
@@ -46,7 +46,7 @@ module Google
46
46
  # @return [String]
47
47
  # The name of this voice. Each distinct voice has a unique name.
48
48
  # @!attribute [rw] ssml_gender
49
- # @return [Google::Cloud::Texttospeech::V1beta1::SsmlVoiceGender]
49
+ # @return [Google::Cloud::TextToSpeech::V1beta1::SsmlVoiceGender]
50
50
  # The gender of this voice.
51
51
  # @!attribute [rw] natural_sample_rate_hertz
52
52
  # @return [Integer]
@@ -55,13 +55,13 @@ module Google
55
55
 
56
56
  # The top-level message sent by the client for the `SynthesizeSpeech` method.
57
57
  # @!attribute [rw] input
58
- # @return [Google::Cloud::Texttospeech::V1beta1::SynthesisInput]
58
+ # @return [Google::Cloud::TextToSpeech::V1beta1::SynthesisInput]
59
59
  # Required. The Synthesizer requires either plain text or SSML as input.
60
60
  # @!attribute [rw] voice
61
- # @return [Google::Cloud::Texttospeech::V1beta1::VoiceSelectionParams]
61
+ # @return [Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams]
62
62
  # Required. The desired voice of the synthesized audio.
63
63
  # @!attribute [rw] audio_config
64
- # @return [Google::Cloud::Texttospeech::V1beta1::AudioConfig]
64
+ # @return [Google::Cloud::TextToSpeech::V1beta1::AudioConfig]
65
65
  # Required. The configuration of the synthesized audio.
66
66
  class SynthesizeSpeechRequest; end
67
67
 
@@ -99,7 +99,7 @@ module Google
99
99
  # The name of the voice. If not set, the service will choose a
100
100
  # voice based on the other parameters such as language_code and gender.
101
101
  # @!attribute [rw] ssml_gender
102
- # @return [Google::Cloud::Texttospeech::V1beta1::SsmlVoiceGender]
102
+ # @return [Google::Cloud::TextToSpeech::V1beta1::SsmlVoiceGender]
103
103
  # The preferred gender of the voice. If not set, the service will
104
104
  # choose a voice based on the other parameters such as language_code and
105
105
  # name. Note that this is only a preference, not requirement; if a
@@ -109,7 +109,7 @@ module Google
109
109
 
110
110
  # Description of audio data to be synthesized.
111
111
  # @!attribute [rw] audio_encoding
112
- # @return [Google::Cloud::Texttospeech::V1beta1::AudioEncoding]
112
+ # @return [Google::Cloud::TextToSpeech::V1beta1::AudioEncoding]
113
113
  # Required. The format of the audio byte stream.
114
114
  # @!attribute [rw] speaking_rate
115
115
  # @return [Float]
@@ -36,7 +36,7 @@ module Google
36
36
  # Service that implements Google Cloud Text-to-Speech API.
37
37
  #
38
38
  # @!attribute [r] text_to_speech_stub
39
- # @return [Google::Cloud::Texttospeech::V1beta1::TextToSpeech::Stub]
39
+ # @return [Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Stub]
40
40
  class TextToSpeechClient
41
41
  # @private
42
42
  attr_reader :text_to_speech_stub
@@ -167,7 +167,7 @@ module Google
167
167
  updater_proc: updater_proc,
168
168
  scopes: scopes,
169
169
  interceptors: interceptors,
170
- &Google::Cloud::Texttospeech::V1beta1::TextToSpeech::Stub.method(:new)
170
+ &Google::Cloud::TextToSpeech::V1beta1::TextToSpeech::Stub.method(:new)
171
171
  )
172
172
 
173
173
  @list_voices = Google::Gax.create_api_call(
@@ -199,9 +199,9 @@ module Google
199
199
  # Overrides the default settings for this call, e.g, timeout,
200
200
  # retries, etc.
201
201
  # @yield [result, operation] Access the result along with the RPC operation
202
- # @yieldparam result [Google::Cloud::Texttospeech::V1beta1::ListVoicesResponse]
202
+ # @yieldparam result [Google::Cloud::TextToSpeech::V1beta1::ListVoicesResponse]
203
203
  # @yieldparam operation [GRPC::ActiveCall::Operation]
204
- # @return [Google::Cloud::Texttospeech::V1beta1::ListVoicesResponse]
204
+ # @return [Google::Cloud::TextToSpeech::V1beta1::ListVoicesResponse]
205
205
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
206
206
  # @example
207
207
  # require "google/cloud/text_to_speech"
@@ -216,32 +216,32 @@ module Google
216
216
  req = {
217
217
  language_code: language_code
218
218
  }.delete_if { |_, v| v.nil? }
219
- req = Google::Gax::to_proto(req, Google::Cloud::Texttospeech::V1beta1::ListVoicesRequest)
219
+ req = Google::Gax::to_proto(req, Google::Cloud::TextToSpeech::V1beta1::ListVoicesRequest)
220
220
  @list_voices.call(req, options, &block)
221
221
  end
222
222
 
223
223
  # Synthesizes speech synchronously: receive results after all text input
224
224
  # has been processed.
225
225
  #
226
- # @param input [Google::Cloud::Texttospeech::V1beta1::SynthesisInput | Hash]
226
+ # @param input [Google::Cloud::TextToSpeech::V1beta1::SynthesisInput | Hash]
227
227
  # Required. The Synthesizer requires either plain text or SSML as input.
228
- # A hash of the same form as `Google::Cloud::Texttospeech::V1beta1::SynthesisInput`
228
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1beta1::SynthesisInput`
229
229
  # can also be provided.
230
- # @param voice [Google::Cloud::Texttospeech::V1beta1::VoiceSelectionParams | Hash]
230
+ # @param voice [Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams | Hash]
231
231
  # Required. The desired voice of the synthesized audio.
232
- # A hash of the same form as `Google::Cloud::Texttospeech::V1beta1::VoiceSelectionParams`
232
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1beta1::VoiceSelectionParams`
233
233
  # can also be provided.
234
- # @param audio_config [Google::Cloud::Texttospeech::V1beta1::AudioConfig | Hash]
234
+ # @param audio_config [Google::Cloud::TextToSpeech::V1beta1::AudioConfig | Hash]
235
235
  # Required. The configuration of the synthesized audio.
236
- # A hash of the same form as `Google::Cloud::Texttospeech::V1beta1::AudioConfig`
236
+ # A hash of the same form as `Google::Cloud::TextToSpeech::V1beta1::AudioConfig`
237
237
  # can also be provided.
238
238
  # @param options [Google::Gax::CallOptions]
239
239
  # Overrides the default settings for this call, e.g, timeout,
240
240
  # retries, etc.
241
241
  # @yield [result, operation] Access the result along with the RPC operation
242
- # @yieldparam result [Google::Cloud::Texttospeech::V1beta1::SynthesizeSpeechResponse]
242
+ # @yieldparam result [Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
243
243
  # @yieldparam operation [GRPC::ActiveCall::Operation]
244
- # @return [Google::Cloud::Texttospeech::V1beta1::SynthesizeSpeechResponse]
244
+ # @return [Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
245
245
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
246
246
  # @example
247
247
  # require "google/cloud/text_to_speech"
@@ -269,7 +269,7 @@ module Google
269
269
  voice: voice,
270
270
  audio_config: audio_config
271
271
  }.delete_if { |_, v| v.nil? }
272
- req = Google::Gax::to_proto(req, Google::Cloud::Texttospeech::V1beta1::SynthesizeSpeechRequest)
272
+ req = Google::Gax::to_proto(req, Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest)
273
273
  @synthesize_speech.call(req, options, &block)
274
274
  end
275
275
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module TextToSpeech
19
- VERSION = "0.6.1".freeze
19
+ VERSION = "0.7.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -63,19 +63,20 @@ end
63
63
 
64
64
  module Google
65
65
  module Cloud
66
- module Texttospeech
67
- module V1
68
- ListVoicesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesRequest").msgclass
69
- ListVoicesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesResponse").msgclass
70
- Voice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.Voice").msgclass
71
- SynthesizeSpeechRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechRequest").msgclass
72
- SynthesisInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesisInput").msgclass
73
- VoiceSelectionParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.VoiceSelectionParams").msgclass
74
- AudioConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioConfig").msgclass
75
- SynthesizeSpeechResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechResponse").msgclass
76
- SsmlVoiceGender = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SsmlVoiceGender").enummodule
77
- AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioEncoding").enummodule
78
- end
66
+ module TextToSpeech
79
67
  end
68
+ Texttospeech = TextToSpeech unless const_defined? :Texttospeech
80
69
  end
81
70
  end
71
+ module Google::Cloud::TextToSpeech::V1
72
+ ListVoicesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesRequest").msgclass
73
+ ListVoicesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesResponse").msgclass
74
+ Voice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.Voice").msgclass
75
+ SynthesizeSpeechRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechRequest").msgclass
76
+ SynthesisInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesisInput").msgclass
77
+ VoiceSelectionParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.VoiceSelectionParams").msgclass
78
+ AudioConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioConfig").msgclass
79
+ SynthesizeSpeechResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechResponse").msgclass
80
+ SsmlVoiceGender = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SsmlVoiceGender").enummodule
81
+ AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioEncoding").enummodule
82
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/texttospeech/v1/cloud_tts.proto for package 'google.cloud.texttospeech.v1'
2
+ # Source: google/cloud/texttospeech/v1/cloud_tts.proto for package 'Google::Cloud::TextToSpeech::V1'
3
3
  # Original file comments:
4
4
  # Copyright 2019 Google LLC.
5
5
  #
@@ -23,28 +23,29 @@ require 'google/cloud/texttospeech/v1/cloud_tts_pb'
23
23
 
24
24
  module Google
25
25
  module Cloud
26
- module Texttospeech
27
- module V1
28
- module TextToSpeech
29
- # Service that implements Google Cloud Text-to-Speech API.
30
- class Service
31
-
32
- include GRPC::GenericService
26
+ module TextToSpeech
27
+ end
28
+ Texttospeech = TextToSpeech unless const_defined? :Texttospeech
29
+ end
30
+ end
31
+ module Google::Cloud::TextToSpeech::V1
32
+ module TextToSpeech
33
+ # Service that implements Google Cloud Text-to-Speech API.
34
+ class Service
33
35
 
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.cloud.texttospeech.v1.TextToSpeech'
36
+ include GRPC::GenericService
37
37
 
38
- # Returns a list of Voice supported for synthesis.
39
- rpc :ListVoices, ListVoicesRequest, ListVoicesResponse
40
- # Synthesizes speech synchronously: receive results after all text input
41
- # has been processed.
42
- rpc :SynthesizeSpeech, SynthesizeSpeechRequest, SynthesizeSpeechResponse
43
- end
38
+ self.marshal_class_method = :encode
39
+ self.unmarshal_class_method = :decode
40
+ self.service_name = 'google.cloud.texttospeech.v1.TextToSpeech'
44
41
 
45
- Stub = Service.rpc_stub_class
46
- end
47
- end
42
+ # Returns a list of Voice supported for synthesis.
43
+ rpc :ListVoices, ListVoicesRequest, ListVoicesResponse
44
+ # Synthesizes speech synchronously: receive results after all text input
45
+ # has been processed.
46
+ rpc :SynthesizeSpeech, SynthesizeSpeechRequest, SynthesizeSpeechResponse
48
47
  end
48
+
49
+ Stub = Service.rpc_stub_class
49
50
  end
50
51
  end
@@ -63,19 +63,20 @@ end
63
63
 
64
64
  module Google
65
65
  module Cloud
66
- module Texttospeech
67
- module V1beta1
68
- ListVoicesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.ListVoicesRequest").msgclass
69
- ListVoicesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.ListVoicesResponse").msgclass
70
- Voice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.Voice").msgclass
71
- SynthesizeSpeechRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest").msgclass
72
- SynthesisInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesisInput").msgclass
73
- VoiceSelectionParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.VoiceSelectionParams").msgclass
74
- AudioConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AudioConfig").msgclass
75
- SynthesizeSpeechResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse").msgclass
76
- SsmlVoiceGender = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SsmlVoiceGender").enummodule
77
- AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AudioEncoding").enummodule
78
- end
66
+ module TextToSpeech
79
67
  end
68
+ Texttospeech = TextToSpeech unless const_defined? :Texttospeech
80
69
  end
81
70
  end
71
+ module Google::Cloud::TextToSpeech::V1beta1
72
+ ListVoicesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.ListVoicesRequest").msgclass
73
+ ListVoicesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.ListVoicesResponse").msgclass
74
+ Voice = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.Voice").msgclass
75
+ SynthesizeSpeechRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest").msgclass
76
+ SynthesisInput = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesisInput").msgclass
77
+ VoiceSelectionParams = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.VoiceSelectionParams").msgclass
78
+ AudioConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AudioConfig").msgclass
79
+ SynthesizeSpeechResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse").msgclass
80
+ SsmlVoiceGender = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SsmlVoiceGender").enummodule
81
+ AudioEncoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AudioEncoding").enummodule
82
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto for package 'google.cloud.texttospeech.v1beta1'
2
+ # Source: google/cloud/texttospeech/v1beta1/cloud_tts.proto for package 'Google::Cloud::TextToSpeech::V1beta1'
3
3
  # Original file comments:
4
4
  # Copyright 2019 Google LLC.
5
5
  #
@@ -23,28 +23,29 @@ require 'google/cloud/texttospeech/v1beta1/cloud_tts_pb'
23
23
 
24
24
  module Google
25
25
  module Cloud
26
- module Texttospeech
27
- module V1beta1
28
- module TextToSpeech
29
- # Service that implements Google Cloud Text-to-Speech API.
30
- class Service
31
-
32
- include GRPC::GenericService
26
+ module TextToSpeech
27
+ end
28
+ Texttospeech = TextToSpeech unless const_defined? :Texttospeech
29
+ end
30
+ end
31
+ module Google::Cloud::TextToSpeech::V1beta1
32
+ module TextToSpeech
33
+ # Service that implements Google Cloud Text-to-Speech API.
34
+ class Service
33
35
 
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.cloud.texttospeech.v1beta1.TextToSpeech'
36
+ include GRPC::GenericService
37
37
 
38
- # Returns a list of Voice supported for synthesis.
39
- rpc :ListVoices, ListVoicesRequest, ListVoicesResponse
40
- # Synthesizes speech synchronously: receive results after all text input
41
- # has been processed.
42
- rpc :SynthesizeSpeech, SynthesizeSpeechRequest, SynthesizeSpeechResponse
43
- end
38
+ self.marshal_class_method = :encode
39
+ self.unmarshal_class_method = :decode
40
+ self.service_name = 'google.cloud.texttospeech.v1beta1.TextToSpeech'
44
41
 
45
- Stub = Service.rpc_stub_class
46
- end
47
- end
42
+ # Returns a list of Voice supported for synthesis.
43
+ rpc :ListVoices, ListVoicesRequest, ListVoicesResponse
44
+ # Synthesizes speech synchronously: receive results after all text input
45
+ # has been processed.
46
+ rpc :SynthesizeSpeech, SynthesizeSpeechRequest, SynthesizeSpeechResponse
48
47
  end
48
+
49
+ Stub = Service.rpc_stub_class
49
50
  end
50
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-text_to_speech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.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: 2020-04-01 00:00:00.000000000 Z
11
+ date: 2020-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax