public static enum RecognitionMetadata.MicrophoneDistance extends Enum<RecognitionMetadata.MicrophoneDistance> implements com.google.protobuf.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 com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<RecognitionMetadata.MicrophoneDistance> |
internalGetValueMap() |
static RecognitionMetadata.MicrophoneDistance |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RecognitionMetadata.MicrophoneDistance |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RecognitionMetadata.MicrophoneDistance |
valueOf(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(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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static RecognitionMetadata.MicrophoneDistance valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RecognitionMetadata.MicrophoneDistance forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RecognitionMetadata.MicrophoneDistance> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static RecognitionMetadata.MicrophoneDistance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.