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 the specification of decoding parameters for audio recognition.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports various audio encodings, including LINEAR16, MULAW, and ALAW, with properties to define \u003ccode\u003eAudioChannelCount\u003c/code\u003e, \u003ccode\u003eEncoding\u003c/code\u003e, and \u003ccode\u003eSampleRateHertz\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e, one default and another that takes an existing \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eVersion 1.4.0 is the latest version of the Speech-to-Text v2 API class \u003ccode\u003eExplicitDecodingConfig\u003c/code\u003e, while versions 1.3.0, 1.2.0, 1.1.0 and 1.0.0 are also available.\u003c/p\u003e\n"]]],[],null,[]]