Sha256: 382125f38ad3e6b7b9f3dabc05a6c035ebfa77bc2b6037115c0a37885cd9bf59
Contents?: true
Size: 615 Bytes
Versions: 5
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module AzureSTT module Parsers # # Parse the words in the result file to Models::Word # class Word < Base protected # # Build the attributes needed to instantiate a Models::Word # # @return [Hash] # 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 end end end
Version data entries
5 entries across 5 versions & 1 rubygems