public sealed class SpeechRecognitionResult : IMessage<SpeechRecognitionResult>, IEquatable<SpeechRecognitionResult>, IDeepCloneable<SpeechRecognitionResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechRecognitionResult.
A speech recognition result corresponding to a portion of the audio.
public RepeatedField<SpeechRecognitionAlternative> Alternatives { get; }
May contain one or more recognition hypotheses. These alternatives are
ordered in terms of accuracy, with the top (first) alternative being the
most probable, as ranked by the recognizer.
For multi-channel audio, this is the channel number corresponding to the
recognized result for the audio from that channel.
For audio_channel_count = N, its output values can range from 1 to
N.
Output only. The BCP-47
language tag of the language in this result. This language code was
detected to have the most likelihood of being spoken in 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 \u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e class represents a portion of audio processed by the Cloud Speech-to-Text v2 API, providing recognition data.\u003c/p\u003e\n"],["\u003cp\u003eThis class, found in the \u003ccode\u003eGoogle.Cloud.Speech.V2\u003c/code\u003e namespace, includes properties like \u003ccode\u003eAlternatives\u003c/code\u003e, \u003ccode\u003eChannelTag\u003c/code\u003e, \u003ccode\u003eLanguageCode\u003c/code\u003e, and \u003ccode\u003eResultEndOffset\u003c/code\u003e to provide detailed information about the speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAlternatives\u003c/code\u003e property within \u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e contains multiple speech recognition hypotheses, ordered by their probability of accuracy.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e can be constructed either with no parameters or by being supplied with another \u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e object to copy.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role and capabilities within the .NET environment.\u003c/p\u003e\n"]]],[],null,[]]