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,[]]