google-apis-texttospeech_v1 0.33.0 → 0.35.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd10a87e05ef473b70515455abf4a8020566b290a993d45385226da97d767fa1
|
4
|
+
data.tar.gz: ec38eaad334414a99c474f6a5d66d99afc4b660f1daed65a1e33ebc67196a790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a967c8572bcd6b919b253debc508f92823bbfa27aab03ed5ef9f176070ae2d02a9e743aaba44c7b1917aece8ec71a86e635d25da8b6d15286269337d71b88ac2
|
7
|
+
data.tar.gz: f5930228ce277a1eb2a7707825ed07ec559335397ca4643576e12c2709dc457c77293e660ccc509a0e2590336e6b59fd2b2a2e11f3fbb94c4695fcfb862bc496
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-texttospeech_v1
|
2
2
|
|
3
|
+
### v0.35.0 (2024-11-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241116
|
6
|
+
|
7
|
+
### v0.34.0 (2024-11-03)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241026
|
10
|
+
|
3
11
|
### v0.33.0 (2024-10-20)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241008
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
class AdvancedVoiceOptions
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# Only for
|
29
|
+
# Only for Journey voices. If false, the synthesis will be context aware and
|
30
30
|
# have higher latency.
|
31
31
|
# Corresponds to the JSON property `lowLatencyJourneySynthesis`
|
32
32
|
# @return [Boolean]
|
@@ -296,6 +296,25 @@ module Google
|
|
296
296
|
end
|
297
297
|
end
|
298
298
|
|
299
|
+
# A collection of turns for multi-speaker synthesis.
|
300
|
+
class MultiSpeakerMarkup
|
301
|
+
include Google::Apis::Core::Hashable
|
302
|
+
|
303
|
+
# Required. Speaker turns.
|
304
|
+
# Corresponds to the JSON property `turns`
|
305
|
+
# @return [Array<Google::Apis::TexttospeechV1::Turn>]
|
306
|
+
attr_accessor :turns
|
307
|
+
|
308
|
+
def initialize(**args)
|
309
|
+
update!(**args)
|
310
|
+
end
|
311
|
+
|
312
|
+
# Update properties of this object
|
313
|
+
def update!(**args)
|
314
|
+
@turns = args[:turns] if args.key?(:turns)
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
299
318
|
# This resource represents a long-running operation that is the result of a
|
300
319
|
# network API call.
|
301
320
|
class Operation
|
@@ -408,6 +427,11 @@ module Google
|
|
408
427
|
# @return [Google::Apis::TexttospeechV1::CustomPronunciations]
|
409
428
|
attr_accessor :custom_pronunciations
|
410
429
|
|
430
|
+
# A collection of turns for multi-speaker synthesis.
|
431
|
+
# Corresponds to the JSON property `multiSpeakerMarkup`
|
432
|
+
# @return [Google::Apis::TexttospeechV1::MultiSpeakerMarkup]
|
433
|
+
attr_accessor :multi_speaker_markup
|
434
|
+
|
411
435
|
# The SSML document to be synthesized. The SSML document must be valid and well-
|
412
436
|
# formed. Otherwise the RPC will fail and return google.rpc.Code.
|
413
437
|
# INVALID_ARGUMENT. For more information, see [SSML](https://cloud.google.com/
|
@@ -428,6 +452,7 @@ module Google
|
|
428
452
|
# Update properties of this object
|
429
453
|
def update!(**args)
|
430
454
|
@custom_pronunciations = args[:custom_pronunciations] if args.key?(:custom_pronunciations)
|
455
|
+
@multi_speaker_markup = args[:multi_speaker_markup] if args.key?(:multi_speaker_markup)
|
431
456
|
@ssml = args[:ssml] if args.key?(:ssml)
|
432
457
|
@text = args[:text] if args.key?(:text)
|
433
458
|
end
|
@@ -568,6 +593,32 @@ module Google
|
|
568
593
|
end
|
569
594
|
end
|
570
595
|
|
596
|
+
# A Multi-speaker turn.
|
597
|
+
class Turn
|
598
|
+
include Google::Apis::Core::Hashable
|
599
|
+
|
600
|
+
# Required. The speaker of the turn, for example, 'O' or 'Q'. Please refer to
|
601
|
+
# documentation for available speakers.
|
602
|
+
# Corresponds to the JSON property `speaker`
|
603
|
+
# @return [String]
|
604
|
+
attr_accessor :speaker
|
605
|
+
|
606
|
+
# Required. The text to speak.
|
607
|
+
# Corresponds to the JSON property `text`
|
608
|
+
# @return [String]
|
609
|
+
attr_accessor :text
|
610
|
+
|
611
|
+
def initialize(**args)
|
612
|
+
update!(**args)
|
613
|
+
end
|
614
|
+
|
615
|
+
# Update properties of this object
|
616
|
+
def update!(**args)
|
617
|
+
@speaker = args[:speaker] if args.key?(:speaker)
|
618
|
+
@text = args[:text] if args.key?(:text)
|
619
|
+
end
|
620
|
+
end
|
621
|
+
|
571
622
|
# Description of a voice supported by the TTS service.
|
572
623
|
class Voice
|
573
624
|
include Google::Apis::Core::Hashable
|
@@ -606,6 +657,25 @@ module Google
|
|
606
657
|
end
|
607
658
|
end
|
608
659
|
|
660
|
+
# The configuration of Voice Clone feature.
|
661
|
+
class VoiceCloneParams
|
662
|
+
include Google::Apis::Core::Hashable
|
663
|
+
|
664
|
+
# Required. Created by GenerateVoiceCloningKey.
|
665
|
+
# Corresponds to the JSON property `voiceCloningKey`
|
666
|
+
# @return [String]
|
667
|
+
attr_accessor :voice_cloning_key
|
668
|
+
|
669
|
+
def initialize(**args)
|
670
|
+
update!(**args)
|
671
|
+
end
|
672
|
+
|
673
|
+
# Update properties of this object
|
674
|
+
def update!(**args)
|
675
|
+
@voice_cloning_key = args[:voice_cloning_key] if args.key?(:voice_cloning_key)
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
609
679
|
# Description of which voice to use for a synthesis request.
|
610
680
|
class VoiceSelectionParams
|
611
681
|
include Google::Apis::Core::Hashable
|
@@ -645,6 +715,11 @@ module Google
|
|
645
715
|
# @return [String]
|
646
716
|
attr_accessor :ssml_gender
|
647
717
|
|
718
|
+
# The configuration of Voice Clone feature.
|
719
|
+
# Corresponds to the JSON property `voiceClone`
|
720
|
+
# @return [Google::Apis::TexttospeechV1::VoiceCloneParams]
|
721
|
+
attr_accessor :voice_clone
|
722
|
+
|
648
723
|
def initialize(**args)
|
649
724
|
update!(**args)
|
650
725
|
end
|
@@ -655,6 +730,7 @@ module Google
|
|
655
730
|
@language_code = args[:language_code] if args.key?(:language_code)
|
656
731
|
@name = args[:name] if args.key?(:name)
|
657
732
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
733
|
+
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
|
658
734
|
end
|
659
735
|
end
|
660
736
|
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.35.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241116"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,12 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class MultiSpeakerMarkup
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
85
91
|
class Operation
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
@@ -124,12 +130,24 @@ module Google
|
|
124
130
|
include Google::Apis::Core::JsonObjectSupport
|
125
131
|
end
|
126
132
|
|
133
|
+
class Turn
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
127
139
|
class Voice
|
128
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
141
|
|
130
142
|
include Google::Apis::Core::JsonObjectSupport
|
131
143
|
end
|
132
144
|
|
145
|
+
class VoiceCloneParams
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
133
151
|
class VoiceSelectionParams
|
134
152
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
153
|
|
@@ -218,6 +236,14 @@ module Google
|
|
218
236
|
end
|
219
237
|
end
|
220
238
|
|
239
|
+
class MultiSpeakerMarkup
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
collection :turns, as: 'turns', class: Google::Apis::TexttospeechV1::Turn, decorator: Google::Apis::TexttospeechV1::Turn::Representation
|
243
|
+
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
221
247
|
class Operation
|
222
248
|
# @private
|
223
249
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -244,6 +270,8 @@ module Google
|
|
244
270
|
class Representation < Google::Apis::Core::JsonRepresentation
|
245
271
|
property :custom_pronunciations, as: 'customPronunciations', class: Google::Apis::TexttospeechV1::CustomPronunciations, decorator: Google::Apis::TexttospeechV1::CustomPronunciations::Representation
|
246
272
|
|
273
|
+
property :multi_speaker_markup, as: 'multiSpeakerMarkup', class: Google::Apis::TexttospeechV1::MultiSpeakerMarkup, decorator: Google::Apis::TexttospeechV1::MultiSpeakerMarkup::Representation
|
274
|
+
|
247
275
|
property :ssml, as: 'ssml'
|
248
276
|
property :text, as: 'text'
|
249
277
|
end
|
@@ -292,6 +320,14 @@ module Google
|
|
292
320
|
end
|
293
321
|
end
|
294
322
|
|
323
|
+
class Turn
|
324
|
+
# @private
|
325
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
326
|
+
property :speaker, as: 'speaker'
|
327
|
+
property :text, as: 'text'
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
295
331
|
class Voice
|
296
332
|
# @private
|
297
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -302,6 +338,13 @@ module Google
|
|
302
338
|
end
|
303
339
|
end
|
304
340
|
|
341
|
+
class VoiceCloneParams
|
342
|
+
# @private
|
343
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
344
|
+
property :voice_cloning_key, as: 'voiceCloningKey'
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
305
348
|
class VoiceSelectionParams
|
306
349
|
# @private
|
307
350
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -310,6 +353,8 @@ module Google
|
|
310
353
|
property :language_code, as: 'languageCode'
|
311
354
|
property :name, as: 'name'
|
312
355
|
property :ssml_gender, as: 'ssmlGender'
|
356
|
+
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
|
357
|
+
|
313
358
|
end
|
314
359
|
end
|
315
360
|
end
|
@@ -57,8 +57,8 @@ module Google
|
|
57
57
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
58
58
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
59
59
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
60
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
61
|
-
# corresponding to `Code.CANCELLED`.
|
60
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
61
|
+
# , corresponding to `Code.CANCELLED`.
|
62
62
|
# @param [String] name
|
63
63
|
# The name of the operation resource to be cancelled.
|
64
64
|
# @param [Google::Apis::TexttospeechV1::CancelOperationRequest] cancel_operation_request_object
|
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.35.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-12-04 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.35.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Text-to-Speech API V1
|