Sha256: ceb9e0fc0eb1533835bb2d6d305b417c0f7d773bf3747bf427a2a9337521caaf

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

module RubySpeech
  module SSML
    extend ActiveSupport::Autoload

    eager_autoload do
      autoload :Audio
      autoload :Break
      autoload :Desc
      autoload :Element
      autoload :Emphasis
      autoload :Mark
      autoload :P
      autoload :Phoneme
      autoload :Prosody
      autoload :S
      autoload :SayAs
      autoload :Speak
      autoload :Sub
      autoload :Voice
    end

    InvalidChildError = Class.new StandardError

    SSML_NAMESPACE = 'http://www.w3.org/2001/10/synthesis'

    def self.draw(&block)
      Speak.new.tap do |speak|
        block_return = speak.eval_dsl_block &block
        speak << block_return if block_return.is_a?(String)
      end
    end

    def self.import(other)
      Element.import other
    end
  end # SSML
end # RubySpeech

ActiveSupport::Autoload.eager_autoload!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_speech-1.0.0 lib/ruby_speech/ssml.rb
ruby_speech-0.5.1 lib/ruby_speech/ssml.rb
ruby_speech-0.5.0 lib/ruby_speech/ssml.rb