Method: RubySpeech::SSML::Prosody#duration

Defined in:
lib/ruby_speech/ssml/prosody.rb

#durationInteger

A value in seconds for the desired time to take to read the element contents.

Returns:

  • (Integer)


136
137
138
139
# File 'lib/ruby_speech/ssml/prosody.rb', line 136

def duration
  value = get_time_attribute :duration
  value.round if value
end