public sealed class StreamingRecognitionResult : IMessage<StreamingRecognitionResult>, IEquatable<StreamingRecognitionResult>, IDeepCloneable<StreamingRecognitionResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionResult.
A streaming speech recognition result corresponding to a portion of the audio
that is currently being processed.
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.
If false, this
[StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult]
represents an interim result that may change. If true, this is the final
time the speech service will return this particular
[StreamingRecognitionResult][google.cloud.speech.v2.StreamingRecognitionResult],
the recognizer will not return any further hypotheses for this portion of
the transcript and corresponding audio.
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.
An estimate of the likelihood that the recognizer will not change its guess
about this interim result. Values range from 0.0 (completely unstable)
to 1.0 (completely stable). This field is only provided for interim results
([is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=false).
The default of 0.0 is a sentinel value indicating stability was not set.
[[["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\u003eStreamingRecognitionResult\u003c/code\u003e class, part of the Google Cloud Speech-to-Text v2 API, represents a portion of audio currently being processed for streaming speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eStreamingRecognitionResult\u003c/code\u003e include \u003ccode\u003eAlternatives\u003c/code\u003e for recognition hypotheses, \u003ccode\u003eChannelTag\u003c/code\u003e for multi-channel audio, \u003ccode\u003eIsFinal\u003c/code\u003e to indicate if the result is final or interim, \u003ccode\u003eLanguageCode\u003c/code\u003e for the detected language, \u003ccode\u003eResultEndOffset\u003c/code\u003e for the end time, and \u003ccode\u003eStability\u003c/code\u003e for the likelihood of the result remaining unchanged.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eStreamingRecognitionResult\u003c/code\u003e: a default constructor and another one that takes another \u003ccode\u003eStreamingRecognitionResult\u003c/code\u003e as a parameter for making a copy.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version of \u003ccode\u003eStreamingRecognitionResult\u003c/code\u003e is 1.4.0, with previous versions such as 1.3.0, 1.2.0, 1.1.0, and 1.0.0 also available.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class StreamingRecognitionResult (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.StreamingRecognitionResult)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.StreamingRecognitionResult)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.StreamingRecognitionResult)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.StreamingRecognitionResult)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.StreamingRecognitionResult)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.StreamingRecognitionResult) \n\n public sealed class StreamingRecognitionResult : IMessage\u003cStreamingRecognitionResult\u003e, IEquatable\u003cStreamingRecognitionResult\u003e, IDeepCloneable\u003cStreamingRecognitionResult\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class StreamingRecognitionResult.\n\nA streaming speech recognition result corresponding to a portion of the audio\nthat is currently being processed. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StreamingRecognitionResult \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionResult), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionResult), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingRecognitionResult](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.StreamingRecognitionResult), [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### StreamingRecognitionResult()\n\n public StreamingRecognitionResult()\n\n### StreamingRecognitionResult(StreamingRecognitionResult)\n\n public StreamingRecognitionResult(StreamingRecognitionResult 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\n`audio_channel_count` = `N`, its output values can range from `1` to `N`.\n\n### IsFinal\n\n public bool IsFinal { get; set; }\n\nIf `false`, this\n\\[StreamingRecognitionResult\\]\\[google.cloud.speech.v2.StreamingRecognitionResult\\]\nrepresents an interim result that may change. If `true`, this is the final\ntime the speech service will return this particular\n\\[StreamingRecognitionResult\\]\\[google.cloud.speech.v2.StreamingRecognitionResult\\],\nthe recognizer will not return any further hypotheses for this portion of\nthe transcript and corresponding audio.\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.\n\n### Stability\n\n public float Stability { get; set; }\n\nAn estimate of the likelihood that the recognizer will not change its guess\nabout this interim result. Values range from 0.0 (completely unstable)\nto 1.0 (completely stable). This field is only provided for interim results\n(\\[is_final\\]\\[google.cloud.speech.v2.StreamingRecognitionResult.is_final\\]=`false`).\nThe default of 0.0 is a sentinel value indicating `stability` was not set."]]