google-apis-texttospeech_v1beta1 0.37.0 → 0.38.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: c234b68842aa65484bbc747d8d30b006c9fc7201cc3d8031690a4b487b43a8cc
|
4
|
+
data.tar.gz: 280d3e76c337ebada1c08c8a70d45178a187d6720a30f2812d2a031e8a3adfdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84273ea2af55aa82c925f5b8e4fb053bcfff9cae80a8e2a09a5af62c7a008fc4e549879b27489a2f6092b39cff6f3d2ae66981e701bc2f8a7ff9b009bd24f0e9
|
7
|
+
data.tar.gz: 633d6bf7a56a91acb53c3f49f1b6a6db66412c50f4947618f6f1d99c14a1f0f9bf66225c477f5c661e93965bb7f2ae7a02692c049053b41acbad77968b2fb177
|
data/CHANGELOG.md
CHANGED
@@ -285,6 +285,55 @@ module Google
|
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
288
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
289
|
+
# to two distinct voices in a single synthesis request.
|
290
|
+
class MultiSpeakerVoiceConfig
|
291
|
+
include Google::Apis::Core::Hashable
|
292
|
+
|
293
|
+
# Required. A list of configurations for the voices of the speakers. Exactly two
|
294
|
+
# speaker voice configurations must be provided.
|
295
|
+
# Corresponds to the JSON property `speakerVoiceConfigs`
|
296
|
+
# @return [Array<Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice>]
|
297
|
+
attr_accessor :speaker_voice_configs
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
@speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
# Configuration for a single speaker in a Gemini TTS multi-speaker setup.
|
310
|
+
# Enables dialogue between two speakers.
|
311
|
+
class MultispeakerPrebuiltVoice
|
312
|
+
include Google::Apis::Core::Hashable
|
313
|
+
|
314
|
+
# Required. The speaker alias of the voice. This is the user-chosen speaker name
|
315
|
+
# that is used in the multispeaker text input, such as "Speaker1".
|
316
|
+
# Corresponds to the JSON property `speakerAlias`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :speaker_alias
|
319
|
+
|
320
|
+
# Required. The speaker ID of the voice. See https://cloud.google.com/text-to-
|
321
|
+
# speech/docs/gemini-tts#voice_options for available values.
|
322
|
+
# Corresponds to the JSON property `speakerId`
|
323
|
+
# @return [String]
|
324
|
+
attr_accessor :speaker_id
|
325
|
+
|
326
|
+
def initialize(**args)
|
327
|
+
update!(**args)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Update properties of this object
|
331
|
+
def update!(**args)
|
332
|
+
@speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias)
|
333
|
+
@speaker_id = args[:speaker_id] if args.key?(:speaker_id)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
288
337
|
# This resource represents a long-running operation that is the result of a
|
289
338
|
# network API call.
|
290
339
|
class Operation
|
@@ -408,9 +457,10 @@ module Google
|
|
408
457
|
# @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerMarkup]
|
409
458
|
attr_accessor :multi_speaker_markup
|
410
459
|
|
411
|
-
# This
|
412
|
-
#
|
413
|
-
# AI Studio calls
|
460
|
+
# This system instruction is supported only for controllable/promptable voice
|
461
|
+
# models. If this system instruction is used, we pass the unedited text to
|
462
|
+
# Gemini-TTS. Otherwise, a default system instruction is used. AI Studio calls
|
463
|
+
# this system instruction, Style Instructions.
|
414
464
|
# Corresponds to the JSON property `prompt`
|
415
465
|
# @return [String]
|
416
466
|
attr_accessor :prompt
|
@@ -735,6 +785,12 @@ module Google
|
|
735
785
|
# @return [String]
|
736
786
|
attr_accessor :model_name
|
737
787
|
|
788
|
+
# Configuration for a multi-speaker text-to-speech setup. Enables the use of up
|
789
|
+
# to two distinct voices in a single synthesis request.
|
790
|
+
# Corresponds to the JSON property `multiSpeakerVoiceConfig`
|
791
|
+
# @return [Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig]
|
792
|
+
attr_accessor :multi_speaker_voice_config
|
793
|
+
|
738
794
|
# The name of the voice. If both the name and the gender are not set, the
|
739
795
|
# service will choose a voice based on the other parameters such as
|
740
796
|
# language_code.
|
@@ -765,6 +821,7 @@ module Google
|
|
765
821
|
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
|
766
822
|
@language_code = args[:language_code] if args.key?(:language_code)
|
767
823
|
@model_name = args[:model_name] if args.key?(:model_name)
|
824
|
+
@multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config)
|
768
825
|
@name = args[:name] if args.key?(:name)
|
769
826
|
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
|
770
827
|
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TexttospeechV1beta1
|
18
18
|
# Version of the google-apis-texttospeech_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.38.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
|
@@ -76,6 +76,18 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class MultiSpeakerVoiceConfig
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class MultispeakerPrebuiltVoice
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
79
91
|
class Operation
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
93
|
|
@@ -226,6 +238,22 @@ module Google
|
|
226
238
|
end
|
227
239
|
end
|
228
240
|
|
241
|
+
class MultiSpeakerVoiceConfig
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1beta1::MultispeakerPrebuiltVoice::Representation
|
245
|
+
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class MultispeakerPrebuiltVoice
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
property :speaker_alias, as: 'speakerAlias'
|
253
|
+
property :speaker_id, as: 'speakerId'
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
229
257
|
class Operation
|
230
258
|
# @private
|
231
259
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -349,6 +377,8 @@ module Google
|
|
349
377
|
|
350
378
|
property :language_code, as: 'languageCode'
|
351
379
|
property :model_name, as: 'modelName'
|
380
|
+
property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1beta1::MultiSpeakerVoiceConfig::Representation
|
381
|
+
|
352
382
|
property :name, as: 'name'
|
353
383
|
property :ssml_gender, as: 'ssmlGender'
|
354
384
|
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1beta1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceCloneParams::Representation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-texttospeech_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.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_v1beta1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-texttospeech_v1beta1/v0.38.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-texttospeech_v1beta1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|