Class: Google::Cloud::Speech::InterimResult
- Inherits:
-
Object
- Object
- Google::Cloud::Speech::InterimResult
- Defined in:
- lib/google/cloud/speech/result.rb
Overview
InterimResult
A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.
See Project#stream and Stream#on_interim.
Instance Attribute Summary collapse
-
#alternatives ⇒ Array<Result::Alternative>
readonly
Additional recognition hypotheses (up to the value specified in
max_alternatives
). -
#confidence ⇒ Float
readonly
The confidence estimate between 0.0 and 1.0.
-
#stability ⇒ Float
readonly
An estimate of the probability that the recognizer will not change its guess about this interim result.
-
#transcript ⇒ String
readonly
Transcript text representing the words that the user spoke.
Instance Attribute Details
#alternatives ⇒ Array<Result::Alternative> (readonly)
Additional
recognition hypotheses (up to the value specified in
max_alternatives
).
215 216 217 |
# File 'lib/google/cloud/speech/result.rb', line 215 def alternatives @alternatives end |
#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.
215 216 217 |
# File 'lib/google/cloud/speech/result.rb', line 215 def confidence @confidence end |
#stability ⇒ Float (readonly)
An estimate of the probability that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). Note that this is not the same as confidence, which estimates the probability that a recognition result is correct.
215 216 217 |
# File 'lib/google/cloud/speech/result.rb', line 215 def stability @stability end |
#transcript ⇒ String (readonly)
Transcript text representing the words that the user spoke.
215 216 217 |
# File 'lib/google/cloud/speech/result.rb', line 215 def transcript @transcript end |