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\u003eThe \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e class in the Cloud Speech-to-Text v2 API allows for setting specific audio decoding parameters.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties such as \u003ccode\u003eAudioChannelCount\u003c/code\u003e, which supports a maximum of 8 channels for specific encodings like LINEAR16, MULAW, and ALAW.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncoding\u003c/code\u003e property is a required parameter to specify the encoding of the audio data that will be sent for speech recognition, and it must be of type \u003ccode\u003eExplicitDecodingConfig.Types.AudioEncoding\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSampleRateHertz\u003c/code\u003e is another property that is supported for the same encodings and defines the sample rate of the audio data in Hertz, with a range between 8000 and 48000, and 16000 being the optimal sample rate.\u003c/p\u003e\n"]]],[],null,[]]