lib/ruby_speech/ssml/prosody.rb
def volume
        value = read_attr :volume
        return unless value
        if VALID_VOLUMES.include?(value.to_sym)
          value.to_sym
        else
          value.to_f
        end
      end
##
# The volume for the contained text in the range 0.0 to 100.0 (higher values are louder and specifying a value of zero is equivalent to specifying "silent"). Legal values are: number, a relative change or "silent", "x-soft", "soft", "medium", "loud", "x-loud", or "default". The volume scale is linear amplitude. The default is 100.0. Labels "silent" through "x-loud" represent a sequence of monotonically non-decreasing volume levels.
#
# @return [Symbol, Float]
#
The volume for the contained text in the range 0.0 to 100.0 (higher values are louder and specifying a value of zero is equivalent to specifying "silent").
The volume for the contained text in the range 0 . 0 to 100 . 0 ( higher values are louder and specifying a value of zero is equivalent to specifying " silent " ) .
def volume
        value = read_attr :volume
        return unless value
        if VALID_VOLUMES.include?(value.to_sym)
          value.to_sym
        else
          value.to_f
        end
      end
def volume value = read_attr :volume return unless value if VALID_VOLUMES . include? ( value . to_sym ) value . to_sym else value . to_f end end
The volume for the contained text in the range 0.0 to 100.0 (higher values are louder and specifying a value of zero is equivalent to specifying "silent").
The volume for the contained text in the range 0 . 0 to 100 . 0 ( higher values are louder and specifying a value of zero is equivalent to specifying " silent " ) .
None
Symbol, Float