public enum SpeechModelVariant extends Enum<SpeechModelVariant> implements ProtocolMessageEnum
Variant of the specified [Speech model][google.cloud.dialogflow.v2beta1.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.v2beta1.SpeechModelVariant
Enum Constant and Description |
---|
SPEECH_MODEL_VARIANT_UNSPECIFIED
No model variant specified.
|
UNRECOGNIZED |
USE_BEST_AVAILABLE
Use the best available variant of the [Speech
model][InputAudioConfig.model] that the caller is eligible for.
|
USE_ENHANCED
Use an enhanced model variant:
* If an enhanced variant does not exist for the given
[model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] and request language, Dialogflow falls
back to the standard variant.
|
USE_STANDARD
Use standard model variant even if an enhanced model is available.
|
Modifier and Type | Field and Description |
---|---|
static int |
SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE
No model variant specified.
|
static int |
USE_BEST_AVAILABLE_VALUE
Use the best available variant of the [Speech
model][InputAudioConfig.model] that the caller is eligible for.
|
static int |
USE_ENHANCED_VALUE
Use an enhanced model variant:
* If an enhanced variant does not exist for the given
[model][google.cloud.dialogflow.v2beta1.InputAudioConfig.model] and request language, Dialogflow falls
back to the standard variant.
|
static int |
USE_STANDARD_VALUE
Use standard model variant even if an enhanced model is available.
|
Modifier and Type | Method and Description |
---|---|
static SpeechModelVariant |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<SpeechModelVariant> |
internalGetValueMap() |
static SpeechModelVariant |
valueOf(Descriptors.EnumValueDescriptor desc) |
static SpeechModelVariant |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SpeechModelVariant |
valueOf(String name)
Returns 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.
|
public static final SpeechModelVariant SPEECH_MODEL_VARIANT_UNSPECIFIED
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
public static final SpeechModelVariant USE_BEST_AVAILABLE
Use the best available variant of the [Speech model][InputAudioConfig.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;
public static final SpeechModelVariant 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;
public static final SpeechModelVariant USE_ENHANCED
Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2beta1.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;
public static final SpeechModelVariant UNRECOGNIZED
public static final int SPEECH_MODEL_VARIANT_UNSPECIFIED_VALUE
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
SPEECH_MODEL_VARIANT_UNSPECIFIED = 0;
public static final int USE_BEST_AVAILABLE_VALUE
Use the best available variant of the [Speech model][InputAudioConfig.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;
public static final int USE_STANDARD_VALUE
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;
public static final int USE_ENHANCED_VALUE
Use an enhanced model variant: * If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2beta1.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;
public static SpeechModelVariant[] values()
for (SpeechModelVariant c : SpeechModelVariant.values()) System.out.println(c);
public static SpeechModelVariant valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static SpeechModelVariant valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SpeechModelVariant forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<SpeechModelVariant> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static SpeechModelVariant valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.