Enum ExplicitDecodingConfig.AudioEncoding

java.lang.Object
java.lang.Enum<ExplicitDecodingConfig.AudioEncoding>
com.google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ExplicitDecodingConfig.AudioEncoding>
Enclosing class:
ExplicitDecodingConfig

public static enum ExplicitDecodingConfig.AudioEncoding extends Enum<ExplicitDecodingConfig.AudioEncoding> implements com.google.protobuf.ProtocolMessageEnum
 Supported audio data encodings.
 
Protobuf enum google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding
  • Enum Constant Details

  • Field Details

    • AUDIO_ENCODING_UNSPECIFIED_VALUE

      public static final int AUDIO_ENCODING_UNSPECIFIED_VALUE
       Default value. This value is unused.
       
      AUDIO_ENCODING_UNSPECIFIED = 0;
      See Also:
    • LINEAR16_VALUE

      public static final int LINEAR16_VALUE
       Headerless 16-bit signed little-endian PCM samples.
       
      LINEAR16 = 1;
      See Also:
    • MULAW_VALUE

      public static final int MULAW_VALUE
       Headerless 8-bit companded mulaw samples.
       
      MULAW = 2;
      See Also:
    • ALAW_VALUE

      public static final int ALAW_VALUE
       Headerless 8-bit companded alaw samples.
       
      ALAW = 3;
      See Also:
    • AMR_VALUE

      public static final int AMR_VALUE
       AMR frames with an rfc4867.5 header.
       
      AMR = 4;
      See Also:
    • AMR_WB_VALUE

      public static final int AMR_WB_VALUE
       AMR-WB frames with an rfc4867.5 header.
       
      AMR_WB = 5;
      See Also:
    • FLAC_VALUE

      public static final int FLAC_VALUE
       FLAC frames in the "native FLAC" container format.
       
      FLAC = 6;
      See Also:
    • MP3_VALUE

      public static final int MP3_VALUE
       MPEG audio frames with optional (ignored) ID3 metadata.
       
      MP3 = 7;
      See Also:
    • OGG_OPUS_VALUE

      public static final int OGG_OPUS_VALUE
       Opus audio frames in an Ogg container.
       
      OGG_OPUS = 8;
      See Also:
    • WEBM_OPUS_VALUE

      public static final int WEBM_OPUS_VALUE
       Opus audio frames in a WebM container.
       
      WEBM_OPUS = 9;
      See Also:
    • MP4_AAC_VALUE

      public static final int MP4_AAC_VALUE
       AAC audio frames in an MP4 container.
       
      MP4_AAC = 10;
      See Also:
    • M4A_AAC_VALUE

      public static final int M4A_AAC_VALUE
       AAC audio frames in an M4A container.
       
      M4A_AAC = 11;
      See Also:
    • MOV_AAC_VALUE

      public static final int MOV_AAC_VALUE
       AAC audio frames in an MOV container.
       
      MOV_AAC = 12;
      See Also:
  • Method Details

    • values

      public static ExplicitDecodingConfig.AudioEncoding[] 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

      public static ExplicitDecodingConfig.AudioEncoding valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ExplicitDecodingConfig.AudioEncoding valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static ExplicitDecodingConfig.AudioEncoding forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ExplicitDecodingConfig.AudioEncoding> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ExplicitDecodingConfig.AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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 name
      NullPointerException - if the argument is null