Reference documentation and code samples for the Cloud Video Intelligence V1p1beta1 API class Google::Cloud::VideoIntelligence::V1p1beta1::SpeechRecognitionAlternative.
Alternative hypotheses (a.k.a. n-best list).
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#confidence
defconfidence()->::Float
Returns
(::Float) — Output only. The confidence estimate between 0.0 and 1.0. A higher number
indicates an estimated greater likelihood that the recognized words are
correct. This field is set only for the top alternative.
This field is not guaranteed to be accurate and users should not rely on it
to be always provided.
The default of 0.0 is a sentinel value indicating confidence was not set.
#transcript
deftranscript()->::String
Returns
(::String) — Output only. Transcript text representing the words that the user spoke.
#transcript=
deftranscript=(value)->::String
Parameter
value (::String) — Output only. Transcript text representing the words that the user spoke.
Returns
(::String) — Output only. Transcript text representing the words that the user spoke.
[[["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::SpeechRecognitionAlternative (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-SpeechRecognitionAlternative)\n- [0.12.1](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.12.1/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.11.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.11.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.10.2](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.10.2/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.9.2](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.9.2/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.8.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.8.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.7.1](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.7.1/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.6.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.6.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.5.0](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.5.0/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative)\n- [0.4.5](/ruby/docs/reference/google-cloud-video_intelligence-v1p1beta1/0.4.5/Google-Cloud-VideoIntelligence-V1p1beta1-SpeechRecognitionAlternative) \nReference documentation and code samples for the Cloud Video Intelligence V1p1beta1 API class Google::Cloud::VideoIntelligence::V1p1beta1::SpeechRecognitionAlternative.\n\nAlternative hypotheses (a.k.a. n-best list). \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### #confidence\n\n def confidence() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Output only. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.\n\n### #transcript\n\n def transcript() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Transcript text representing the words that the user spoke.\n\n### #transcript=\n\n def transcript=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Output only. Transcript text representing the words that the user spoke. \n**Returns**\n\n- (::String) --- Output only. Transcript text representing the words that the user spoke.\n\n### #words\n\n def words() -\u003e ::Array\u003c::Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo](./Google-Cloud-VideoIntelligence-V1p1beta1-WordInfo)\\\u003e) --- Output only. A list of word-specific information for each recognized word.\n\n### #words=\n\n def words=(value) -\u003e ::Array\u003c::Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo](./Google-Cloud-VideoIntelligence-V1p1beta1-WordInfo)\\\u003e) --- Output only. A list of word-specific information for each recognized word. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::VideoIntelligence::V1p1beta1::WordInfo](./Google-Cloud-VideoIntelligence-V1p1beta1-WordInfo)\\\u003e) --- Output only. A list of word-specific information for each recognized word."]]