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.v2.TextToSpeechSettings
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextToSpeechSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TextToSpeechSettings build()
buildPartial()
public TextToSpeechSettings buildPartial()
clear()
public TextToSpeechSettings.Builder clear()
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];
clearField(Descriptors.FieldDescriptor field)
public TextToSpeechSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TextToSpeechSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearOutputAudioEncoding()
public TextToSpeechSettings.Builder clearOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
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];
clearSynthesizeSpeechConfigs()
public TextToSpeechSettings.Builder clearSynthesizeSpeechConfigs()
clone()
public TextToSpeechSettings.Builder clone()
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public TextToSpeechSettings getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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() (deprecated)
public Map<String,SynthesizeSpeechConfig> getMutableSynthesizeSpeechConfigs()
Use alternate mutation accessors instead.
getOutputAudioEncoding()
public OutputAudioEncoding getOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputAudioEncodingValue()
public int getOutputAudioEncodingValue()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.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() (deprecated)
public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TextToSpeechSettings other)
public TextToSpeechSettings.Builder mergeFrom(TextToSpeechSettings other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextToSpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TextToSpeechSettings.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextToSpeechSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
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.v2.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
key |
String
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public TextToSpeechSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setOutputAudioEncoding(OutputAudioEncoding value)
public TextToSpeechSettings.Builder setOutputAudioEncoding(OutputAudioEncoding value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
setOutputAudioEncodingValue(int value)
public TextToSpeechSettings.Builder setOutputAudioEncodingValue(int value)
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextToSpeechSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final TextToSpeechSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides