public sealed class SpeechRecognitionResult : IMessage<SpeechRecognitionResult>, IEquatable<SpeechRecognitionResult>, IDeepCloneable<SpeechRecognitionResult>, IBufferMessage, IMessageReference 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.
Implements
IMessageSpeechRecognitionResult, IEquatableSpeechRecognitionResult, IDeepCloneableSpeechRecognitionResult, IBufferMessage, IMessageNamespace
Google.Cloud.Speech.V2Assembly
Google.Cloud.Speech.V2.dll
Constructors
SpeechRecognitionResult()
public SpeechRecognitionResult()SpeechRecognitionResult(SpeechRecognitionResult)
public SpeechRecognitionResult(SpeechRecognitionResult other)| Parameter | |
|---|---|
| Name | Description |
other |
SpeechRecognitionResult |
Properties
Alternatives
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.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldSpeechRecognitionAlternative |
|
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 | |
|---|---|
| Type | Description |
int |
|
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 | |
|---|---|
| Type | Description |
string |
|
ResultEndOffset
public Duration ResultEndOffset { get; set; }Time offset of the end of this result relative to the beginning of the audio.
| Property Value | |
|---|---|
| Type | Description |
Duration |
|