Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-texttospeech_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Google::Apis::TexttospeechV1::MultispeakerPrebuiltVoice>]
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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading