value (::Array<::String>) — Optional. A list of strings containing words and phrases that the speech
recognizer should recognize with higher likelihood.
This list can be used to:
improve accuracy for words and phrases you expect the user to say,
e.g. typical commands for your Dialogflow agent
add additional words to the speech recognizer vocabulary
[[["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-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SpeechContext (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-SpeechContext)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-SpeechContext) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SpeechContext.\n\nHints for the speech recognizer to help with recognition in a specific\nconversation state. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #boost\n\n def boost() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Optional. Boost for this context compared to other contexts:\n\n - If the boost is positive, Dialogflow will increase the probability that the phrases in this context are recognized over similar sounding phrases.\n - If the boost is unspecified or non-positive, Dialogflow will not apply any boost.\n\n Dialogflow recommends that you use boosts in the range (0, 20\\] and that you\n find a value that fits your use case with binary search.\n\n### #boost=\n\n def boost=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Optional. Boost for this context compared to other contexts:\n\n\n - If the boost is positive, Dialogflow will increase the probability that the phrases in this context are recognized over similar sounding phrases.\n - If the boost is unspecified or non-positive, Dialogflow will not apply any boost.\n\n Dialogflow recommends that you use boosts in the range (0, 20\\] and that you\nfind a value that fits your use case with binary search. \n**Returns**\n\n- (::Float) --- Optional. Boost for this context compared to other contexts:\n\n - If the boost is positive, Dialogflow will increase the probability that the phrases in this context are recognized over similar sounding phrases.\n - If the boost is unspecified or non-positive, Dialogflow will not apply any boost.\n\n Dialogflow recommends that you use boosts in the range (0, 20\\] and that you\n find a value that fits your use case with binary search.\n\n### #phrases\n\n def phrases() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood.\n\n This list can be used to:\n - improve accuracy for words and phrases you expect the user to say, e.g. typical commands for your Dialogflow agent\n - add additional words to the speech recognizer vocabulary\n - ...\n\n See the [Cloud Speech\n documentation](https://cloud.google.com/speech-to-text/quotas) for usage\n limits.\n\n### #phrases=\n\n def phrases=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) --- Optional. A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood.\n\n\n This list can be used to:\n - improve accuracy for words and phrases you expect the user to say, e.g. typical commands for your Dialogflow agent\n - add additional words to the speech recognizer vocabulary\n - ...\n\n See the [Cloud Speech\n documentation](https://cloud.google.com/speech-to-text/quotas) for usage\nlimits. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood.\n\n This list can be used to:\n - improve accuracy for words and phrases you expect the user to say, e.g. typical commands for your Dialogflow agent\n - add additional words to the speech recognizer vocabulary\n - ...\n\n See the [Cloud Speech\n documentation](https://cloud.google.com/speech-to-text/quotas) for usage\n limits."]]