public sealed class SpeechRecognitionAlternative : IMessage<SpeechRecognitionAlternative>, IEquatable<SpeechRecognitionAlternative>, IDeepCloneable<SpeechRecognitionAlternative>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Speech v1p1beta1 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\u003eThis page provides documentation for the \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class within the Google Cloud Speech v1p1beta1 API, with the latest version being 3.0.0-beta08.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class represents alternative hypotheses (n-best list) from speech recognition results, implementing multiple interfaces such as \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 class offers two constructors, one default and another that accepts another \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e object for creating new objects.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e include \u003ccode\u003eConfidence\u003c/code\u003e (a float representing the confidence level of the recognition), \u003ccode\u003eTranscript\u003c/code\u003e (a string containing the recognized text), and \u003ccode\u003eWords\u003c/code\u003e (a list of \u003ccode\u003eWordInfo\u003c/code\u003e for detailed word-specific information).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSpeechRecognitionAlternative\u003c/code\u003e class has inherited members from the object class, including \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, all used for general methods of the object class.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Speech v1p1beta1 API - Class SpeechRecognitionAlternative (3.0.0-beta09)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta09 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative)\n- [3.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta08/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative) \n\n public sealed class SpeechRecognitionAlternative : IMessage\u003cSpeechRecognitionAlternative\u003e, IEquatable\u003cSpeechRecognitionAlternative\u003e, IDeepCloneable\u003cSpeechRecognitionAlternative\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Speech v1p1beta1 API class SpeechRecognitionAlternative.\n\nAlternative hypotheses (a.k.a. n-best list). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SpeechRecognitionAlternative \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeechRecognitionAlternative](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeechRecognitionAlternative](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeechRecognitionAlternative](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.SpeechRecognitionAlternative), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Speech.V1P1Beta1](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V1P1Beta1.dll\n\nConstructors\n------------\n\n### SpeechRecognitionAlternative()\n\n public SpeechRecognitionAlternative()\n\n### SpeechRecognitionAlternative(SpeechRecognitionAlternative)\n\n public SpeechRecognitionAlternative(SpeechRecognitionAlternative other)\n\nProperties\n----------\n\n### Confidence\n\n public float Confidence { get; set; }\n\nThe confidence estimate between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the recognized words are\ncorrect. This field is set only for the top alternative of a non-streaming\nresult or, of a streaming result where `is_final=true`.\nThis field is not guaranteed to be accurate and users should not rely on it\nto be always provided.\nThe default of 0.0 is a sentinel value indicating `confidence` was not set.\n\n### Transcript\n\n public string Transcript { get; set; }\n\nTranscript text representing the words that the user spoke.\nIn languages that use spaces to separate words, the transcript might have a\nleading space if it isn't the first result. You can concatenate each result\nto obtain the full transcript without using a separator.\n\n### Words\n\n public RepeatedField\u003cWordInfo\u003e Words { get; }\n\nA list of word-specific information for each recognized word.\nNote: When `enable_speaker_diarization` is true, you will see all the words\nfrom the beginning of the audio."]]