Package com.google.cloud.dialogflow.v2
Enum SpeechModelVariant
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SpeechModelVariant>
@Generated
public enum SpeechModelVariant
extends Enum<SpeechModelVariant>
implements com.google.protobuf.ProtocolMessageEnum
Variant of the specified [Speech model][google.cloud.dialogflow.v2.InputAudioConfig.model] to use. See the [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) for which models have different variants. For example, the "phone_call" model has both a standard and an enhanced variant. When you use an enhanced model, you will generally receive higher quality results than for a standard model.Protobuf enum
google.cloud.dialogflow.v2.SpeechModelVariant-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo model variant specified.Use the best available variant of the [Speech model][model] that the caller is eligible for.Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant.Use standard model variant even if an enhanced model is available. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNo model variant specified.static final intUse the best available variant of the [Speech model][model] that the caller is eligible for.static final intUse an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant.static final intUse standard model variant even if an enhanced model is available. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpeechModelVariantforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SpeechModelVariant>static SpeechModelVariantvalueOf(int value) Deprecated.static SpeechModelVariantvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SpeechModelVariantReturns the enum constant of this type with the specified name.static SpeechModelVariant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPEECH_MODEL_VARIANT_UNSPECIFIED
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; -
USE_BEST_AVAILABLE
Use the best available variant of the [Speech model][model] that the caller is eligible for. Please see the [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make your project eligible for enhanced models.
USE_BEST_AVAILABLE = 1; -
USE_STANDARD
Use standard model variant even if an enhanced model is available. See the [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) for details about enhanced models.
USE_STANDARD = 2; -
USE_ENHANCED
Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant. The [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) describes which models have enhanced variants. * If the API caller isn't eligible for enhanced models, Dialogflow returns an error. Please see the [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make your project eligible.
USE_ENHANCED = 3; -
UNRECOGNIZED
-
-
Field Details
-
SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE
public static final int SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUENo model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;- See Also:
-
USE_BEST_AVAILABLE_VALUE
public static final int USE_BEST_AVAILABLE_VALUEUse the best available variant of the [Speech model][model] that the caller is eligible for. Please see the [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make your project eligible for enhanced models.
USE_BEST_AVAILABLE = 1;- See Also:
-
USE_STANDARD_VALUE
public static final int USE_STANDARD_VALUEUse standard model variant even if an enhanced model is available. See the [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) for details about enhanced models.
USE_STANDARD = 2;- See Also:
-
USE_ENHANCED_VALUE
public static final int USE_ENHANCED_VALUEUse an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant. The [Cloud Speech documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) describes which models have enhanced variants. * If the API caller isn't eligible for enhanced models, Dialogflow returns an error. Please see the [Dialogflow docs](https://cloud.google.com/dialogflow/docs/data-logging) for how to make your project eligible.
USE_ENHANCED = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-