Class StreamingRecognitionResult (2.8.0)

public sealed class StreamingRecognitionResult : IMessage<StreamingRecognitionResult>, IEquatable<StreamingRecognitionResult>, IDeepCloneable<StreamingRecognitionResult>, IBufferMessage, IMessage

A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.

Inheritance

Object > StreamingRecognitionResult

Namespace

Google.Cloud.Speech.V1

Assembly

Google.Cloud.Speech.V1.dll

Constructors

StreamingRecognitionResult()

public StreamingRecognitionResult()

StreamingRecognitionResult(StreamingRecognitionResult)

public StreamingRecognitionResult(StreamingRecognitionResult other)
Parameter
NameDescription
otherStreamingRecognitionResult

Properties

Alternatives

public RepeatedField<SpeechRecognitionAlternative> Alternatives { get; }

May contain one or more recognition hypotheses (up to the maximum specified in max_alternatives). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

Property Value
TypeDescription
RepeatedField<SpeechRecognitionAlternative>

ChannelTag

public int ChannelTag { get; set; }

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'.

Property Value
TypeDescription
Int32

IsFinal

public bool IsFinal { get; set; }

If false, this StreamingRecognitionResult represents an interim result that may change. If true, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.

Property Value
TypeDescription
Boolean

LanguageCode

public string LanguageCode { get; set; }

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.

Property Value
TypeDescription
String

ResultEndTime

public Duration ResultEndTime { get; set; }

Time offset of the end of this result relative to the beginning of the audio.

Property Value
TypeDescription
Duration

Stability

public float Stability { get; set; }

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=false). The default of 0.0 is a sentinel value indicating stability was not set.

Property Value
TypeDescription
Single