Sha256: 4b82a2a1167cb4f5e7c7d4e6c3cf1087185208c3d9ef3856a11955e7a6997825

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

module RubySpeech
  module SSML
    extend ActiveSupport::Autoload

    autoload :Audio
    autoload :Break
    autoload :Element
    autoload :Emphasis
    autoload :Prosody
    autoload :SayAs
    autoload :Speak
    autoload :Voice

    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.instance_eval(&block) if block_given?
        speak << block_return if block_return.is_a?(String)
      end
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_speech-0.3.3 lib/ruby_speech/ssml.rb