google-apis-texttospeech_v1 0.31.0 → 0.32.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f700a3f8560abf9b80877dcecb6a3402a3a718101302ddc2b37f1c3b3e4e1c31
|
4
|
+
data.tar.gz: 38839ecd1730441dc50849d11dd9ce97b590443ec73a8f8e90188259c3515503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ab393a0727618b3c0bc6d356a9e833e99261148861e2d2af150a4a94716ae9a23dcaaf69f46054a0b2f94c1c32b4b8882e9603192aac8dab3278479bc3dee35
|
7
|
+
data.tar.gz: e0ce9aa975b440cd21cc590ab07897ecc851bc8b8e480776d83a031e1525fca62c94be8c28c41895f0c3cb4b4caf6e7c677f0ecdc67917a552f35a7fe2f15aea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1
|
2
2
|
|
3
|
+
### v0.32.0 (2024-10-06)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241001
|
6
|
+
* Regenerated using generator version 0.15.1
|
7
|
+
|
3
8
|
### v0.31.0 (2024-05-19)
|
4
9
|
|
5
10
|
* Regenerated using generator version 0.15.0
|
@@ -22,6 +22,27 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module TexttospeechV1
|
24
24
|
|
25
|
+
# Used for advanced voice options.
|
26
|
+
class AdvancedVoiceOptions
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Only for Jounrney voices. If false, the synthesis will be context aware and
|
30
|
+
# have higher latency.
|
31
|
+
# Corresponds to the JSON property `lowLatencyJourneySynthesis`
|
32
|
+
# @return [Boolean]
|
33
|
+
attr_accessor :low_latency_journey_synthesis
|
34
|
+
alias_method :low_latency_journey_synthesis?, :low_latency_journey_synthesis
|
35
|
+
|
36
|
+
def initialize(**args)
|
37
|
+
update!(**args)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Update properties of this object
|
41
|
+
def update!(**args)
|
42
|
+
@low_latency_journey_synthesis = args[:low_latency_journey_synthesis] if args.key?(:low_latency_journey_synthesis)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
25
46
|
# Description of audio data to be synthesized.
|
26
47
|
class AudioConfig
|
27
48
|
include Google::Apis::Core::Hashable
|
@@ -106,6 +127,59 @@ module Google
|
|
106
127
|
end
|
107
128
|
end
|
108
129
|
|
130
|
+
# Pronunciation customization for a phrase.
|
131
|
+
class CustomPronunciationParams
|
132
|
+
include Google::Apis::Core::Hashable
|
133
|
+
|
134
|
+
# The phonetic encoding of the phrase.
|
135
|
+
# Corresponds to the JSON property `phoneticEncoding`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :phonetic_encoding
|
138
|
+
|
139
|
+
# The phrase to which the customization will be applied. The phrase can be
|
140
|
+
# multiple words (in the case of proper nouns etc), but should not span to a
|
141
|
+
# whole sentence.
|
142
|
+
# Corresponds to the JSON property `phrase`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :phrase
|
145
|
+
|
146
|
+
# The pronunciation of the phrase. This must be in the phonetic encoding
|
147
|
+
# specified above.
|
148
|
+
# Corresponds to the JSON property `pronunciation`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :pronunciation
|
151
|
+
|
152
|
+
def initialize(**args)
|
153
|
+
update!(**args)
|
154
|
+
end
|
155
|
+
|
156
|
+
# Update properties of this object
|
157
|
+
def update!(**args)
|
158
|
+
@phonetic_encoding = args[:phonetic_encoding] if args.key?(:phonetic_encoding)
|
159
|
+
@phrase = args[:phrase] if args.key?(:phrase)
|
160
|
+
@pronunciation = args[:pronunciation] if args.key?(:pronunciation)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# A collection of pronunciation customizations.
|
165
|
+
class CustomPronunciations
|
166
|
+
include Google::Apis::Core::Hashable
|
167
|
+
|
168
|
+
# The pronunciation customizations to be applied.
|
169
|
+
# Corresponds to the JSON property `pronunciations`
|
170
|
+
# @return [Array<Google::Apis::TexttospeechV1::CustomPronunciationParams>]
|
171
|
+
attr_accessor :pronunciations
|
172
|
+
|
173
|
+
def initialize(**args)
|
174
|
+
update!(**args)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Update properties of this object
|
178
|
+
def update!(**args)
|
179
|
+
@pronunciations = args[:pronunciations] if args.key?(:pronunciations)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
109
183
|
# Description of the custom voice to be synthesized.
|
110
184
|
class CustomVoiceParams
|
111
185
|
include Google::Apis::Core::Hashable
|
@@ -147,6 +221,68 @@ module Google
|
|
147
221
|
end
|
148
222
|
end
|
149
223
|
|
224
|
+
# Request message for the `GenerateVoiceCloningKey` method.
|
225
|
+
class GenerateVoiceCloningKeyRequest
|
226
|
+
include Google::Apis::Core::Hashable
|
227
|
+
|
228
|
+
# Required. The script used for the voice talent statement. The script will be
|
229
|
+
# provided to the caller through other channels. It must be returned unchanged
|
230
|
+
# in this field.
|
231
|
+
# Corresponds to the JSON property `consentScript`
|
232
|
+
# @return [String]
|
233
|
+
attr_accessor :consent_script
|
234
|
+
|
235
|
+
# Required. The language of the supplied audio as a [BCP-47](https://www.rfc-
|
236
|
+
# editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language
|
237
|
+
# Support](https://cloud.google.com/speech-to-text/docs/languages) for a list of
|
238
|
+
# the currently supported language codes.
|
239
|
+
# Corresponds to the JSON property `languageCode`
|
240
|
+
# @return [String]
|
241
|
+
attr_accessor :language_code
|
242
|
+
|
243
|
+
# Holds audio content and config.
|
244
|
+
# Corresponds to the JSON property `referenceAudio`
|
245
|
+
# @return [Google::Apis::TexttospeechV1::InputAudio]
|
246
|
+
attr_accessor :reference_audio
|
247
|
+
|
248
|
+
# Holds audio content and config.
|
249
|
+
# Corresponds to the JSON property `voiceTalentConsent`
|
250
|
+
# @return [Google::Apis::TexttospeechV1::InputAudio]
|
251
|
+
attr_accessor :voice_talent_consent
|
252
|
+
|
253
|
+
def initialize(**args)
|
254
|
+
update!(**args)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Update properties of this object
|
258
|
+
def update!(**args)
|
259
|
+
@consent_script = args[:consent_script] if args.key?(:consent_script)
|
260
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
261
|
+
@reference_audio = args[:reference_audio] if args.key?(:reference_audio)
|
262
|
+
@voice_talent_consent = args[:voice_talent_consent] if args.key?(:voice_talent_consent)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
# Response message for the `GenerateVoiceCloningKey` method.
|
267
|
+
class GenerateVoiceCloningKeyResponse
|
268
|
+
include Google::Apis::Core::Hashable
|
269
|
+
|
270
|
+
# The voice clone key. Use it in the SynthesizeSpeechRequest by setting [voice.
|
271
|
+
# voice_clone.voice_cloning_key].
|
272
|
+
# Corresponds to the JSON property `voiceCloningKey`
|
273
|
+
# @return [String]
|
274
|
+
attr_accessor :voice_cloning_key
|
275
|
+
|
276
|
+
def initialize(**args)
|
277
|
+
update!(**args)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Update properties of this object
|
281
|
+
def update!(**args)
|
282
|
+
@voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
150
286
|
# Metadata for response returned by the `SynthesizeLongAudio` method.
|
151
287
|
class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
|
152
288
|
include Google::Apis::Core::Hashable
|
@@ -178,6 +314,60 @@ module Google
|
|
178
314
|
end
|
179
315
|
end
|
180
316
|
|
317
|
+
# Holds audio content and config.
|
318
|
+
class InputAudio
|
319
|
+
include Google::Apis::Core::Hashable
|
320
|
+
|
321
|
+
# Description of inputted audio data.
|
322
|
+
# Corresponds to the JSON property `audioConfig`
|
323
|
+
# @return [Google::Apis::TexttospeechV1::InputAudioConfig]
|
324
|
+
attr_accessor :audio_config
|
325
|
+
|
326
|
+
# Required. The audio data bytes encoded as specified in `InputAudioConfig`.
|
327
|
+
# Note: as with all bytes fields, proto buffers use a pure binary representation,
|
328
|
+
# whereas JSON representations use base64. Audio samples should be between 5-25
|
329
|
+
# seconds in length.
|
330
|
+
# Corresponds to the JSON property `content`
|
331
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
332
|
+
# @return [String]
|
333
|
+
attr_accessor :content
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
342
|
+
@content = args[:content] if args.key?(:content)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
# Description of inputted audio data.
|
347
|
+
class InputAudioConfig
|
348
|
+
include Google::Apis::Core::Hashable
|
349
|
+
|
350
|
+
# Required. The format of the audio byte stream.
|
351
|
+
# Corresponds to the JSON property `audioEncoding`
|
352
|
+
# @return [String]
|
353
|
+
attr_accessor :audio_encoding
|
354
|
+
|
355
|
+
# Required. The sample rate (in hertz) for this audio.
|
356
|
+
# Corresponds to the JSON property `sampleRateHertz`
|
357
|
+
# @return [Fixnum]
|
358
|
+
attr_accessor :sample_rate_hertz
|
359
|
+
|
360
|
+
def initialize(**args)
|
361
|
+
update!(**args)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Update properties of this object
|
365
|
+
def update!(**args)
|
366
|
+
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
367
|
+
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
181
371
|
# The response message for Operations.ListOperations.
|
182
372
|
class ListOperationsResponse
|
183
373
|
include Google::Apis::Core::Hashable
|
@@ -329,6 +519,11 @@ module Google
|
|
329
519
|
class SynthesisInput
|
330
520
|
include Google::Apis::Core::Hashable
|
331
521
|
|
522
|
+
# A collection of pronunciation customizations.
|
523
|
+
# Corresponds to the JSON property `customPronunciations`
|
524
|
+
# @return [Google::Apis::TexttospeechV1::CustomPronunciations]
|
525
|
+
attr_accessor :custom_pronunciations
|
526
|
+
|
332
527
|
# The SSML document to be synthesized. The SSML document must be valid and well-
|
333
528
|
# formed. Otherwise the RPC will fail and return google.rpc.Code.
|
334
529
|
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
|
@@ -348,6 +543,7 @@ module Google
|
|
348
543
|
|
349
544
|
# Update properties of this object
|
350
545
|
def update!(**args)
|
546
|
+
@custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
|
351
547
|
@ssml = args[:ssml] if args.key?(:ssml)
|
352
548
|
@text = args[:text] if args.key?(:text)
|
353
549
|
end
|
@@ -429,6 +625,11 @@ module Google
|
|
429
625
|
class SynthesizeSpeechRequest
|
430
626
|
include Google::Apis::Core::Hashable
|
431
627
|
|
628
|
+
# Used for advanced voice options.
|
629
|
+
# Corresponds to the JSON property `advancedVoiceOptions`
|
630
|
+
# @return [Google::Apis::TexttospeechV1::AdvancedVoiceOptions]
|
631
|
+
attr_accessor :advanced_voice_options
|
632
|
+
|
432
633
|
# Description of audio data to be synthesized.
|
433
634
|
# Corresponds to the JSON property `audioConfig`
|
434
635
|
# @return [Google::Apis::TexttospeechV1::AudioConfig]
|
@@ -452,6 +653,7 @@ module Google
|
|
452
653
|
|
453
654
|
# Update properties of this object
|
454
655
|
def update!(**args)
|
656
|
+
@advanced_voice_options = args[:advanced_voice_options] if args.key?(:advanced_voice_options)
|
455
657
|
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
456
658
|
@input = args[:input] if args.key?(:input)
|
457
659
|
@voice = args[:voice] if args.key?(:voice)
|
@@ -520,6 +722,25 @@ module Google
|
|
520
722
|
end
|
521
723
|
end
|
522
724
|
|
725
|
+
# The configuration of Voice Clone feature.
|
726
|
+
class VoiceCloneParams
|
727
|
+
include Google::Apis::Core::Hashable
|
728
|
+
|
729
|
+
# Required. Created by GenerateVoiceCloningKey.
|
730
|
+
# Corresponds to the JSON property `voiceCloningKey`
|
731
|
+
# @return [String]
|
732
|
+
attr_accessor :voice_cloning_key
|
733
|
+
|
734
|
+
def initialize(**args)
|
735
|
+
update!(**args)
|
736
|
+
end
|
737
|
+
|
738
|
+
# Update properties of this object
|
739
|
+
def update!(**args)
|
740
|
+
@voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
523
744
|
# Description of which voice to use for a synthesis request.
|
524
745
|
class VoiceSelectionParams
|
525
746
|
include Google::Apis::Core::Hashable
|
@@ -559,6 +780,11 @@ module Google
|
|
559
780
|
# @return [String]
|
560
781
|
attr_accessor :ssml_gender
|
561
782
|
|
783
|
+
# The configuration of Voice Clone feature.
|
784
|
+
# Corresponds to the JSON property `voiceClone`
|
785
|
+
# @return [Google::Apis::TexttospeechV1::VoiceCloneParams]
|
786
|
+
attr_accessor :voice_clone
|
787
|
+
|
562
788
|
def initialize(**args)
|
563
789
|
update!(**args)
|
564
790
|
end
|
@@ -569,6 +795,7 @@ module Google
|
|
569
795
|
@language_code = args[:language_code] if args.key?(:language_code)
|
570
796
|
@name = args[:name] if args.key?(:name)
|
571
797
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
798
|
+
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
|
572
799
|
end
|
573
800
|
end
|
574
801
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TexttospeechV1
|
18
18
|
# Version of the google-apis-texttospeech_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.32.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241001"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module TexttospeechV1
|
24
24
|
|
25
|
+
class AdvancedVoiceOptions
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class AudioConfig
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -34,6 +40,18 @@ module Google
|
|
34
40
|
include Google::Apis::Core::JsonObjectSupport
|
35
41
|
end
|
36
42
|
|
43
|
+
class CustomPronunciationParams
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class CustomPronunciations
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
37
55
|
class CustomVoiceParams
|
38
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
57
|
|
@@ -46,12 +64,36 @@ module Google
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class GenerateVoiceCloningKeyRequest
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class GenerateVoiceCloningKeyResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
49
79
|
class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
|
50
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
81
|
|
52
82
|
include Google::Apis::Core::JsonObjectSupport
|
53
83
|
end
|
54
84
|
|
85
|
+
class InputAudio
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class InputAudioConfig
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
55
97
|
class ListOperationsResponse
|
56
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
99
|
|
@@ -112,12 +154,25 @@ module Google
|
|
112
154
|
include Google::Apis::Core::JsonObjectSupport
|
113
155
|
end
|
114
156
|
|
157
|
+
class VoiceCloneParams
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
115
163
|
class VoiceSelectionParams
|
116
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
165
|
|
118
166
|
include Google::Apis::Core::JsonObjectSupport
|
119
167
|
end
|
120
168
|
|
169
|
+
class AdvancedVoiceOptions
|
170
|
+
# @private
|
171
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
172
|
+
property :low_latency_journey_synthesis, as: 'lowLatencyJourneySynthesis'
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
121
176
|
class AudioConfig
|
122
177
|
# @private
|
123
178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -136,6 +191,23 @@ module Google
|
|
136
191
|
end
|
137
192
|
end
|
138
193
|
|
194
|
+
class CustomPronunciationParams
|
195
|
+
# @private
|
196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
+
property :phonetic_encoding, as: 'phoneticEncoding'
|
198
|
+
property :phrase, as: 'phrase'
|
199
|
+
property :pronunciation, as: 'pronunciation'
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
class CustomPronunciations
|
204
|
+
# @private
|
205
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
206
|
+
collection :pronunciations, as: 'pronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciationParams, decorator: Google::Apis::TexttospeechV1::CustomPronunciationParams::Representation
|
207
|
+
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
139
211
|
class CustomVoiceParams
|
140
212
|
# @private
|
141
213
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -150,6 +222,25 @@ module Google
|
|
150
222
|
end
|
151
223
|
end
|
152
224
|
|
225
|
+
class GenerateVoiceCloningKeyRequest
|
226
|
+
# @private
|
227
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
228
|
+
property :consent_script, as: 'consentScript'
|
229
|
+
property :language_code, as: 'languageCode'
|
230
|
+
property :reference_audio, as: 'referenceAudio', class: Google::Apis::TexttospeechV1::InputAudio, decorator: Google::Apis::TexttospeechV1::InputAudio::Representation
|
231
|
+
|
232
|
+
property :voice_talent_consent, as: 'voiceTalentConsent', class: Google::Apis::TexttospeechV1::InputAudio, decorator: Google::Apis::TexttospeechV1::InputAudio::Representation
|
233
|
+
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class GenerateVoiceCloningKeyResponse
|
238
|
+
# @private
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
+
property :voice_cloning_key, as: 'voiceCloningKey'
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
153
244
|
class GoogleCloudTexttospeechV1SynthesizeLongAudioMetadata
|
154
245
|
# @private
|
155
246
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -159,6 +250,23 @@ module Google
|
|
159
250
|
end
|
160
251
|
end
|
161
252
|
|
253
|
+
class InputAudio
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::InputAudioConfig, decorator: Google::Apis::TexttospeechV1::InputAudioConfig::Representation
|
257
|
+
|
258
|
+
property :content, :base64 => true, as: 'content'
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
class InputAudioConfig
|
263
|
+
# @private
|
264
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
265
|
+
property :audio_encoding, as: 'audioEncoding'
|
266
|
+
property :sample_rate_hertz, as: 'sampleRateHertz'
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
162
270
|
class ListOperationsResponse
|
163
271
|
# @private
|
164
272
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -200,6 +308,8 @@ module Google
|
|
200
308
|
class SynthesisInput
|
201
309
|
# @private
|
202
310
|
class Representation < Google::Apis::Core::JsonRepresentation
|
311
|
+
property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1::CustomPronunciations::Representation
|
312
|
+
|
203
313
|
property :ssml, as: 'ssml'
|
204
314
|
property :text, as: 'text'
|
205
315
|
end
|
@@ -230,6 +340,8 @@ module Google
|
|
230
340
|
class SynthesizeSpeechRequest
|
231
341
|
# @private
|
232
342
|
class Representation < Google::Apis::Core::JsonRepresentation
|
343
|
+
property :advanced_voice_options, as: 'advancedVoiceOptions', class: Google::Apis::TexttospeechV1::AdvancedVoiceOptions, decorator: Google::Apis::TexttospeechV1::AdvancedVoiceOptions::Representation
|
344
|
+
|
233
345
|
property :audio_config, as: 'audioConfig', class: Google::Apis::TexttospeechV1::AudioConfig, decorator: Google::Apis::TexttospeechV1::AudioConfig::Representation
|
234
346
|
|
235
347
|
property :input, as: 'input', class: Google::Apis::TexttospeechV1::SynthesisInput, decorator: Google::Apis::TexttospeechV1::SynthesisInput::Representation
|
@@ -256,6 +368,13 @@ module Google
|
|
256
368
|
end
|
257
369
|
end
|
258
370
|
|
371
|
+
class VoiceCloneParams
|
372
|
+
# @private
|
373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
374
|
+
property :voice_cloning_key, as: 'voiceCloningKey'
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
259
378
|
class VoiceSelectionParams
|
260
379
|
# @private
|
261
380
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -264,6 +383,8 @@ module Google
|
|
264
383
|
property :language_code, as: 'languageCode'
|
265
384
|
property :name, as: 'name'
|
266
385
|
property :ssml_gender, as: 'ssmlGender'
|
386
|
+
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
|
387
|
+
|
267
388
|
end
|
268
389
|
end
|
269
390
|
end
|
@@ -259,6 +259,38 @@ module Google
|
|
259
259
|
execute_or_queue_command(command, &block)
|
260
260
|
end
|
261
261
|
|
262
|
+
# Generates voice clone key given a short voice prompt. This method validates
|
263
|
+
# the voice prompts with a series of checks against the voice talent statement
|
264
|
+
# to verify the voice clone is safe to generate.
|
265
|
+
# @param [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest] generate_voice_cloning_key_request_object
|
266
|
+
# @param [String] fields
|
267
|
+
# Selector specifying which fields to include in a partial response.
|
268
|
+
# @param [String] quota_user
|
269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
271
|
+
# @param [Google::Apis::RequestOptions] options
|
272
|
+
# Request-specific options
|
273
|
+
#
|
274
|
+
# @yield [result, err] Result & error if block supplied
|
275
|
+
# @yieldparam result [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse] parsed result object
|
276
|
+
# @yieldparam err [StandardError] error object if request failed
|
277
|
+
#
|
278
|
+
# @return [Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse]
|
279
|
+
#
|
280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
283
|
+
def generate_voice_cloning_key(generate_voice_cloning_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
284
|
+
command = make_simple_command(:post, 'v1/voices:generateVoiceCloningKey', options)
|
285
|
+
command.request_representation = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyRequest::Representation
|
286
|
+
command.request_object = generate_voice_cloning_key_request_object
|
287
|
+
command.response_representation = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse::Representation
|
288
|
+
command.response_class = Google::Apis::TexttospeechV1::GenerateVoiceCloningKeyResponse
|
289
|
+
command.query['fields'] = fields unless fields.nil?
|
290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
291
|
+
execute_or_queue_command(command, &block)
|
292
|
+
end
|
293
|
+
|
262
294
|
# Returns a list of Voice supported for synthesis.
|
263
295
|
# @param [String] language_code
|
264
296
|
# Optional. Recommended. [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-texttospeech_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.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: 2024-
|
11
|
+
date: 2024-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.32.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|