Class: Google::Cloud::Speech::Result::Word
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::Result::Word
- Defined in:
- lib/google/cloud/speech/result.rb
Overview
Word-specific information for recognized words. Currently, the only
additional information provided is the the start and end time offsets.
Available when using the words
argument in relevant methods.
Instance Attribute Summary collapse
-
#end_time ⇒ Numeric
readonly
Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word.
-
#start_time ⇒ Numeric
readonly
Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word.
-
#word ⇒ String
(also: #to_str)
readonly
The word corresponding to this set of information.
Instance Attribute Details
#end_time ⇒ Numeric (readonly)
Time offset relative to the
beginning of the audio, and corresponding to the end of the spoken
word. This field is only set if words
was specified. This is an
experimental feature and the accuracy of the time offset can vary.
105 106 107 |
# File 'lib/google/cloud/speech/result.rb', line 105 def end_time @end_time end |
#start_time ⇒ Numeric (readonly)
Time offset relative to the
beginning of the audio, and corresponding to the start of the spoken
word. This field is only set if words
was specified. This is an
experimental feature and the accuracy of the time offset can vary.
105 106 107 |
# File 'lib/google/cloud/speech/result.rb', line 105 def start_time @start_time end |
#word ⇒ String (readonly) Also known as: to_str
The word corresponding to this set of information.
105 106 107 |
# File 'lib/google/cloud/speech/result.rb', line 105 def word @word end |