Reference documentation and code samples for the Cloud Video Intelligence V1p1beta1 API class Google::Cloud::VideoIntelligence::V1p1beta1::SpeechContext.
Provides "hints" to the speech recognizer to favor specific words and phrases
in the results.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#phrases
defphrases()->::Array<::String>
Returns
(::Array<::String>) — Optional. A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them. This can be used
to improve the accuracy for specific words and phrases, for example, if
specific commands are typically spoken by the user. This can also be used
to add additional words to the vocabulary of the recognizer. See
usage limits.
#phrases=
defphrases=(value)->::Array<::String>
Parameter
value (::Array<::String>) — Optional. A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them. This can be used
to improve the accuracy for specific words and phrases, for example, if
specific commands are typically spoken by the user. This can also be used
to add additional words to the vocabulary of the recognizer. See
usage limits.
Returns
(::Array<::String>) — Optional. A list of strings containing words and phrases "hints" so that
the speech recognition is more likely to recognize them. This can be used
to improve the accuracy for specific words and phrases, for example, if
specific commands are typically spoken by the user. This can also be used
to add additional words to the vocabulary of the recognizer. See
usage limits.
[[["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-03 UTC."],[],[],null,["# Cloud Video Intelligence V1p1beta1 API - Class Google::Cloud::VideoIntelligence::V1p1beta1::SpeechContext (v0.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.13.0 (latest)](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/latest/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.12.1](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.12.1/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.11.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.11.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.10.2](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.10.2/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.9.2](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.9.2/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.8.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.8.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.7.1](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.7.1/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.6.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.6.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.5.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.5.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext)\n- [0.4.5](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.4.5/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechContext) \nReference documentation and code samples for the Cloud Video Intelligence V1p1beta1 API class Google::Cloud::VideoIntelligence::V1p1beta1::SpeechContext.\n\nProvides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results. \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### #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 \"hints\" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).\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 \"hints\" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content). \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- Optional. A list of strings containing words and phrases \"hints\" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content)."]]