Cloud Speech-to-Text v2 API - Class RecognitionConfig (1.0.0-beta05)

public sealed class RecognitionConfig : IMessage<RecognitionConfig>, IEquatable<RecognitionConfig>, IDeepCloneable<RecognitionConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Speech-to-Text v2 API class RecognitionConfig.

Provides information to the Recognizer that specifies how to process the recognition request.

Inheritance

object > RecognitionConfig

Namespace

Google.Cloud.Speech.V2

Assembly

Google.Cloud.Speech.V2.dll

Constructors

RecognitionConfig()

public RecognitionConfig()

RecognitionConfig(RecognitionConfig)

public RecognitionConfig(RecognitionConfig other)
Parameter
NameDescription
otherRecognitionConfig

Properties

Adaptation

public SpeechAdaptation Adaptation { get; set; }

Speech adaptation context that weights recognizer predictions for specific words and phrases.

Property Value
TypeDescription
SpeechAdaptation

AutoDecodingConfig

public AutoDetectDecodingConfig AutoDecodingConfig { get; set; }

Automatically detect decoding parameters. Preferred for supported formats.

Property Value
TypeDescription
AutoDetectDecodingConfig

DecodingConfigCase

public RecognitionConfig.DecodingConfigOneofCase DecodingConfigCase { get; }
Property Value
TypeDescription
RecognitionConfigDecodingConfigOneofCase

ExplicitDecodingConfig

public ExplicitDecodingConfig ExplicitDecodingConfig { get; set; }

Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).

Property Value
TypeDescription
ExplicitDecodingConfig

Features

public RecognitionFeatures Features { get; set; }

Speech recognition features to enable.

Property Value
TypeDescription
RecognitionFeatures