Skip to content

Commit 27e0614

Browse files
feat: Automated regeneration of texttospeech v1 client (#24434)
Auto-created at 2025-09-28 10:23:18 +0000 using the toys pull request generator.
1 parent 8ede2f7 commit 27e0614

File tree

5 files changed

+99
-2
lines changed

5 files changed

+99
-2
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364972,6 +364972,12 @@
364972364972
"/texttospeech:v1/MultiSpeakerMarkup": multi_speaker_markup
364973364973
"/texttospeech:v1/MultiSpeakerMarkup/turns": turns
364974364974
"/texttospeech:v1/MultiSpeakerMarkup/turns/turn": turn
364975+
"/texttospeech:v1/MultiSpeakerVoiceConfig": multi_speaker_voice_config
364976+
"/texttospeech:v1/MultiSpeakerVoiceConfig/speakerVoiceConfigs": speaker_voice_configs
364977+
"/texttospeech:v1/MultiSpeakerVoiceConfig/speakerVoiceConfigs/speaker_voice_config": speaker_voice_config
364978+
"/texttospeech:v1/MultispeakerPrebuiltVoice": multispeaker_prebuilt_voice
364979+
"/texttospeech:v1/MultispeakerPrebuiltVoice/speakerAlias": speaker_alias
364980+
"/texttospeech:v1/MultispeakerPrebuiltVoice/speakerId": speaker_id
364975364981
"/texttospeech:v1/Operation": operation
364976364982
"/texttospeech:v1/Operation/done": done
364977364983
"/texttospeech:v1/Operation/error": error
@@ -365024,6 +365030,7 @@
365024365030
"/texttospeech:v1/VoiceSelectionParams/customVoice": custom_voice
365025365031
"/texttospeech:v1/VoiceSelectionParams/languageCode": language_code
365026365032
"/texttospeech:v1/VoiceSelectionParams/modelName": model_name
365033+
"/texttospeech:v1/VoiceSelectionParams/multiSpeakerVoiceConfig": multi_speaker_voice_config
365027365034
"/texttospeech:v1/VoiceSelectionParams/name": name
365028365035
"/texttospeech:v1/VoiceSelectionParams/ssmlGender": ssml_gender
365029365036
"/texttospeech:v1/VoiceSelectionParams/voiceClone": voice_clone

generated/google-apis-texttospeech_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-texttospeech_v1
22

3+
### v0.42.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250923
6+
37
### v0.41.0 (2025-09-21)
48

59
* Regenerated from discovery document revision 20250912

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,55 @@ def update!(**args)
314314
end
315315
end
316316

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+
317366
# This resource represents a long-running operation that is the result of a
318367
# network API call.
319368
class Operation
@@ -720,6 +769,12 @@ class VoiceSelectionParams
720769
# @return [String]
721770
attr_accessor :model_name
722771

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+
723778
# The name of the voice. If both the name and the gender are not set, the
724779
# service will choose a voice based on the other parameters such as
725780
# language_code.
@@ -750,6 +805,7 @@ def update!(**args)
750805
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
751806
@language_code = args[:language_code] if args.key?(:language_code)
752807
@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)
753809
@name = args[:name] if args.key?(:name)
754810
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
755811
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TexttospeechV1
1818
# Version of the google-apis-texttospeech_v1 gem
19-
GEM_VERSION = "0.41.0"
19+
GEM_VERSION = "0.42.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250912"
25+
REVISION = "20250923"
2626
end
2727
end
2828
end

generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8888
include Google::Apis::Core::JsonObjectSupport
8989
end
9090

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+
91103
class Operation
92104
class Representation < Google::Apis::Core::JsonRepresentation; end
93105

@@ -244,6 +256,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
244256
end
245257
end
246258

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+
247275
class Operation
248276
# @private
249277
class Representation < Google::Apis::Core::JsonRepresentation
@@ -354,6 +382,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
354382

355383
property :language_code, as: 'languageCode'
356384
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+
357387
property :name, as: 'name'
358388
property :ssml_gender, as: 'ssmlGender'
359389
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation

0 commit comments

Comments
 (0)