lib/ruby_speech/ssml/prosody.rb
def rate
        value = read_attr :rate
        return unless value
        if VALID_RATES.include?(value.to_sym)
          value.to_sym
        else
          value.to_f
        end
      end
##
# A change in the speaking rate for the contained text. Legal values are: a relative change or "x-slow", "slow", "medium", "fast", "x-fast", or "default". Labels "x-slow" through "x-fast" represent a sequence of monotonically non-decreasing speaking rates. When a number is used to specify a relative change it acts as a multiplier of the default rate. For example, a value of 1 means no change in speaking rate, a value of 2 means a speaking rate twice the default rate, and a value of 0.5 means a speaking rate of half the default rate. The default rate for a voice depends on the language and dialect and on the personality of the voice. The default rate for a voice should be such that it is experienced as a normal speaking rate for the voice when reading aloud text. Since voices are processor-specific, the default rate will be as well.
#
# @return [Symbol, Float]
#
A change in the speaking rate for the contained text.
A change in the speaking rate for the contained text .
def rate
        value = read_attr :rate
        return unless value
        if VALID_RATES.include?(value.to_sym)
          value.to_sym
        else
          value.to_f
        end
      end
def rate value = read_attr :rate return unless value if VALID_RATES . include? ( value . to_sym ) value . to_sym else value . to_f end end
A change in the speaking rate for the contained text.
A change in the speaking rate for the contained text .
None
Symbol, Float