public static enum RecognitionMetadata.MicrophoneDistance extends java.lang.Enum<RecognitionMetadata.MicrophoneDistance> implements ProtocolMessageEnum
Enumerates the types of capture settings describing an audio file.Protobuf enum
google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance
Enum Constant and Description |
---|
FARFIELD
The speaker is more than 3 meters away from the microphone.
|
MICROPHONE_DISTANCE_UNSPECIFIED
Audio type is not known.
|
MIDFIELD
The speaker if within 3 meters of the microphone.
|
NEARFIELD
The audio was captured from a closely placed microphone.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FARFIELD_VALUE
The speaker is more than 3 meters away from the microphone.
|
static int |
MICROPHONE_DISTANCE_UNSPECIFIED_VALUE
Audio type is not known.
|
static int |
MIDFIELD_VALUE
The speaker if within 3 meters of the microphone.
|
static int |
NEARFIELD_VALUE
The audio was captured from a closely placed microphone.
|
Modifier and Type | Method and Description |
---|---|
static RecognitionMetadata.MicrophoneDistance |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<RecognitionMetadata.MicrophoneDistance> |
internalGetValueMap() |
static RecognitionMetadata.MicrophoneDistance |
valueOf(Descriptors.EnumValueDescriptor desc) |
static RecognitionMetadata.MicrophoneDistance |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RecognitionMetadata.MicrophoneDistance |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RecognitionMetadata.MicrophoneDistance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecognitionMetadata.MicrophoneDistance MICROPHONE_DISTANCE_UNSPECIFIED
Audio type is not known.
MICROPHONE_DISTANCE_UNSPECIFIED = 0;
public static final RecognitionMetadata.MicrophoneDistance NEARFIELD
The audio was captured from a closely placed microphone. Eg. phone, dictaphone, or handheld microphone. Generally if there speaker is within 1 meter of the microphone.
NEARFIELD = 1;
public static final RecognitionMetadata.MicrophoneDistance MIDFIELD
The speaker if within 3 meters of the microphone.
MIDFIELD = 2;
public static final RecognitionMetadata.MicrophoneDistance FARFIELD
The speaker is more than 3 meters away from the microphone.
FARFIELD = 3;
public static final RecognitionMetadata.MicrophoneDistance UNRECOGNIZED
public static final int MICROPHONE_DISTANCE_UNSPECIFIED_VALUE
Audio type is not known.
MICROPHONE_DISTANCE_UNSPECIFIED = 0;
public static final int NEARFIELD_VALUE
The audio was captured from a closely placed microphone. Eg. phone, dictaphone, or handheld microphone. Generally if there speaker is within 1 meter of the microphone.
NEARFIELD = 1;
public static final int MIDFIELD_VALUE
The speaker if within 3 meters of the microphone.
MIDFIELD = 2;
public static final int FARFIELD_VALUE
The speaker is more than 3 meters away from the microphone.
FARFIELD = 3;
public static RecognitionMetadata.MicrophoneDistance[] values()
for (RecognitionMetadata.MicrophoneDistance c : RecognitionMetadata.MicrophoneDistance.values()) System.out.println(c);
public static RecognitionMetadata.MicrophoneDistance valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static RecognitionMetadata.MicrophoneDistance valueOf(int value)
forNumber(int)
instead.public static RecognitionMetadata.MicrophoneDistance forNumber(int value)
public static Internal.EnumLiteMap<RecognitionMetadata.MicrophoneDistance> 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 RecognitionMetadata.MicrophoneDistance valueOf(Descriptors.EnumValueDescriptor desc)