Time offset relative to the beginning of the audio that corresponds to the start of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
Time offset relative to the beginning of the audio that corresponds to the end of the spoken word. This is an experimental feature and the accuracy of the time offset can vary.
↳ confidence
float
The Speech confidence between 0.0 and 1.0 for this word. A higher number indicates an estimated greater likelihood that the recognized word is correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be fully stable over time for the same audio input. Users should also not rely on it to always be provided.
getWord
The word this info is for.
Returns
Type
Description
string
setWord
The word this info is for.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getStartOffset
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word. This is an experimental feature and the accuracy
of the time offset can vary.
Time offset relative to the beginning of the audio that corresponds to the
start of the spoken word. This is an experimental feature and the accuracy
of the time offset can vary.
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word. This is an experimental feature and the accuracy of
the time offset can vary.
Time offset relative to the beginning of the audio that corresponds to the
end of the spoken word. This is an experimental feature and the accuracy of
the time offset can vary.
The Speech confidence between 0.0 and 1.0 for this word. A higher number
indicates an estimated greater likelihood that the recognized word is
correct. The default of 0.0 is a sentinel value indicating that confidence
was not set.
This field is not guaranteed to be fully stable over time for the same
audio input. Users should also not rely on it to always be provided.
Returns
Type
Description
float
setConfidence
The Speech confidence between 0.0 and 1.0 for this word. A higher number
indicates an estimated greater likelihood that the recognized word is
correct. The default of 0.0 is a sentinel value indicating that confidence
was not set.
This field is not guaranteed to be fully stable over time for the same
audio input. Users should also not rely on it to always be provided.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class SpeechWordInfo (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.SpeechWordInfo)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.SpeechWordInfo)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.SpeechWordInfo)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.SpeechWordInfo)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.SpeechWordInfo)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.SpeechWordInfo)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.SpeechWordInfo)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.SpeechWordInfo)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.SpeechWordInfo)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.SpeechWordInfo)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.SpeechWordInfo)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.SpeechWordInfo)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.SpeechWordInfo)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.SpeechWordInfo)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.SpeechWordInfo)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.SpeechWordInfo)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.SpeechWordInfo)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.SpeechWordInfo)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.SpeechWordInfo)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.SpeechWordInfo)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.SpeechWordInfo) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class SpeechWordInfo.\n\nInformation for a word recognized by the speech recognizer.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.SpeechWordInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getWord\n\nThe word this info is for.\n\n### setWord\n\nThe word this info is for.\n\n### getStartOffset\n\nTime offset relative to the beginning of the audio that corresponds to the\nstart of the spoken word. This is an experimental feature and the accuracy\nof the time offset can vary.\n\n### hasStartOffset\n\n### clearStartOffset\n\n### setStartOffset\n\nTime offset relative to the beginning of the audio that corresponds to the\nstart of the spoken word. This is an experimental feature and the accuracy\nof the time offset can vary.\n\n### getEndOffset\n\nTime offset relative to the beginning of the audio that corresponds to the\nend of the spoken word. This is an experimental feature and the accuracy of\nthe time offset can vary.\n\n### hasEndOffset\n\n### clearEndOffset\n\n### setEndOffset\n\nTime offset relative to the beginning of the audio that corresponds to the\nend of the spoken word. This is an experimental feature and the accuracy of\nthe time offset can vary.\n\n### getConfidence\n\nThe Speech confidence between 0.0 and 1.0 for this word. A higher number\nindicates an estimated greater likelihood that the recognized word is\ncorrect. The default of 0.0 is a sentinel value indicating that confidence\nwas not set.\n\nThis field is not guaranteed to be fully stable over time for the same\naudio input. Users should also not rely on it to always be provided.\n\n### setConfidence\n\nThe Speech confidence between 0.0 and 1.0 for this word. A higher number\nindicates an estimated greater likelihood that the recognized word is\ncorrect. The default of 0.0 is a sentinel value indicating that confidence\nwas not set.\n\nThis field is not guaranteed to be fully stable over time for the same\naudio input. Users should also not rely on it to always be provided."]]