google-apis-texttospeech_v1 0.41.0 → 0.42.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: 53e555b498a5203166682464dc3e73a72ea094078ef23d3b8fa9b6608c42d6d7
|
4
|
+
data.tar.gz: 347b6f95d496af26cc40e7b7d4a0630263a140f32a9acaeb58c56034cab18a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fecbb26430aac0445b94b9e2a47158543ac36fae3c8a650900d45135b6d9594cefa982a6a6f95f4b3d94f197a13d892c394950655d8c90bcd7b7f9888ddcc821
|
7
|
+
data.tar.gz: 13a1dbf5a8d6ad422c9600deeba6b693564eaebf8ffeea3b092c94c182d49115248c6137edac65406cbe47d41754c2e26784849594f2f0d53e420dfc2d882be8
|
data/CHANGELOG.md
CHANGED
@@ -314,6 +314,55 @@ module Google
|
|
314
314
|
end
|
315
315
|
end
|
316
316
|
|
317
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
318
|
+
# to two distinct voices in a single synthesis request.
|
319
|
+
class MultiSpeakerVoiceConfig
|
320
|
+
include Google::Apis::Core::Hashable
|
321
|
+
|
322
|
+
# Required. A list of configurations for the voices of the speakers. Exactly two
|
323
|
+
# speaker voice configurations must be provided.
|
324
|
+
# Corresponds to the JSON property `speakerVoiceConfigs`
|
325
|
+
# @return [Array<Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice>]
|
326
|
+
attr_accessor :speaker_voice_configs
|
327
|
+
|
328
|
+
def initialize(**args)
|
329
|
+
update!(**args)
|
330
|
+
end
|
331
|
+
|
332
|
+
# Update properties of this object
|
333
|
+
def update!(**args)
|
334
|
+
@speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs)
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
# Configuration for a single speaker in a Gemini TTS multi-speaker setup.
|
339
|
+
# Enables dialogue between two speakers.
|
340
|
+
class MultispeakerPrebuiltVoice
|
341
|
+
include Google::Apis::Core::Hashable
|
342
|
+
|
343
|
+
# Required. The speaker alias of the voice. This is the user-chosen speaker name
|
344
|
+
# that is used in the multispeaker text input, such as "Speaker1".
|
345
|
+
# Corresponds to the JSON property `speakerAlias`
|
346
|
+
# @return [String]
|
347
|
+
attr_accessor :speaker_alias
|
348
|
+
|
349
|
+
# Required. The speaker ID of the voice. See https://cloud.google.com/text-to-
|
350
|
+
# speech/docs/gemini-tts#voice_options for available values.
|
351
|
+
# Corresponds to the JSON property `speakerId`
|
352
|
+
# @return [String]
|
353
|
+
attr_accessor :speaker_id
|
354
|
+
|
355
|
+
def initialize(**args)
|
356
|
+
update!(**args)
|
357
|
+
end
|
358
|
+
|
359
|
+
# Update properties of this object
|
360
|
+
def update!(**args)
|
361
|
+
@speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias)
|
362
|
+
@speaker_id = args[:speaker_id] if args.key?(:speaker_id)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
317
366
|
# This resource represents a long-running operation that is the result of a
|
318
367
|
# network API call.
|
319
368
|
class Operation
|
@@ -720,6 +769,12 @@ module Google
|
|
720
769
|
# @return [String]
|
721
770
|
attr_accessor :model_name
|
722
771
|
|
772
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
773
|
+
# to two distinct voices in a single synthesis request.
|
774
|
+
# Corresponds to the JSON property `multiSpeakerVoiceConfig`
|
775
|
+
# @return [Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig]
|
776
|
+
attr_accessor :multi_speaker_voice_config
|
777
|
+
|
723
778
|
# The name of the voice. If both the name and the gender are not set, the
|
724
779
|
# service will choose a voice based on the other parameters such as
|
725
780
|
# language_code.
|
@@ -750,6 +805,7 @@ module Google
|
|
750
805
|
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
|
751
806
|
@language_code = args[:language_code] if args.key?(:language_code)
|
752
807
|
@model_name = args[:model_name] if args.key?(:model_name)
|
808
|
+
@multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config)
|
753
809
|
@name = args[:name] if args.key?(:name)
|
754
810
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
755
811
|
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
|
@@ -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.42.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250923"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,6 +88,18 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class MultiSpeakerVoiceConfig
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class MultispeakerPrebuiltVoice
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
91
103
|
class Operation
|
92
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
105
|
|
@@ -244,6 +256,22 @@ module Google
|
|
244
256
|
end
|
245
257
|
end
|
246
258
|
|
259
|
+
class MultiSpeakerVoiceConfig
|
260
|
+
# @private
|
261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
262
|
+
collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice::Representation
|
263
|
+
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
class MultispeakerPrebuiltVoice
|
268
|
+
# @private
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
+
property :speaker_alias, as: 'speakerAlias'
|
271
|
+
property :speaker_id, as: 'speakerId'
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
247
275
|
class Operation
|
248
276
|
# @private
|
249
277
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -354,6 +382,8 @@ module Google
|
|
354
382
|
|
355
383
|
property :language_code, as: 'languageCode'
|
356
384
|
property :model_name, as: 'modelName'
|
385
|
+
property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig::Representation
|
386
|
+
|
357
387
|
property :name, as: 'name'
|
358
388
|
property :ssml_gender, as: 'ssmlGender'
|
359
389
|
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1/v0.42.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|