Sha256: 5f38b5140d86c1587f547cb57351fbe19611caa9120abfb7380512d3cb6465b9

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 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
  end # SSML
end # RubySpeech

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby_speech-0.3.2 lib/ruby_speech/ssml.rb
ruby_speech-0.3.1 lib/ruby_speech/ssml.rb
ruby_speech-0.3.0 lib/ruby_speech/ssml.rb
ruby_speech-0.2.2 lib/ruby_speech/ssml.rb
ruby_speech-0.2.1 lib/ruby_speech/ssml.rb
ruby_speech-0.2.0 lib/ruby_speech/ssml.rb