- 4.50.0 (latest)
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
public enum RecognitionConfig.AudioEncoding extends Enum<RecognitionConfig.AudioEncoding> implements ProtocolMessageEnum
Audio encoding of the data sent in the audio message. All encodings support
only 1 channel (mono) audio. Only FLAC
includes a header that describes
the bytes of audio that follow the header. The other encodings are raw
audio bytes with no header.
For best results, the audio source should be captured and transmitted using
a lossless encoding (FLAC
or LINEAR16
). Recognition accuracy may be
reduced if lossy codecs (such as AMR, AMR_WB and MULAW) are used to capture
or transmit the audio, particularly if background noise is present.
Protobuf enum google.cloud.speech.v1beta1.RecognitionConfig.AudioEncoding
Implements
ProtocolMessageEnumStatic Fields | |
---|---|
Name | Description |
AMR | Adaptive Multi-Rate Narrowband codec. |
AMR_VALUE | Adaptive Multi-Rate Narrowband codec. |
AMR_WB | Adaptive Multi-Rate Wideband codec. |
AMR_WB_VALUE | Adaptive Multi-Rate Wideband codec. |
ENCODING_UNSPECIFIED | Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT. |
ENCODING_UNSPECIFIED_VALUE | Not specified. Will return result google.rpc.Code.INVALID_ARGUMENT. |
FLAC | This is the recommended encoding for |
FLAC_VALUE | This is the recommended encoding for |
LINEAR16 | Uncompressed 16-bit signed little-endian samples (Linear PCM).
This is the only encoding that may be used by |
LINEAR16_VALUE | Uncompressed 16-bit signed little-endian samples (Linear PCM).
This is the only encoding that may be used by |
MULAW | 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
MULAW_VALUE | 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
UNRECOGNIZED |
Static Methods | |
---|---|
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods | |
---|---|
Name | Description |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() |