public sealed class SpeechAdaptation : IMessage<SpeechAdaptation>, IEquatable<SpeechAdaptation>, IDeepCloneable<SpeechAdaptation>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeechAdaptation.
public SpeechAdaptation.Types.ABNFGrammar AbnfGrammar { get; set; }
Augmented Backus-Naur form (ABNF) is a standardized grammar notation
comprised by a set of derivation rules.
See specifications: https://www.w3.org/TR/speech-grammar
public RepeatedField<CustomClass> CustomClasses { get; }
A collection of custom classes. To specify the classes inline, leave the
class' name blank and fill in the rest of its fields, giving it a unique
custom_class_id. Refer to the inline defined class in phrase hints by its
custom_class_id.
public RepeatedField<PhraseSet> PhraseSets { get; }
A collection of phrase sets. To specify the hints inline, leave the
phrase set's name blank and fill in the rest of its fields. Any
phrase set can use any custom class.
[[["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\u003eSpeechAdaptation\u003c/code\u003e class in the Google Cloud Speech v1p1beta1 API provides configuration for speech adaptation.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, making it versatile for different usage scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties like \u003ccode\u003eAbnfGrammar\u003c/code\u003e, \u003ccode\u003eCustomClasses\u003c/code\u003e, \u003ccode\u003ePhraseSetReferences\u003c/code\u003e, \u003ccode\u003ePhraseSetReferencesAsPhraseSetNames\u003c/code\u003e, and \u003ccode\u003ePhraseSets\u003c/code\u003e for customizing speech adaptation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechAdaptation\u003c/code\u003e also has constructors that allow creating new instances, either empty or by copying an existing \u003ccode\u003eSpeechAdaptation\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of this API documented here, with \u003ccode\u003e3.0.0-beta08\u003c/code\u003e currently being the latest.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Speech v1p1beta1 API - Class SpeechAdaptation (3.0.0-beta09)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta09 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation)\n- [3.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta08/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation) \n\n public sealed class SpeechAdaptation : IMessage\u003cSpeechAdaptation\u003e, IEquatable\u003cSpeechAdaptation\u003e, IDeepCloneable\u003cSpeechAdaptation\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeechAdaptation.\n\nSpeech adaptation configuration. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SpeechAdaptation \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Speech.V1P1Beta1](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V1P1Beta1.dll\n\nConstructors\n------------\n\n### SpeechAdaptation()\n\n public SpeechAdaptation()\n\n### SpeechAdaptation(SpeechAdaptation)\n\n public SpeechAdaptation(SpeechAdaptation other)\n\nProperties\n----------\n\n### AbnfGrammar\n\n public SpeechAdaptation.Types.ABNFGrammar AbnfGrammar { get; set; }\n\nAugmented Backus-Naur form (ABNF) is a standardized grammar notation\ncomprised by a set of derivation rules.\nSee specifications: \u003chttps://www.w3.org/TR/speech-grammar\u003e\n\n### CustomClasses\n\n public RepeatedField\u003cCustomClass\u003e CustomClasses { get; }\n\nA collection of custom classes. To specify the classes inline, leave the\nclass' `name` blank and fill in the rest of its fields, giving it a unique\n`custom_class_id`. Refer to the inline defined class in phrase hints by its\n`custom_class_id`.\n\n### PhraseSetReferences\n\n public RepeatedField\u003cstring\u003e PhraseSetReferences { get; }\n\nA collection of phrase set resource names to use.\n\n### PhraseSetReferencesAsPhraseSetNames\n\n public ResourceNameList\u003cPhraseSetName\u003e PhraseSetReferencesAsPhraseSetNames { get; }\n\n[PhraseSetName](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName)-typed view over the [PhraseSetReferences](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechAdaptation#Google_Cloud_Speech_V1P1Beta1_SpeechAdaptation_PhraseSetReferences) resource name property.\n\n### PhraseSets\n\n public RepeatedField\u003cPhraseSet\u003e PhraseSets { get; }\n\nA collection of phrase sets. To specify the hints inline, leave the\nphrase set's `name` blank and fill in the rest of its fields. Any\nphrase set can use any custom class."]]