The confidence estimate between 0.0 and 1.0. A higher number
indicates an estimated greater likelihood that the recognized words are
correct. This field is set only for the top alternative of a non-streaming
result or, of a streaming result where
[is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final] is
set to true. This field is not guaranteed to be accurate and users should
not rely on it to be always provided. The default of 0.0 is a sentinel
value indicating confidence was not set.
Time offset relative to the beginning of the audio,
and corresponding to the end of the spoken word.
This field is only set if
[enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
is true and only in the top hypothesis. This is an experimental feature
and the accuracy of the time offset can vary.
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. speaker_label is set if
[SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
is given and only in the top alternative.
Time offset relative to the beginning of the audio,
and corresponding to the start of the spoken word.
This field is only set if
[enable_word_time_offsets][google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets]
is true and only in the top hypothesis. This is an experimental feature
and the accuracy of the time offset can vary.
[[["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\u003eThis document provides reference information for the \u003ccode\u003eWordInfo\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, detailing its properties and usage.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWordInfo\u003c/code\u003e class represents word-specific details in recognized speech, including the word itself, confidence level, and time offsets.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWordInfo\u003c/code\u003e includes properties like \u003ccode\u003eConfidence\u003c/code\u003e, \u003ccode\u003eEndOffset\u003c/code\u003e, \u003ccode\u003eSpeakerLabel\u003c/code\u003e, \u003ccode\u003eStartOffset\u003c/code\u003e, and \u003ccode\u003eWord\u003c/code\u003e, which hold various pieces of data related to the word that was transcribed.\u003c/p\u003e\n"],["\u003cp\u003eThe document outlines the different versions of the API, with the latest being version 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eWordInfo\u003c/code\u003e class implements multiple interfaces, such as \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"]]],[],null,["# Cloud Speech-to-Text v2 API - Class WordInfo (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.WordInfo)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.WordInfo)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.WordInfo)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.WordInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.WordInfo)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.WordInfo) \n\n public sealed class WordInfo : IMessage\u003cWordInfo\u003e, IEquatable\u003cWordInfo\u003e, IDeepCloneable\u003cWordInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class WordInfo.\n\nWord-specific information for recognized words. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e WordInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[WordInfo](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.WordInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[WordInfo](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.WordInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[WordInfo](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.WordInfo), [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### WordInfo()\n\n public WordInfo()\n\n### WordInfo(WordInfo)\n\n public WordInfo(WordInfo other)\n\nProperties\n----------\n\n### Confidence\n\n public float Confidence { get; set; }\n\nThe confidence estimate between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the recognized words are\ncorrect. This field is set only for the top alternative of a non-streaming\nresult or, of a streaming result where\n\\[is_final\\]\\[google.cloud.speech.v2.StreamingRecognitionResult.is_final\\] is\nset to `true`. This field is not guaranteed to be accurate and users should\nnot rely on it to be always provided. The default of 0.0 is a sentinel\nvalue indicating `confidence` was not set.\n\n### EndOffset\n\n public Duration EndOffset { get; set; }\n\nTime offset relative to the beginning of the audio,\nand corresponding to the end of the spoken word.\nThis field is only set if\n\\[enable_word_time_offsets\\]\\[google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets\\]\nis `true` and only in the top hypothesis. This is an experimental feature\nand the accuracy of the time offset can vary.\n\n### SpeakerLabel\n\n public string SpeakerLabel { get; set; }\n\nA distinct label is assigned for every speaker within the audio. This field\nspecifies which one of those speakers was detected to have spoken this\nword. `speaker_label` is set if\n\\[SpeakerDiarizationConfig\\]\\[google.cloud.speech.v2.SpeakerDiarizationConfig\\]\nis given and only in the top alternative.\n\n### StartOffset\n\n public Duration StartOffset { get; set; }\n\nTime offset relative to the beginning of the audio,\nand corresponding to the start of the spoken word.\nThis field is only set if\n\\[enable_word_time_offsets\\]\\[google.cloud.speech.v2.RecognitionFeatures.enable_word_time_offsets\\]\nis `true` and only in the top hypothesis. This is an experimental feature\nand the accuracy of the time offset can vary.\n\n### Word\n\n public string Word { get; set; }\n\nThe word corresponding to this set of information."]]