google-cloud-text_to_speech-v1 0.5.2 → 0.6.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 +4 -4
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb +2 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech/paths.rb +52 -0
- data/lib/google/cloud/text_to_speech/v1/text_to_speech.rb +1 -0
- data/lib/google/cloud/text_to_speech/v1/version.rb +1 -1
- data/lib/google/cloud/text_to_speech/v1.rb +2 -0
- data/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb +12 -0
- data/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb +34 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e3d470320e3c987b314fad90f65388e057b9c4807a8f002ed9f72128a97b562
|
4
|
+
data.tar.gz: ae35310ecfc41ec0a5140eb0614ebfb22e1cdbc94390a7ac9f4faabcacc3f3b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc0d424a7787526b5dd9006079519ca12854fcf97c9b256485b06850610387980fddec6a9f1a864770af8940eb989851f1181c667077bb9d64f5f3708a230de
|
7
|
+
data.tar.gz: 6b7ad575e08f85495425107c8fd9e528a6f262470c73dd5fab693c7d8df74a465985414de068c41db94091c7001328043d78a97162190e2dac4037a934f0d468
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module TextToSpeech
|
23
|
+
module V1
|
24
|
+
module TextToSpeech
|
25
|
+
# Path helper methods for the TextToSpeech API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Model resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param model [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def model_path project:, location:, model:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/models/#{model}"
|
44
|
+
end
|
45
|
+
|
46
|
+
extend self
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/text_to_speech/v1/version"
|
24
24
|
|
25
25
|
require "google/cloud/text_to_speech/v1/text_to_speech/credentials"
|
26
|
+
require "google/cloud/text_to_speech/v1/text_to_speech/paths"
|
26
27
|
require "google/cloud/text_to_speech/v1/text_to_speech/client"
|
27
28
|
|
28
29
|
module Google
|
@@ -36,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
36
|
optional :language_code, :string, 1
|
37
37
|
optional :name, :string, 2
|
38
38
|
optional :ssml_gender, :enum, 3, "google.cloud.texttospeech.v1.SsmlVoiceGender"
|
39
|
+
optional :custom_voice, :message, 4, "google.cloud.texttospeech.v1.CustomVoiceParams"
|
39
40
|
end
|
40
41
|
add_message "google.cloud.texttospeech.v1.AudioConfig" do
|
41
42
|
optional :audio_encoding, :enum, 1, "google.cloud.texttospeech.v1.AudioEncoding"
|
@@ -45,6 +46,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
45
46
|
optional :sample_rate_hertz, :int32, 5
|
46
47
|
repeated :effects_profile_id, :string, 6
|
47
48
|
end
|
49
|
+
add_message "google.cloud.texttospeech.v1.CustomVoiceParams" do
|
50
|
+
optional :model, :string, 1
|
51
|
+
optional :reported_usage, :enum, 3, "google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage"
|
52
|
+
end
|
53
|
+
add_enum "google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage" do
|
54
|
+
value :REPORTED_USAGE_UNSPECIFIED, 0
|
55
|
+
value :REALTIME, 1
|
56
|
+
value :OFFLINE, 2
|
57
|
+
end
|
48
58
|
add_message "google.cloud.texttospeech.v1.SynthesizeSpeechResponse" do
|
49
59
|
optional :audio_content, :bytes, 1
|
50
60
|
end
|
@@ -76,6 +86,8 @@ module Google
|
|
76
86
|
SynthesisInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesisInput").msgclass
|
77
87
|
VoiceSelectionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.VoiceSelectionParams").msgclass
|
78
88
|
AudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioConfig").msgclass
|
89
|
+
CustomVoiceParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomVoiceParams").msgclass
|
90
|
+
CustomVoiceParams::ReportedUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsage").enummodule
|
79
91
|
SynthesizeSpeechResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechResponse").msgclass
|
80
92
|
SsmlVoiceGender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SsmlVoiceGender").enummodule
|
81
93
|
AudioEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AudioEncoding").enummodule
|
@@ -124,6 +124,11 @@ module Google
|
|
124
124
|
# name. Note that this is only a preference, not requirement; if a
|
125
125
|
# voice of the appropriate gender is not available, the synthesizer should
|
126
126
|
# substitute a voice with a different gender rather than failing the request.
|
127
|
+
# @!attribute [rw] custom_voice
|
128
|
+
# @return [::Google::Cloud::TextToSpeech::V1::CustomVoiceParams]
|
129
|
+
# The configuration for a custom voice. If [CustomVoiceParams.model] is set,
|
130
|
+
# the service will choose the custom voice matching the specified
|
131
|
+
# configuration.
|
127
132
|
class VoiceSelectionParams
|
128
133
|
include ::Google::Protobuf::MessageExts
|
129
134
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -176,6 +181,35 @@ module Google
|
|
176
181
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
177
182
|
end
|
178
183
|
|
184
|
+
# Description of the custom voice to be synthesized.
|
185
|
+
# @!attribute [rw] model
|
186
|
+
# @return [::String]
|
187
|
+
# Required. The name of the AutoML model that synthesizes the custom voice.
|
188
|
+
# @!attribute [rw] reported_usage
|
189
|
+
# @return [::Google::Cloud::TextToSpeech::V1::CustomVoiceParams::ReportedUsage]
|
190
|
+
# Optional. The usage of the synthesized audio to be reported.
|
191
|
+
class CustomVoiceParams
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
|
195
|
+
# The usage of the synthesized audio. You must report your honest and
|
196
|
+
# correct usage of the service as it's regulated by contract and will cause
|
197
|
+
# significant difference in billing.
|
198
|
+
module ReportedUsage
|
199
|
+
# Request with reported usage unspecified will be rejected.
|
200
|
+
REPORTED_USAGE_UNSPECIFIED = 0
|
201
|
+
|
202
|
+
# For scenarios where the synthesized audio is not downloadable and can
|
203
|
+
# only be used once. For example, real-time request in IVR system.
|
204
|
+
REALTIME = 1
|
205
|
+
|
206
|
+
# For scenarios where the synthesized audio is downloadable and can be
|
207
|
+
# reused. For example, the synthesized audio is downloaded, stored in
|
208
|
+
# customer service system and played repeatedly.
|
209
|
+
OFFLINE = 2
|
210
|
+
end
|
211
|
+
end
|
212
|
+
|
179
213
|
# The message returned to the client by the `SynthesizeSpeech` method.
|
180
214
|
# @!attribute [rw] audio_content
|
181
215
|
# @return [::String]
|
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
|
+
version: 0.6.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: 2022-
|
11
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -175,6 +175,7 @@ files:
|
|
175
175
|
- lib/google/cloud/text_to_speech/v1/text_to_speech.rb
|
176
176
|
- lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb
|
177
177
|
- lib/google/cloud/text_to_speech/v1/text_to_speech/credentials.rb
|
178
|
+
- lib/google/cloud/text_to_speech/v1/text_to_speech/paths.rb
|
178
179
|
- lib/google/cloud/text_to_speech/v1/version.rb
|
179
180
|
- lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb
|
180
181
|
- lib/google/cloud/texttospeech/v1/cloud_tts_services_pb.rb
|