public final class TextToSpeechSettings extends com.google.protobuf.GeneratedMessageV3 implements TextToSpeechSettingsOrBuilder
Instructs the speech synthesizer on how to generate the output audio content.Protobuf type
google.cloud.dialogflow.v2beta1.TextToSpeechSettings| Modifier and Type | Class and Description |
|---|---|
static class |
TextToSpeechSettings.Builder
Instructs the speech synthesizer on how to generate the output audio content.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ENABLE_TEXT_TO_SPEECH_FIELD_NUMBER |
static int |
OUTPUT_AUDIO_ENCODING_FIELD_NUMBER |
static int |
SAMPLE_RATE_HERTZ_FIELD_NUMBER |
static int |
SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSynthesizeSpeechConfigs(String key)
Optional.
|
boolean |
equals(Object obj) |
static TextToSpeechSettings |
getDefaultInstance() |
TextToSpeechSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEnableTextToSpeech()
Optional.
|
OutputAudioEncoding |
getOutputAudioEncoding()
Required.
|
int |
getOutputAudioEncodingValue()
Required.
|
com.google.protobuf.Parser<TextToSpeechSettings> |
getParserForType() |
int |
getSampleRateHertz()
Optional.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static TextToSpeechSettings.Builder |
newBuilder() |
static TextToSpeechSettings.Builder |
newBuilder(TextToSpeechSettings prototype) |
TextToSpeechSettings.Builder |
newBuilderForType() |
protected TextToSpeechSettings.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TextToSpeechSettings |
parseDelimitedFrom(InputStream input) |
static TextToSpeechSettings |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextToSpeechSettings |
parseFrom(byte[] data) |
static TextToSpeechSettings |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextToSpeechSettings |
parseFrom(ByteBuffer data) |
static TextToSpeechSettings |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextToSpeechSettings |
parseFrom(com.google.protobuf.ByteString data) |
static TextToSpeechSettings |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextToSpeechSettings |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TextToSpeechSettings |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TextToSpeechSettings |
parseFrom(InputStream input) |
static TextToSpeechSettings |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TextToSpeechSettings> |
parser() |
TextToSpeechSettings.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ENABLE_TEXT_TO_SPEECH_FIELD_NUMBER
public static final int OUTPUT_AUDIO_ENCODING_FIELD_NUMBER
public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER
public static final int SYNTHESIZE_SPEECH_CONFIGS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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];getEnableTextToSpeech in interface TextToSpeechSettingsOrBuilderpublic int getOutputAudioEncodingValue()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputAudioEncodingValue in interface TextToSpeechSettingsOrBuilderpublic OutputAudioEncoding getOutputAudioEncoding()
Required. Audio encoding of the synthesized audio content.
.google.cloud.dialogflow.v2beta1.OutputAudioEncoding output_audio_encoding = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputAudioEncoding in interface TextToSpeechSettingsOrBuilderpublic 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];getSampleRateHertz in interface TextToSpeechSettingsOrBuilderpublic int getSynthesizeSpeechConfigsCount()
TextToSpeechSettingsOrBuilderOptional. 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];
getSynthesizeSpeechConfigsCount in interface TextToSpeechSettingsOrBuilderpublic 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];
containsSynthesizeSpeechConfigs in interface TextToSpeechSettingsOrBuilder@Deprecated public Map<String,SynthesizeSpeechConfig> getSynthesizeSpeechConfigs()
getSynthesizeSpeechConfigsMap() instead.getSynthesizeSpeechConfigs in interface TextToSpeechSettingsOrBuilderpublic 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];
getSynthesizeSpeechConfigsMap in interface TextToSpeechSettingsOrBuilderpublic 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];
getSynthesizeSpeechConfigsOrDefault in interface TextToSpeechSettingsOrBuilderpublic 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];
getSynthesizeSpeechConfigsOrThrow in interface TextToSpeechSettingsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TextToSpeechSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TextToSpeechSettings parseFrom(InputStream input) throws IOException
IOExceptionpublic static TextToSpeechSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextToSpeechSettings parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TextToSpeechSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TextToSpeechSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TextToSpeechSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TextToSpeechSettings.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TextToSpeechSettings.Builder newBuilder()
public static TextToSpeechSettings.Builder newBuilder(TextToSpeechSettings prototype)
public TextToSpeechSettings.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TextToSpeechSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TextToSpeechSettings getDefaultInstance()
public static com.google.protobuf.Parser<TextToSpeechSettings> parser()
public com.google.protobuf.Parser<TextToSpeechSettings> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TextToSpeechSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.