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.
Implements
IMessageRecognitionConfig, IEquatableRecognitionConfig, IDeepCloneableRecognitionConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Constructors
RecognitionConfig()
public RecognitionConfig()
RecognitionConfig(RecognitionConfig)
public RecognitionConfig(RecognitionConfig other)
Parameter | |
---|---|
Name | Description |
other | RecognitionConfig |
Properties
Adaptation
public SpeechAdaptation Adaptation { get; set; }
Speech adaptation context that weights recognizer predictions for specific words and phrases.
Property Value | |
---|---|
Type | Description |
SpeechAdaptation |
AutoDecodingConfig
public AutoDetectDecodingConfig AutoDecodingConfig { get; set; }
Automatically detect decoding parameters. Preferred for supported formats.
Property Value | |
---|---|
Type | Description |
AutoDetectDecodingConfig |
DecodingConfigCase
public RecognitionConfig.DecodingConfigOneofCase DecodingConfigCase { get; }
Property Value | |
---|---|
Type | Description |
RecognitionConfigDecodingConfigOneofCase |
ExplicitDecodingConfig
public ExplicitDecodingConfig ExplicitDecodingConfig { get; set; }
Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw).
Property Value | |
---|---|
Type | Description |
ExplicitDecodingConfig |
Features
public RecognitionFeatures Features { get; set; }
Speech recognition features to enable.
Property Value | |
---|---|
Type | Description |
RecognitionFeatures |