def say(*args)
      options = {:voice => 'man', :language => 'en', :loop => 1}
      args.each do |arg|
        case arg
        when String
          options[:text_to_speak] = arg
        when Hash
          options.merge!(arg)
        else
          raise ArgumentError, 'say expects String or Hash argument'
        end
      end

      output {
        if options[:pause]
          loop_with_pause(options[:loop], @xml) do
            @xml.Say(options[:text_to_speak], :voice => options[:voice], :language => options[:language])
          end
        else
          @xml.Say(options[:text_to_speak], :voice => options[:voice], :language => options[:language], :loop => options[:loop])
        end
      }
    end
def say(*args)
      options = {:voice => 'man', :language => 'en', :loop => 1}
      args.each do |arg|
        case arg
        when String
          options[:text_to_speak] = arg
        when Hash
          options.merge!(arg)
        else
          raise ArgumentError, 'say expects String or Hash argument'
        end
      end

      output {
        if options[:pause]
          loop_with_pause(options[:loop], @xml) do
            @xml.Say(options[:text_to_speak], :voice => options[:voice], :language => options[:language])
          end
        else
          @xml.Say(options[:text_to_speak], :voice => options[:voice], :language => options[:language], :loop => options[:loop])
        end
      }
    end
The Say verb converts text to speech that is read back to the caller.
 Say is useful for dynamic text that is difficult to prerecord.

 Examples:
   Twilio::Verb.say 'The time is 9:35 PM.'
   Twilio::Verb.say 'The time is 9:35 PM.', :loop => 3

 With numbers, 12345 will be spoken as "twelve thousand three hundred forty five" while
 1 2 3 4 5 will be spoken as "one two three four five."

   Twilio::Verb.say 'Your PIN is 1234', :loop => 4
   Twilio::Verb.say 'Your PIN is 1 2 3 4', :loop => 4

 If you need a longer pause between each loop, instead of explicitly calling the Pause
 verb within a block, you can set the convenient pause option:

   Twilio::Verb.say 'Your PIN is 1 2 3 4', :loop => 4, :pause => true

 Options (see http://www.twilio.com/docs/api_reference/TwiML/say) are passed in as a hash:

   Twilio::Verb.say 'The time is 9:35 PM.', :voice => 'woman'
   Twilio::Verb.say 'The time is 9:35 PM.', :voice => 'woman', :language => 'es'