Class: Google::Cloud::Speech::Result::Alternative
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::Result::Alternative
- Defined in:
- lib/google/cloud/speech/result.rb
Overview
Result::Alternative
A speech recognition result corresponding to a portion of the audio.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
readonly
The confidence estimate between 0.0 and 1.0.
-
#transcript ⇒ String
readonly
Transcript text representing the words that the user spoke.
Instance Attribute Details
#confidence ⇒ Float (readonly)
The confidence estimate between 0.0 and 1.0. A higher number means the system is more confident that the recognition is correct. This field is typically provided only for the top hypothesis. A value of 0.0 is a sentinel value indicating confidence was not set.
111 112 113 |
# File 'lib/google/cloud/speech/result.rb', line 111 def confidence @confidence end |
#transcript ⇒ String (readonly)
Transcript text representing the words that the user spoke.
111 112 113 |
# File 'lib/google/cloud/speech/result.rb', line 111 def transcript @transcript end |