- 4.89.0 (latest)
- 4.88.0
- 4.87.0
- 4.86.0
- 4.84.0
- 4.82.0
- 4.81.0
- 4.80.0
- 4.79.0
- 4.78.0
- 4.76.0
- 4.74.0
- 4.73.0
- 4.70.0
- 4.69.0
- 4.68.0
- 4.66.0
- 4.65.0
- 4.64.0
- 4.63.0
- 4.62.0
- 4.61.0
- 4.60.0
- 4.59.0
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class TextToSpeechSettings.Builder extends GeneratedMessage.Builder<TextToSpeechSettings.Builder> implements TextToSpeechSettingsOrBuilderInstructs the speech synthesizer on how to generate the output audio content.
Protobuf type google.cloud.dialogflow.v2beta1.TextToSpeechSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TextToSpeechSettings.BuilderImplements
TextToSpeechSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TextToSpeechSettings build()| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings |
|
buildPartial()
public TextToSpeechSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings |
|
clear()
public TextToSpeechSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
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 | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
clearSynthesizeSpeechConfigs()
public TextToSpeechSettings.Builder clearSynthesizeSpeechConfigs()| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public TextToSpeechSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.
| Returns | |
|---|---|
| Type | Description |
Map<String,SynthesizeSpeechConfig> |
|
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 | |
|---|---|
| Type | Description |
OutputAudioEncoding |
The outputAudioEncoding. |
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() (deprecated)
public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()Use #getSynthesizeSpeechConfigsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,SynthesizeSpeechConfig> |
|
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 | |
|---|---|
| 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.v2beta1.SynthesizeSpeechConfig> synthesize_speech_configs = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,SynthesizeSpeechConfig> |
|
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 | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
SynthesizeSpeechConfig |
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfig |
|
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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfig |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TextToSpeechSettings other)
public TextToSpeechSettings.Builder mergeFrom(TextToSpeechSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
TextToSpeechSettings |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextToSpeechSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TextToSpeechSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
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 | |
|---|---|
| Name | Description |
values |
Map<String,SynthesizeSpeechConfig> |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
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 | |
|---|---|
| Name | Description |
key |
String |
value |
SynthesizeSpeechConfig |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
putSynthesizeSpeechConfigsBuilderIfAbsent(String key)
public SynthesizeSpeechConfig.Builder putSynthesizeSpeechConfigsBuilderIfAbsent(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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
SynthesizeSpeechConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
|
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 |
booleanThe enableTextToSpeech to set. |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
OutputAudioEncodingThe outputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
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 |
intThe enum numeric value on the wire for outputAudioEncoding to set. |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |
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 |
intThe sampleRateHertz to set. |
| Returns | |
|---|---|
| Type | Description |
TextToSpeechSettings.Builder |
This builder for chaining. |