Sha256: 0654479556b3a5043aeee4db00a5d36c7e076f4b942027874ed82046ad50b1f9

Contents?: true

Size: 1.44 KB

Versions: 5

Compression:

Stored size: 1.44 KB

Contents

# frozen_string_literal: true

module AzureSTT
  module Models
    #
    # Model for a word. A word is optional in a sentence
    #
    class Word < Base
      #
      # The word
      #
      # @!attribute [r] word
      #   @return [Types::Coercible::String]
      attribute :word, Types::Coercible::String

      #
      # The offset of the word in the audio. Ex: 'PT0.13S' means that the
      # phrase begins at 13 seconds on the audio file
      #
      # @!attribute [r] offset
      #   @return [Types::Coercible::String]
      attribute? :offset, Types::Coercible::String

      #
      # The duration of the word. Ex: 'PT0.13S' means that the phrase lasts 13
      # seconds
      #
      # @!attribute [r] duration
      #   @return [Types::Coercible::String]
      attribute? :duration, Types::Coercible::String

      #
      # The offset of the word in the audio in ticks.
      #
      # @!attribute [r] offset_in_ticks
      #   @return [Types::Coercible::Integer]
      attribute? :offset_in_ticks, Types::Coercible::Integer

      #
      # The duration of the word in ticks
      #
      # @!attribute [r] duration_in_ticks
      #   @return [Types::Coercible::Integer]
      attribute? :duration_in_ticks, Types::Coercible::Integer

      #
      # The confidence score of the transcripted word.
      #
      # @!attribute [r] confidence
      #   @return [Types::Coercible::Float]
      attribute :confidence, Types::Coercible::Float
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
azure_stt-0.4.0 lib/azure_stt/models/word.rb
azure_stt-0.3.0 lib/azure_stt/models/word.rb
azure_stt-0.2.0 lib/azure_stt/models/word.rb
azure_stt-0.1.1 lib/azure_stt/models/word.rb
azure_stt-0.1.0 lib/azure_stt/models/word.rb