Sha256: 5d04b19cf9f34199ae29957f5736378a143794713b7648e89ba42b284b7f2b93

Contents?: true

Size: 624 Bytes

Versions: 3

Compression:

Stored size: 624 Bytes

Contents

# frozen_String_literal: true

module AzureSTT
  module Parsers
    #
    # Parse the CombinedRecognizedPhrases from the result file to a
    # Models::CombinedRecognizedPhrases
    #
    class CombinedRecognizedPhrases < Base
      protected

      #
      # Build a hash to instantiate a Models::CombinedRecognizedPhrase
      #
      # @return [Hash]
      #
      def build_attributes
        {
          channel: hash['channel'],
          lexical: hash['lexical'],
          itn: hash['itn'],
          masked_itn: hash['maskedITN'],
          transcript: hash['display']
        }.compact
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_stt-0.2.0 lib/azure_stt/parsers/combined_recognized_phrases.rb
azure_stt-0.1.1 lib/azure_stt/parsers/combined_recognized_phrases.rb
azure_stt-0.1.0 lib/azure_stt/parsers/combined_recognized_phrases.rb