Skip to content

Commit bb9be27

Browse files
feat: Automated regeneration of texttospeech v1beta1 client (#24408)
Auto-created at 2025-09-28 09:47:17 +0000 using the toys pull request generator.
1 parent a80f47e commit bb9be27

File tree

5 files changed

+96
-3
lines changed

5 files changed

+96
-3
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364622,6 +364622,12 @@
364622364622
"/texttospeech:v1beta1/MultiSpeakerMarkup": multi_speaker_markup
364623364623
"/texttospeech:v1beta1/MultiSpeakerMarkup/turns": turns
364624364624
"/texttospeech:v1beta1/MultiSpeakerMarkup/turns/turn": turn
364625+
"/texttospeech:v1beta1/MultiSpeakerVoiceConfig": multi_speaker_voice_config
364626+
"/texttospeech:v1beta1/MultiSpeakerVoiceConfig/speakerVoiceConfigs": speaker_voice_configs
364627+
"/texttospeech:v1beta1/MultiSpeakerVoiceConfig/speakerVoiceConfigs/speaker_voice_config": speaker_voice_config
364628+
"/texttospeech:v1beta1/MultispeakerPrebuiltVoice": multispeaker_prebuilt_voice
364629+
"/texttospeech:v1beta1/MultispeakerPrebuiltVoice/speakerAlias": speaker_alias
364630+
"/texttospeech:v1beta1/MultispeakerPrebuiltVoice/speakerId": speaker_id
364625364631
"/texttospeech:v1beta1/Operation": operation
364626364632
"/texttospeech:v1beta1/Operation/done": done
364627364633
"/texttospeech:v1beta1/Operation/error": error
@@ -364682,6 +364688,7 @@
364682364688
"/texttospeech:v1beta1/VoiceSelectionParams/customVoice": custom_voice
364683364689
"/texttospeech:v1beta1/VoiceSelectionParams/languageCode": language_code
364684364690
"/texttospeech:v1beta1/VoiceSelectionParams/modelName": model_name
364691+
"/texttospeech:v1beta1/VoiceSelectionParams/multiSpeakerVoiceConfig": multi_speaker_voice_config
364685364692
"/texttospeech:v1beta1/VoiceSelectionParams/name": name
364686364693
"/texttospeech:v1beta1/VoiceSelectionParams/ssmlGender": ssml_gender
364687364694
"/texttospeech:v1beta1/VoiceSelectionParams/voiceClone": voice_clone

generated/google-apis-texttospeech_v1beta1/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-texttospeech_v1beta1
22

3-
### v0.38.0 (2025-09-21)
3+
### v0.38.0 (2025-09-28)
44

5-
* Regenerated from discovery document revision 20250912
5+
* Regenerated from discovery document revision 20250923
66

77
### v0.37.0 (2025-09-07)
88

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,55 @@ def update!(**args)
285285
end
286286
end
287287

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+
288337
# This resource represents a long-running operation that is the result of a
289338
# network API call.
290339
class Operation
@@ -736,6 +785,12 @@ class VoiceSelectionParams
736785
# @return [String]
737786
attr_accessor :model_name
738787

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+
739794
# The name of the voice. If both the name and the gender are not set, the
740795
# service will choose a voice based on the other parameters such as
741796
# language_code.
@@ -766,6 +821,7 @@ def update!(**args)
766821
@custom_voice = args[:custom_voice] if args.key?(:custom_voice)
767822
@language_code = args[:language_code] if args.key?(:language_code)
768823
@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)
769825
@name = args[:name] if args.key?(:name)
770826
@ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender)
771827
@voice_clone = args[:voice_clone] if args.key?(:voice_clone)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module TexttospeechV1beta1
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_v1beta1/lib/google/apis/texttospeech_v1beta1/representations.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

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+
7991
class Operation
8092
class Representation < Google::Apis::Core::JsonRepresentation; end
8193

@@ -226,6 +238,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
226238
end
227239
end
228240

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+
229257
class Operation
230258
# @private
231259
class Representation < Google::Apis::Core::JsonRepresentation
@@ -349,6 +377,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
349377

350378
property :language_code, as: 'languageCode'
351379
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+
352382
property :name, as: 'name'
353383
property :ssml_gender, as: 'ssmlGender'
354384
property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1beta1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1beta1::VoiceCloneParams::Representation

0 commit comments

Comments
 (0)