public static enum RecognitionFeatures.MultiChannelMode extends Enum<RecognitionFeatures.MultiChannelMode> implements com.google.protobuf.ProtocolMessageEnum
Options for how to recognize multi-channel audio.Protobuf enum
google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode| Enum Constant and Description |
|---|
MULTI_CHANNEL_MODE_UNSPECIFIED
Default value for the multi-channel mode.
|
SEPARATE_RECOGNITION_PER_CHANNEL
If selected, each channel in the provided audio is transcribed
independently.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE
Default value for the multi-channel mode.
|
static int |
SEPARATE_RECOGNITION_PER_CHANNEL_VALUE
If selected, each channel in the provided audio is transcribed
independently.
|
| Modifier and Type | Method and Description |
|---|---|
static RecognitionFeatures.MultiChannelMode |
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<RecognitionFeatures.MultiChannelMode> |
internalGetValueMap() |
static RecognitionFeatures.MultiChannelMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static RecognitionFeatures.MultiChannelMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RecognitionFeatures.MultiChannelMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecognitionFeatures.MultiChannelMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecognitionFeatures.MultiChannelMode MULTI_CHANNEL_MODE_UNSPECIFIED
Default value for the multi-channel mode. If the audio contains multiple channels, only the first channel will be transcribed; other channels will be ignored.
MULTI_CHANNEL_MODE_UNSPECIFIED = 0;public static final RecognitionFeatures.MultiChannelMode SEPARATE_RECOGNITION_PER_CHANNEL
If selected, each channel in the provided audio is transcribed independently. This cannot be selected if the selected [model][google.cloud.speech.v2.Recognizer.model] is `latest_short`.
SEPARATE_RECOGNITION_PER_CHANNEL = 1;public static final RecognitionFeatures.MultiChannelMode UNRECOGNIZED
public static final int MULTI_CHANNEL_MODE_UNSPECIFIED_VALUE
Default value for the multi-channel mode. If the audio contains multiple channels, only the first channel will be transcribed; other channels will be ignored.
MULTI_CHANNEL_MODE_UNSPECIFIED = 0;public static final int SEPARATE_RECOGNITION_PER_CHANNEL_VALUE
If selected, each channel in the provided audio is transcribed independently. This cannot be selected if the selected [model][google.cloud.speech.v2.Recognizer.model] is `latest_short`.
SEPARATE_RECOGNITION_PER_CHANNEL = 1;public static RecognitionFeatures.MultiChannelMode[] values()
for (RecognitionFeatures.MultiChannelMode c : RecognitionFeatures.MultiChannelMode.values()) System.out.println(c);
public static RecognitionFeatures.MultiChannelMode 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 RecognitionFeatures.MultiChannelMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static RecognitionFeatures.MultiChannelMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<RecognitionFeatures.MultiChannelMode> 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 RecognitionFeatures.MultiChannelMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.