Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SpeechWordInfo.
Information for a word recognized by the speech recognizer.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#confidence
defconfidence()->::Float
Returns
(::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.
#confidence=
defconfidence=(value)->::Float
Parameter
value (::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.
Returns
(::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.
#end_offset
defend_offset()->::Google::Protobuf::Duration
Returns
(::Google::Protobuf::Duration) — 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.
value (::Google::Protobuf::Duration) — 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.
Returns
(::Google::Protobuf::Duration) — 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.
#start_offset
defstart_offset()->::Google::Protobuf::Duration
Returns
(::Google::Protobuf::Duration) — 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.
value (::Google::Protobuf::Duration) — 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.
Returns
(::Google::Protobuf::Duration) — 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.
[[["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-09 UTC."],[],[],null,["# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SpeechWordInfo (v1.10.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.1 (latest)](/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.10.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.10.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.9.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.9.1/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.8.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.8.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.7.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.7.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.6.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.6.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.5.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.5.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.4.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.4.1/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.3.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.3.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.2.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.2.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.1.1](/ruby/docs/reference/google-cloud-dialogflow-v2/1.1.1/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [1.0.0](/ruby/docs/reference/google-cloud-dialogflow-v2/1.0.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.34.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.34.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.33.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.33.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.32.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.32.2/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.31.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.31.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.30.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.30.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.29.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.29.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.28.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.28.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.27.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.27.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.26.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.26.2/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.25.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.25.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.24.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.24.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.23.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.23.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.22.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.22.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.21.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.21.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.20.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.20.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.19.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.19.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.18.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.18.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.17.1](/ruby/docs/reference/google-cloud-dialogflow-v2/0.17.1/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.16.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.16.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.15.2](/ruby/docs/reference/google-cloud-dialogflow-v2/0.15.2/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.14.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.14.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.13.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.13.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo)\n- [0.12.0](/ruby/docs/reference/google-cloud-dialogflow-v2/0.12.0/Google-Cloud-Dialogflow-V2-SpeechWordInfo) \nReference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SpeechWordInfo.\n\nInformation for a word recognized by the speech recognizer. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #confidence\n\n def confidence() -\u003e ::Float\n\n**Returns**\n\n- (::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.\n\n This field is not guaranteed to be fully stable over time for the same\n audio input. Users should also not rely on it to always be provided.\n\n### #confidence=\n\n def confidence=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::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.\n\n\n This 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**Returns**\n\n- (::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.\n\n This field is not guaranteed to be fully stable over time for the same\n audio input. Users should also not rely on it to always be provided.\n\n### #end_offset\n\n def end_offset() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n### #end_offset=\n\n def end_offset=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n### #start_offset\n\n def start_offset() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n### #start_offset=\n\n def start_offset=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n### #word\n\n def word() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The word this info is for.\n\n### #word=\n\n def word=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The word this info is for. \n**Returns**\n\n- (::String) --- The word this info is for."]]