public sealed class SpeechRecognitionAlternative : IMessage<SpeechRecognitionAlternative>, IEquatable<SpeechRecognitionAlternative>, IDeepCloneable<SpeechRecognitionAlternative>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Speech v1 API class SpeechRecognitionAlternative.
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 of a non-streaming
result or, of a streaming result where is_final=true.
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 text representing the words that the user spoke.
In languages that use spaces to separate words, the transcript might have a
leading space if it isn't the first result. You can concatenate each result
to obtain the full transcript without using a separator.
A list of word-specific information for each recognized word.
Note: When enable_speaker_diarization is true, you will see all the words
from the beginning of the audio.
[[["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 latest version available for the Google Cloud Speech v1 API's \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class is version 3.8.0, with multiple prior versions from 3.7.0 down to 2.2.0 also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e is a class within the \u003ccode\u003eGoogle.Cloud.Speech.V1\u003c/code\u003e namespace, designed to provide alternative speech recognition hypotheses or a n-best list, inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class includes properties such as \u003ccode\u003eConfidence\u003c/code\u003e, a float representing the likelihood of the recognized words' correctness, \u003ccode\u003eTranscript\u003c/code\u003e, a string containing the recognized words, and \u003ccode\u003eWords\u003c/code\u003e, which is a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eWordInfo\u003c/code\u003e providing specific information about each word recognized.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation outlines two constructors for the \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class, a default parameterless constructor, and one that accepts another \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e object for initialization.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e has inherited members like \u003ccode\u003eObject.GetHashCode()\u003c/code\u003e, \u003ccode\u003eObject.GetType()\u003c/code\u003e, \u003ccode\u003eObject.MemberwiseClone()\u003c/code\u003e, \u003ccode\u003eObject.ToString()\u003c/code\u003e that are described within the page.\u003c/p\u003e\n"]]],[],null,[]]