public static final class MultiSpeakerVoiceConfig.Builder extends GeneratedMessage.Builder<MultiSpeakerVoiceConfig.Builder> implements MultiSpeakerVoiceConfigOrBuilder
Configuration for a multi-speaker text-to-speech setup. Enables the use of up
to two distinct voices in a single synthesis request.
Protobuf type google.cloud.texttospeech.v1beta1.MultiSpeakerVoiceConfig
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllSpeakerVoiceConfigs(Iterable<? extends MultispeakerPrebuiltVoice> values)
public MultiSpeakerVoiceConfig.Builder addAllSpeakerVoiceConfigs(Iterable<? extends MultispeakerPrebuiltVoice> values)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice>
|
addSpeakerVoiceConfigs(MultispeakerPrebuiltVoice value)
public MultiSpeakerVoiceConfig.Builder addSpeakerVoiceConfigs(MultispeakerPrebuiltVoice value)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
addSpeakerVoiceConfigs(MultispeakerPrebuiltVoice.Builder builderForValue)
public MultiSpeakerVoiceConfig.Builder addSpeakerVoiceConfigs(MultispeakerPrebuiltVoice.Builder builderForValue)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
addSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice value)
public MultiSpeakerVoiceConfig.Builder addSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice value)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
addSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice.Builder builderForValue)
public MultiSpeakerVoiceConfig.Builder addSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice.Builder builderForValue)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
addSpeakerVoiceConfigsBuilder()
public MultispeakerPrebuiltVoice.Builder addSpeakerVoiceConfigsBuilder()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
addSpeakerVoiceConfigsBuilder(int index)
public MultispeakerPrebuiltVoice.Builder addSpeakerVoiceConfigsBuilder(int index)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
build()
public MultiSpeakerVoiceConfig build()
buildPartial()
public MultiSpeakerVoiceConfig buildPartial()
clear()
public MultiSpeakerVoiceConfig.Builder clear()
Overrides
clearSpeakerVoiceConfigs()
public MultiSpeakerVoiceConfig.Builder clearSpeakerVoiceConfigs()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
getDefaultInstanceForType()
public MultiSpeakerVoiceConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSpeakerVoiceConfigs(int index)
public MultispeakerPrebuiltVoice getSpeakerVoiceConfigs(int index)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getSpeakerVoiceConfigsBuilder(int index)
public MultispeakerPrebuiltVoice.Builder getSpeakerVoiceConfigsBuilder(int index)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getSpeakerVoiceConfigsBuilderList()
public List<MultispeakerPrebuiltVoice.Builder> getSpeakerVoiceConfigsBuilderList()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
getSpeakerVoiceConfigsCount()
public int getSpeakerVoiceConfigsCount()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
|
getSpeakerVoiceConfigsList()
public List<MultispeakerPrebuiltVoice> getSpeakerVoiceConfigsList()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
getSpeakerVoiceConfigsOrBuilder(int index)
public MultispeakerPrebuiltVoiceOrBuilder getSpeakerVoiceConfigsOrBuilder(int index)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
getSpeakerVoiceConfigsOrBuilderList()
public List<? extends MultispeakerPrebuiltVoiceOrBuilder> getSpeakerVoiceConfigsOrBuilderList()
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoiceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MultiSpeakerVoiceConfig other)
public MultiSpeakerVoiceConfig.Builder mergeFrom(MultiSpeakerVoiceConfig other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MultiSpeakerVoiceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MultiSpeakerVoiceConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeSpeakerVoiceConfigs(int index)
public MultiSpeakerVoiceConfig.Builder removeSpeakerVoiceConfigs(int index)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter |
| Name |
Description |
index |
int
|
setSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice value)
public MultiSpeakerVoiceConfig.Builder setSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice value)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];
setSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice.Builder builderForValue)
public MultiSpeakerVoiceConfig.Builder setSpeakerVoiceConfigs(int index, MultispeakerPrebuiltVoice.Builder builderForValue)
Required. A list of configurations for the voices of the speakers. Exactly
two speaker voice configurations must be provided.
repeated .google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoice speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED];