Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding (v1.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding.
Supported audio data encodings.
Constants
AUDIO_ENCODING_UNSPECIFIED
value: 0
Default value. This value is unused.
LINEAR16
value: 1
Headerless 16-bit signed little-endian PCM samples.
MULAW
value: 2
Headerless 8-bit companded mulaw samples.
ALAW
value: 3
Headerless 8-bit companded alaw samples.
AMR
value: 4
AMR frames with an rfc4867.5 header.
AMR_WB
value: 5
AMR-WB frames with an rfc4867.5 header.
FLAC
value: 6
FLAC frames in the "native FLAC" container format.
MP3
value: 7
MPEG audio frames with optional (ignored) ID3 metadata.
OGG_OPUS
value: 8
Opus audio frames in an Ogg container.
WEBM_OPUS
value: 9
Opus audio frames in a WebM container.
MP4_AAC
value: 10
AAC audio frames in an MP4 container.
M4A_AAC
value: 11
AAC audio frames in an M4A container.
MOV_AAC
value: 12
AAC audio frames in an MOV container.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["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 2025-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-ExplicitDecodingConfig-AudioEncoding) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::ExplicitDecodingConfig::AudioEncoding.\n\nSupported audio data encodings.\n\nConstants\n---------\n\n### AUDIO_ENCODING_UNSPECIFIED\n\n**value:** 0 \nDefault value. This value is unused.\n\n### LINEAR16\n\n**value:** 1 \nHeaderless 16-bit signed little-endian PCM samples.\n\n### MULAW\n\n**value:** 2 \nHeaderless 8-bit companded mulaw samples.\n\n### ALAW\n\n**value:** 3 \nHeaderless 8-bit companded alaw samples.\n\n### AMR\n\n**value:** 4 \nAMR frames with an rfc4867.5 header.\n\n### AMR_WB\n\n**value:** 5 \nAMR-WB frames with an rfc4867.5 header.\n\n### FLAC\n\n**value:** 6 \nFLAC frames in the \"native FLAC\" container format.\n\n### MP3\n\n**value:** 7 \nMPEG audio frames with optional (ignored) ID3 metadata.\n\n### OGG_OPUS\n\n**value:** 8 \nOpus audio frames in an Ogg container.\n\n### WEBM_OPUS\n\n**value:** 9 \nOpus audio frames in a WebM container.\n\n### MP4_AAC\n\n**value:** 10 \nAAC audio frames in an MP4 container.\n\n### M4A_AAC\n\n**value:** 11 \nAAC audio frames in an M4A container.\n\n### MOV_AAC\n\n**value:** 12 \nAAC audio frames in an MOV container."]]