class AzureSTT::Parsers::Word
Parse the words in the result file to Models::Word
Protected Instance Methods
build_attributes()
click to toggle source
Build the attributes needed to instantiate a Models::Word
@return [Hash]
# File lib/azure_stt/parsers/word.rb, line 16 def build_attributes { word: hash['word'], offset: hash['offset'], duration: hash['duration'], offset_in_ticks: hash['offsetInTicks'], duration_in_ticks: hash['durationInTicks'], confidence: hash['confidence'] }.compact end