Cloud Speech-to-Text v2 API - Class ExplicitDecodingConfig (1.4.0)

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.

Explicitly specified decoding parameters.

Inheritance

object > ExplicitDecodingConfig

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

ExplicitDecodingConfig()

public ExplicitDecodingConfig()

ExplicitDecodingConfig(ExplicitDecodingConfig)

public ExplicitDecodingConfig(ExplicitDecodingConfig other)
Parameter
Name Description
other ExplicitDecodingConfig

Properties

AudioChannelCount

public int AudioChannelCount { get; set; }

Optional. Number of channels present in the audio data sent for recognition. Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED.

The maximum allowed value is 8.

Property Value
Type Description
int

Encoding

public ExplicitDecodingConfig.Types.AudioEncoding Encoding { get; set; }

Required. Encoding of the audio data sent for recognition.

Property Value
Type Description
ExplicitDecodingConfigTypesAudioEncoding

SampleRateHertz

public int SampleRateHertz { get; set; }

Optional. 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). Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED.

Property Value
Type Description
int