Reference documentation and code samples for the Cloud Speech V2 Client 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.
Generated from protobuf messagegoogle.cloud.speech.v2.SpeechAdaptation
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Speech V2 Client - Class SpeechAdaptation (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-speech/latest/V2.SpeechAdaptation)\n- [2.1.0](/php/docs/reference/cloud-speech/2.1.0/V2.SpeechAdaptation)\n- [2.0.1](/php/docs/reference/cloud-speech/2.0.1/V2.SpeechAdaptation)\n- [1.20.1](/php/docs/reference/cloud-speech/1.20.1/V2.SpeechAdaptation)\n- [1.19.2](/php/docs/reference/cloud-speech/1.19.2/V2.SpeechAdaptation)\n- [1.18.3](/php/docs/reference/cloud-speech/1.18.3/V2.SpeechAdaptation)\n- [1.16.0](/php/docs/reference/cloud-speech/1.16.0/V2.SpeechAdaptation)\n- [1.15.0](/php/docs/reference/cloud-speech/1.15.0/V2.SpeechAdaptation)\n- [1.14.3](/php/docs/reference/cloud-speech/1.14.3/V2.SpeechAdaptation)\n- [1.13.1](/php/docs/reference/cloud-speech/1.13.1/V2.SpeechAdaptation)\n- [1.12.0](/php/docs/reference/cloud-speech/1.12.0/V2.SpeechAdaptation)\n- [1.11.2](/php/docs/reference/cloud-speech/1.11.2/V2.SpeechAdaptation)\n- [1.10.0](/php/docs/reference/cloud-speech/1.10.0/V2.SpeechAdaptation)\n- [1.9.1](/php/docs/reference/cloud-speech/1.9.1/V2.SpeechAdaptation)\n- [1.8.0](/php/docs/reference/cloud-speech/1.8.0/V2.SpeechAdaptation)\n- [1.7.0](/php/docs/reference/cloud-speech/1.7.0/V2.SpeechAdaptation) \nReference documentation and code samples for the Cloud Speech V2 Client 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\nGenerated from protobuf message `google.cloud.speech.v2.SpeechAdaptation`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Speech \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPhraseSets\n\nA list of inline or referenced PhraseSets.\n\n### setPhraseSets\n\nA list of inline or referenced PhraseSets.\n\n### getCustomClasses\n\nA list of inline CustomClasses. Existing CustomClass resources can be\nreferenced directly in a PhraseSet.\n\n### setCustomClasses\n\nA list of inline CustomClasses. Existing CustomClass resources can be\nreferenced directly in a PhraseSet."]]