public static final class TextToSpeechSettings.Builder extends GeneratedMessageV3.Builder<TextToSpeechSettings.Builder> implements TextToSpeechSettingsOrBuilder
Instructs the speech synthesizer on how to generate the output audio content.
Protobuf type google.cloud.dialogflow.v2beta1.TextToSpeechSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextToSpeechSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextToSpeechSettings build()
Returns
buildPartial()
public TextToSpeechSettings buildPartial()
Returns
clear()
public TextToSpeechSettings.Builder clear()
Returns
Overrides
clearEnableTextToSpeech()
public TextToSpeechSettings.Builder clearEnableTextToSpeech()
Optional. Indicates whether text to speech is enabled. Even when this field is false,
other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearField(Descriptors.FieldDescriptor field)
public TextToSpeechSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextToSpeechSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearOutputAudioEncoding()
public TextToSpeechSettings.Builder clearOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearSampleRateHertz()
public TextToSpeechSettings.Builder clearSampleRateHertz()
Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then
the synthesizer will use the default sample rate based on the audio
encoding. 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).
int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearSynthesizeSpeechConfigs()
public TextToSpeechSettings.Builder clearSynthesizeSpeechConfigs()
Returns
clone()
public TextToSpeechSettings.Builder clone()
Returns
Overrides
containsSynthesizeSpeechConfigs(String key)
public boolean containsSynthesizeSpeechConfigs(String key)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getDefaultInstanceForType()
public TextToSpeechSettings getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnableTextToSpeech()
public boolean getEnableTextToSpeech()
Optional. Indicates whether text to speech is enabled. Even when this field is false,
other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type |
Description |
boolean |
The enableTextToSpeech.
|
getMutableSynthesizeSpeechConfigs()
public Map<String,SynthesizeSpeechConfig> getMutableSynthesizeSpeechConfigs()
Use alternate mutation accessors instead.
Returns
getOutputAudioEncoding()
public OutputAudioEncoding getOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getOutputAudioEncodingValue()
public int getOutputAudioEncodingValue()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
int |
The enum numeric value on the wire for outputAudioEncoding.
|
getSampleRateHertz()
public int getSampleRateHertz()
Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then
the synthesizer will use the default sample rate based on the audio
encoding. 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).
int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type |
Description |
int |
The sampleRateHertz.
|
getSynthesizeSpeechConfigs()
public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
Returns
getSynthesizeSpeechConfigsCount()
public int getSynthesizeSpeechConfigsCount()
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSynthesizeSpeechConfigsMap()
public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigsMap()
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)
public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
getSynthesizeSpeechConfigsOrThrow(String key)
public SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrThrow(String key)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TextToSpeechSettings other)
public TextToSpeechSettings.Builder mergeFrom(TextToSpeechSettings other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextToSpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextToSpeechSettings.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextToSpeechSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllSynthesizeSpeechConfigs(Map<String,SynthesizeSpeechConfig> values)
public TextToSpeechSettings.Builder putAllSynthesizeSpeechConfigs(Map<String,SynthesizeSpeechConfig> values)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
putSynthesizeSpeechConfigs(String key, SynthesizeSpeechConfig value)
public TextToSpeechSettings.Builder putSynthesizeSpeechConfigs(String key, SynthesizeSpeechConfig value)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
removeSynthesizeSpeechConfigs(String key)
public TextToSpeechSettings.Builder removeSynthesizeSpeechConfigs(String key)
Optional. Configuration of how speech should be synthesized, mapping from language
(https://cloud.google.com/dialogflow/docs/reference/language) to
SynthesizeSpeechConfig.
map<string, .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setEnableTextToSpeech(boolean value)
public TextToSpeechSettings.Builder setEnableTextToSpeech(boolean value)
Optional. Indicates whether text to speech is enabled. Even when this field is false,
other settings in this proto are still retained.
bool enable_text_to_speech = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name |
Description |
value |
boolean
The enableTextToSpeech to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TextToSpeechSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setOutputAudioEncoding(OutputAudioEncoding value)
public TextToSpeechSettings.Builder setOutputAudioEncoding(OutputAudioEncoding value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setOutputAudioEncodingValue(int value)
public TextToSpeechSettings.Builder setOutputAudioEncodingValue(int value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name |
Description |
value |
int
The enum numeric value on the wire for outputAudioEncoding to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextToSpeechSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setSampleRateHertz(int value)
public TextToSpeechSettings.Builder setSampleRateHertz(int value)
Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then
the synthesizer will use the default sample rate based on the audio
encoding. 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).
int32 sample_rate_hertz = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name |
Description |
value |
int
The sampleRateHertz to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final TextToSpeechSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides