diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..ab9f934af6d 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -363888,6 +363888,12 @@ "/texttospeech:v1/MultiSpeakerMarkup": multi_speaker_markup "/texttospeech:v1/MultiSpeakerMarkup/turns": turns "/texttospeech:v1/MultiSpeakerMarkup/turns/turn": turn +"/texttospeech:v1/MultiSpeakerVoiceConfig": multi_speaker_voice_config +"/texttospeech:v1/MultiSpeakerVoiceConfig/speakerVoiceConfigs": speaker_voice_configs +"/texttospeech:v1/MultiSpeakerVoiceConfig/speakerVoiceConfigs/speaker_voice_config": speaker_voice_config +"/texttospeech:v1/MultispeakerPrebuiltVoice": multispeaker_prebuilt_voice +"/texttospeech:v1/MultispeakerPrebuiltVoice/speakerAlias": speaker_alias +"/texttospeech:v1/MultispeakerPrebuiltVoice/speakerId": speaker_id "/texttospeech:v1/Operation": operation "/texttospeech:v1/Operation/done": done "/texttospeech:v1/Operation/error": error @@ -363940,6 +363946,7 @@ "/texttospeech:v1/VoiceSelectionParams/customVoice": custom_voice "/texttospeech:v1/VoiceSelectionParams/languageCode": language_code "/texttospeech:v1/VoiceSelectionParams/modelName": model_name +"/texttospeech:v1/VoiceSelectionParams/multiSpeakerVoiceConfig": multi_speaker_voice_config "/texttospeech:v1/VoiceSelectionParams/name": name "/texttospeech:v1/VoiceSelectionParams/ssmlGender": ssml_gender "/texttospeech:v1/VoiceSelectionParams/voiceClone": voice_clone diff --git a/generated/google-apis-texttospeech_v1/CHANGELOG.md b/generated/google-apis-texttospeech_v1/CHANGELOG.md index a26896f06de..e85b835867b 100644 --- a/generated/google-apis-texttospeech_v1/CHANGELOG.md +++ b/generated/google-apis-texttospeech_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-texttospeech_v1 +### v0.42.0 (2025-09-28) + +* Regenerated from discovery document revision 20250923 + ### v0.41.0 (2025-09-21) * Regenerated from discovery document revision 20250912 diff --git a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb index 648f20b24a2..9b19b8a3b81 100644 --- a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb +++ b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/classes.rb @@ -314,6 +314,55 @@ def update!(**args) end end + # Configuration for a multi-speaker text-to-speech setup. Enables the use of up + # to two distinct voices in a single synthesis request. + class MultiSpeakerVoiceConfig + include Google::Apis::Core::Hashable + + # Required. A list of configurations for the voices of the speakers. Exactly two + # speaker voice configurations must be provided. + # Corresponds to the JSON property `speakerVoiceConfigs` + # @return [Array] + attr_accessor :speaker_voice_configs + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @speaker_voice_configs = args[:speaker_voice_configs] if args.key?(:speaker_voice_configs) + end + end + + # Configuration for a single speaker in a Gemini TTS multi-speaker setup. + # Enables dialogue between two speakers. + class MultispeakerPrebuiltVoice + include Google::Apis::Core::Hashable + + # Required. The speaker alias of the voice. This is the user-chosen speaker name + # that is used in the multispeaker text input, such as "Speaker1". + # Corresponds to the JSON property `speakerAlias` + # @return [String] + attr_accessor :speaker_alias + + # Required. The speaker ID of the voice. See https://cloud.google.com/text-to- + # speech/docs/gemini-tts#voice_options for available values. + # Corresponds to the JSON property `speakerId` + # @return [String] + attr_accessor :speaker_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @speaker_alias = args[:speaker_alias] if args.key?(:speaker_alias) + @speaker_id = args[:speaker_id] if args.key?(:speaker_id) + end + end + # This resource represents a long-running operation that is the result of a # network API call. class Operation @@ -720,6 +769,12 @@ class VoiceSelectionParams # @return [String] attr_accessor :model_name + # Configuration for a multi-speaker text-to-speech setup. Enables the use of up + # to two distinct voices in a single synthesis request. + # Corresponds to the JSON property `multiSpeakerVoiceConfig` + # @return [Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig] + attr_accessor :multi_speaker_voice_config + # The name of the voice. If both the name and the gender are not set, the # service will choose a voice based on the other parameters such as # language_code. @@ -750,6 +805,7 @@ def update!(**args) @custom_voice = args[:custom_voice] if args.key?(:custom_voice) @language_code = args[:language_code] if args.key?(:language_code) @model_name = args[:model_name] if args.key?(:model_name) + @multi_speaker_voice_config = args[:multi_speaker_voice_config] if args.key?(:multi_speaker_voice_config) @name = args[:name] if args.key?(:name) @ssml_gender = args[:ssml_gender] if args.key?(:ssml_gender) @voice_clone = args[:voice_clone] if args.key?(:voice_clone) diff --git a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb index 1482aa432a5..72d7c0ee055 100644 --- a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb +++ b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module TexttospeechV1 # Version of the google-apis-texttospeech_v1 gem - GEM_VERSION = "0.41.0" + GEM_VERSION = "0.42.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250912" + REVISION = "20250923" end end end diff --git a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb index 8cfb15e28d3..d4fa5c3e70e 100644 --- a/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb +++ b/generated/google-apis-texttospeech_v1/lib/google/apis/texttospeech_v1/representations.rb @@ -88,6 +88,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class MultiSpeakerVoiceConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MultispeakerPrebuiltVoice + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Operation class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +256,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class MultiSpeakerVoiceConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :speaker_voice_configs, as: 'speakerVoiceConfigs', class: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice, decorator: Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice::Representation + + end + end + + class MultispeakerPrebuiltVoice + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :speaker_alias, as: 'speakerAlias' + property :speaker_id, as: 'speakerId' + end + end + class Operation # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -354,6 +382,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :language_code, as: 'languageCode' property :model_name, as: 'modelName' + property :multi_speaker_voice_config, as: 'multiSpeakerVoiceConfig', class: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig, decorator: Google::Apis::TexttospeechV1::MultiSpeakerVoiceConfig::Representation + property :name, as: 'name' property :ssml_gender, as: 'ssmlGender' property :voice_clone, as: 'voiceClone', class: Google::Apis::TexttospeechV1::VoiceCloneParams, decorator: Google::Apis::TexttospeechV1::VoiceCloneParams::Representation