lib/ruby_speech/ssml/prosody.rb
def pitch
        value = read_attr :pitch
        return unless value
        if value.include?('Hz')
          value
        elsif VALID_PITCHES.include?(value.to_sym)
          value.to_sym
        end
      end
##
# The baseline pitch for the contained text. Although the exact meaning of "baseline pitch" will vary across synthesis processors, increasing/decreasing this value will typically increase/decrease the approximate pitch of the output. Legal values are: a number followed by "Hz", a relative change or "x-low", "low", "medium", "high", "x-high", or "default". Labels "x-low" through "x-high" represent a sequence of monotonically non-decreasing pitch levels.
#
# @return [Symbol, String]
#
The baseline pitch for the contained text. Although the exact meaning of "baseline pitch" will vary across synthesis processors, increasing/decreasing this value will typically increase/decrease the approximate pitch of the output.
The baseline pitch for the contained text . Although the exact meaning of " baseline pitch " will vary across synthesis processors increasing / decreasing this value will typically increase / decrease the approximate pitch of the output .
def pitch
        value = read_attr :pitch
        return unless value
        if value.include?('Hz')
          value
        elsif VALID_PITCHES.include?(value.to_sym)
          value.to_sym
        end
      end
def pitch value = read_attr :pitch return unless value if value . include? ( 'Hz' ) value elsif VALID_PITCHES . include? ( value . to_sym ) value . to_sym end end
The baseline pitch for the contained text.
The baseline pitch for the contained text .
None
Symbol, String