Package com.google.cloud.dialogflow.v2
Interface TextToSpeechSettingsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextToSpeechSettings
,TextToSpeechSettings.Builder
public interface TextToSpeechSettingsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsSynthesizeSpeechConfigs(String key)
Optional.boolean
getEnableTextToSpeech()
Optional.OutputAudioEncoding
getOutputAudioEncoding()
Required.int
getOutputAudioEncodingValue()
Required.int
getSampleRateHertz()
Optional.Map<String,SynthesizeSpeechConfig>
getSynthesizeSpeechConfigs()
Deprecated.int
getSynthesizeSpeechConfigsCount()
Optional.Map<String,SynthesizeSpeechConfig>
getSynthesizeSpeechConfigsMap()
Optional.SynthesizeSpeechConfig
getSynthesizeSpeechConfigsOrDefault(String key, SynthesizeSpeechConfig defaultValue)
Optional.SynthesizeSpeechConfig
getSynthesizeSpeechConfigsOrThrow(String key)
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getEnableTextToSpeech
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:
- The enableTextToSpeech.
-
getOutputAudioEncodingValue
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:
- The enum numeric value on the wire for outputAudioEncoding.
-
getOutputAudioEncoding
OutputAudioEncoding getOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The outputAudioEncoding.
-
getSampleRateHertz
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:
- The sampleRateHertz.
-
getSynthesizeSpeechConfigsCount
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];
-
containsSynthesizeSpeechConfigs
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];
-
getSynthesizeSpeechConfigs
@Deprecated Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
Deprecated.UsegetSynthesizeSpeechConfigsMap()
instead.
-
getSynthesizeSpeechConfigsMap
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
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
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];
-
-