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 speech recognition result for a portion of audio, as part of the Cloud Speech-to-Text v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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 details about the recognition, including hypotheses, audio channel, detected language, and time offset.\u003c/p\u003e\n"],["\u003cp\u003eIt is derived from the \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces: \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\u003eSpeechRecognitionResult\u003c/code\u003e class has two constructors: one default constructor and another that takes another \u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eSpeechRecognitionResult\u003c/code\u003e is 1.4.0, and it is in the \u003ccode\u003eGoogle.Cloud.Speech.V2\u003c/code\u003e namespace, within the \u003ccode\u003eGoogle.Cloud.Speech.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class SpeechRecognitionResult (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechRecognitionResult)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.SpeechRecognitionResult)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.SpeechRecognitionResult)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.SpeechRecognitionResult)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.SpeechRecognitionResult)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.SpeechRecognitionResult) \n\n public sealed class SpeechRecognitionResult : IMessage\u003cSpeechRecognitionResult\u003e, IEquatable\u003cSpeechRecognitionResult\u003e, IDeepCloneable\u003cSpeechRecognitionResult\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechRecognitionResult.\n\nA speech recognition result corresponding to a portion of the audio. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SpeechRecognitionResult \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeechRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechRecognitionResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeechRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechRecognitionResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeechRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechRecognitionResult), [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.V2](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V2.dll\n\nConstructors\n------------\n\n### SpeechRecognitionResult()\n\n public SpeechRecognitionResult()\n\n### SpeechRecognitionResult(SpeechRecognitionResult)\n\n public SpeechRecognitionResult(SpeechRecognitionResult other)\n\nProperties\n----------\n\n### Alternatives\n\n public RepeatedField\u003cSpeechRecognitionAlternative\u003e Alternatives { get; }\n\nMay contain one or more recognition hypotheses. These alternatives are\nordered in terms of accuracy, with the top (first) alternative being the\nmost probable, as ranked by the recognizer.\n\n### ChannelTag\n\n public int ChannelTag { get; set; }\n\nFor multi-channel audio, this is the channel number corresponding to the\nrecognized result for the audio from that channel.\nFor `audio_channel_count` = `N`, its output values can range from `1` to\n`N`.\n\n### LanguageCode\n\n public string LanguageCode { get; set; }\n\nOutput only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)\nlanguage tag of the language in this result. This language code was\ndetected to have the most likelihood of being spoken in the audio.\n\n### ResultEndOffset\n\n public Duration ResultEndOffset { get; set; }\n\nTime offset of the end of this result relative to the beginning of the\naudio."]]