class AzureSTT::Models::Result
Model class for the results of a transcription when the transcription is successful
Public Instance Methods
sentences()
click to toggle source
Get all the best Models::Sentence
of a result.
@return [Array]
# File lib/azure_stt/models/result.rb, line 69 def sentences recognized_phrases.map do |recognized_phrase| recognized_phrase.n_best.first end end
text()
click to toggle source
The display field of the first CombinedRecognizedPhrases
@return [String]
# File lib/azure_stt/models/result.rb, line 60 def text combined_recognized_phrases.first.transcript end