public sealed class SpeechAdaptation : IMessage<SpeechAdaptation>, IEquatable<SpeechAdaptation>, IDeepCloneable<SpeechAdaptation>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechAdaptation.
Provides "hints" to the speech recognizer to favor specific words and phrases
in the results. PhraseSets can be specified as an inline resource, or a
reference to an existing PhraseSet resource.
[[["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-to-Text v2 API provides a mechanism to enhance speech recognition accuracy by specifying hints for words and phrases.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechAdaptation\u003c/code\u003e can include both inline \u003ccode\u003eCustomClasses\u003c/code\u003e and \u003ccode\u003ePhraseSets\u003c/code\u003e, or it can reference existing \u003ccode\u003ePhraseSet\u003c/code\u003e resources, offering flexible customization options.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeechAdaptation\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring compatibility and providing core functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for the \u003ccode\u003eSpeechAdaptation\u003c/code\u003e class is version 1.4.0, with older versions 1.0.0 through 1.3.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two available constructors: a default \u003ccode\u003eSpeechAdaptation()\u003c/code\u003e constructor and a \u003ccode\u003eSpeechAdaptation(SpeechAdaptation other)\u003c/code\u003e constructor, which duplicates the current instance to a new instance.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class SpeechAdaptation (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.SpeechAdaptation)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.SpeechAdaptation)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.SpeechAdaptation)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.SpeechAdaptation)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.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 Cloud Speech-to-Text v2 API class SpeechAdaptation.\n\nProvides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results. PhraseSets can be specified as an inline resource, or a\nreference to an existing PhraseSet resource. \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.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.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.V2](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V2.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### CustomClasses\n\n public RepeatedField\u003cCustomClass\u003e CustomClasses { get; }\n\nA list of inline CustomClasses. Existing CustomClass resources can be\nreferenced directly in a PhraseSet.\n\n### PhraseSets\n\n public RepeatedField\u003cSpeechAdaptation.Types.AdaptationPhraseSet\u003e PhraseSets { get; }\n\nA list of inline or referenced PhraseSets."]]