Class AudioEncoding (2.47.0)
Stay organized with collections
Save and categorize content based on your preferences.
AudioEncoding(value)
Audio encoding of the audio content sent in the conversational query
request. Refer to the Cloud Speech API
documentation <https://cloud.google.com/speech-to-text/docs/basics>__
for more details.
Enums
Name
Description
AUDIO_ENCODING_UNSPECIFIED
Not specified.
AUDIO_ENCODING_LINEAR_16
Uncompressed 16-bit signed little-endian samples (Linear PCM).
AUDIO_ENCODING_FLAC
```FLAC``
AUDIO_ENCODING_MULAW
8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
AUDIO_ENCODING_AMR
Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
AUDIO_ENCODING_AMR_WB
Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
AUDIO_ENCODING_OGG_OPUS
Opus encoded audio frames in Ogg container (`OggOpus
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE
Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The `Speex
AUDIO_ENCODING_ALAW
8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-31 UTC."],[],[]]