public sealed class ExplicitDecodingConfig : IMessage<ExplicitDecodingConfig>, IEquatable<ExplicitDecodingConfig>, IDeepCloneable<ExplicitDecodingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class ExplicitDecodingConfig.
Sample rate in Hertz of the audio data sent for recognition. Valid
values are: 8000-48000. 16000 is optimal. For best results, set the
sampling rate of the audio source to 16000 Hz. If that's not possible, use
the native sample rate of the audio source (instead of re-sampling).
Supported for the following encodings:
LINEAR16: Headerless 16-bit signed little-endian PCM samples.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, detailing its functionality for specifying decoding parameters.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in data handling and manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eAudioChannelCount\u003c/code\u003e, \u003ccode\u003eEncoding\u003c/code\u003e, and \u003ccode\u003eSampleRateHertz\u003c/code\u003e, which define the audio characteristics for speech recognition, such as the number of channels, the encoding type, and the sample rate.\u003c/p\u003e\n"],["\u003cp\u003eThe supported audio encoding types for which \u003ccode\u003eAudioChannelCount\u003c/code\u003e and \u003ccode\u003eSampleRateHertz\u003c/code\u003e properties can be defined include LINEAR16, MULAW, and ALAW.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e, where the latest version is \u003ccode\u003e1.4.0\u003c/code\u003e and it also covers versions \u003ccode\u003e1.3.0\u003c/code\u003e, \u003ccode\u003e1.2.0\u003c/code\u003e, \u003ccode\u003e1.1.0\u003c/code\u003e, and \u003ccode\u003e1.0.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]