public static final class AudioConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder> implements AudioConfigOrBuilder
Description of audio data to be synthesized.Protobuf type
google.cloud.texttospeech.v1.AudioConfig| Modifier and Type | Method and Description |
|---|---|
AudioConfig.Builder |
addAllEffectsProfileId(Iterable<String> values)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
AudioConfig.Builder |
addEffectsProfileId(String value)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
AudioConfig.Builder |
addEffectsProfileIdBytes(com.google.protobuf.ByteString value)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
AudioConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AudioConfig |
build() |
AudioConfig |
buildPartial() |
AudioConfig.Builder |
clear() |
AudioConfig.Builder |
clearAudioEncoding()
Required.
|
AudioConfig.Builder |
clearEffectsProfileId()
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
AudioConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AudioConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AudioConfig.Builder |
clearPitch()
Optional speaking pitch, in the range [-20.0, 20.0].
|
AudioConfig.Builder |
clearSampleRateHertz()
The synthesis sample rate (in hertz) for this audio.
|
AudioConfig.Builder |
clearSpeakingRate()
Optional speaking rate/speed, in the range [0.25, 4.0].
|
AudioConfig.Builder |
clearVolumeGainDb()
Optional volume gain (in dB) of the normal native volume supported by the
specific voice, in the range [-96.0, 16.0].
|
AudioConfig.Builder |
clone() |
AudioEncoding |
getAudioEncoding()
Required.
|
int |
getAudioEncodingValue()
Required.
|
AudioConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEffectsProfileId(int index)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
com.google.protobuf.ByteString |
getEffectsProfileIdBytes(int index)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
int |
getEffectsProfileIdCount()
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
com.google.protobuf.ProtocolStringList |
getEffectsProfileIdList()
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
double |
getPitch()
Optional speaking pitch, in the range [-20.0, 20.0].
|
int |
getSampleRateHertz()
The synthesis sample rate (in hertz) for this audio.
|
double |
getSpeakingRate()
Optional speaking rate/speed, in the range [0.25, 4.0].
|
double |
getVolumeGainDb()
Optional volume gain (in dB) of the normal native volume supported by the
specific voice, in the range [-96.0, 16.0].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AudioConfig.Builder |
mergeFrom(AudioConfig other) |
AudioConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AudioConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
AudioConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AudioConfig.Builder |
setAudioEncoding(AudioEncoding value)
Required.
|
AudioConfig.Builder |
setAudioEncodingValue(int value)
Required.
|
AudioConfig.Builder |
setEffectsProfileId(int index,
String value)
An identifier which selects 'audio effects' profiles that are applied on
(post synthesized) text to speech.
|
AudioConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AudioConfig.Builder |
setPitch(double value)
Optional speaking pitch, in the range [-20.0, 20.0].
|
AudioConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AudioConfig.Builder |
setSampleRateHertz(int value)
The synthesis sample rate (in hertz) for this audio.
|
AudioConfig.Builder |
setSpeakingRate(double value)
Optional speaking rate/speed, in the range [0.25, 4.0].
|
AudioConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AudioConfig.Builder |
setVolumeGainDb(double value)
Optional volume gain (in dB) of the normal native volume supported by the
specific voice, in the range [-96.0, 16.0].
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AudioConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AudioConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AudioConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AudioConfig.Builder>public AudioConfig.Builder mergeFrom(AudioConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public AudioConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AudioConfig.Builder>IOExceptionpublic int getAudioEncodingValue()
Required. The format of the requested audio byte stream.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;getAudioEncodingValue in interface AudioConfigOrBuilderpublic AudioConfig.Builder setAudioEncodingValue(int value)
Required. The format of the requested audio byte stream.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;public AudioEncoding getAudioEncoding()
Required. The format of the requested audio byte stream.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;getAudioEncoding in interface AudioConfigOrBuilderpublic AudioConfig.Builder setAudioEncoding(AudioEncoding value)
Required. The format of the requested audio byte stream.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;public AudioConfig.Builder clearAudioEncoding()
Required. The format of the requested audio byte stream.
.google.cloud.texttospeech.v1.AudioEncoding audio_encoding = 1;public double getSpeakingRate()
Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.
double speaking_rate = 2;getSpeakingRate in interface AudioConfigOrBuilderpublic AudioConfig.Builder setSpeakingRate(double value)
Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.
double speaking_rate = 2;public AudioConfig.Builder clearSpeakingRate()
Optional speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values < 0.25 or > 4.0 will return an error.
double speaking_rate = 2;public double getPitch()
Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 3;getPitch in interface AudioConfigOrBuilderpublic AudioConfig.Builder setPitch(double value)
Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 3;public AudioConfig.Builder clearPitch()
Optional speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch.
double pitch = 3;public double getVolumeGainDb()
Optional volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. Strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 4;getVolumeGainDb in interface AudioConfigOrBuilderpublic AudioConfig.Builder setVolumeGainDb(double value)
Optional volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. Strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 4;public AudioConfig.Builder clearVolumeGainDb()
Optional volume gain (in dB) of the normal native volume supported by the specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of the normal native signal amplitude. Strongly recommend not to exceed +10 (dB) as there's usually no effective increase in loudness for any value greater than that.
double volume_gain_db = 4;public int getSampleRateHertz()
The synthesis sample rate (in hertz) for this audio. Optional. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality), unless the specified sample rate is not supported for the encoding chosen, in which case it will fail the request and return [google.rpc.Code.INVALID_ARGUMENT][].
int32 sample_rate_hertz = 5;getSampleRateHertz in interface AudioConfigOrBuilderpublic AudioConfig.Builder setSampleRateHertz(int value)
The synthesis sample rate (in hertz) for this audio. Optional. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality), unless the specified sample rate is not supported for the encoding chosen, in which case it will fail the request and return [google.rpc.Code.INVALID_ARGUMENT][].
int32 sample_rate_hertz = 5;public AudioConfig.Builder clearSampleRateHertz()
The synthesis sample rate (in hertz) for this audio. Optional. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality), unless the specified sample rate is not supported for the encoding chosen, in which case it will fail the request and return [google.rpc.Code.INVALID_ARGUMENT][].
int32 sample_rate_hertz = 5;public com.google.protobuf.ProtocolStringList getEffectsProfileIdList()
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;getEffectsProfileIdList in interface AudioConfigOrBuilderpublic int getEffectsProfileIdCount()
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;getEffectsProfileIdCount in interface AudioConfigOrBuilderpublic String getEffectsProfileId(int index)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;getEffectsProfileId in interface AudioConfigOrBuilderpublic com.google.protobuf.ByteString getEffectsProfileIdBytes(int index)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;getEffectsProfileIdBytes in interface AudioConfigOrBuilderpublic AudioConfig.Builder setEffectsProfileId(int index, String value)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;public AudioConfig.Builder addEffectsProfileId(String value)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;public AudioConfig.Builder addAllEffectsProfileId(Iterable<String> values)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;public AudioConfig.Builder clearEffectsProfileId()
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;public AudioConfig.Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value)
An identifier which selects 'audio effects' profiles that are applied on (post synthesized) text to speech. Effects are applied on top of each other in the order they are given. See [audio-profiles](https: //cloud.google.com/text-to-speech/docs/audio-profiles) for current supported profile ids.
repeated string effects_profile_id = 6;public final AudioConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>public final AudioConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AudioConfig.Builder>Copyright © 2019 Google LLC. All rights reserved.