Method: Adhearsion::CallController::Output#play
- Defined in:
- lib/adhearsion/call_controller/output.rb
#play(*outputs, options) ⇒ Object
Plays the specified sound file names. This method will handle Time/DateTime objects (e.g. Time.now), Fixnums (e.g. 1000), Strings which are valid Fixnums (e.g “123”), and direct sound files. To specify how the Date/Time objects are said pass in as an array with the first parameter as the Date/Time/DateTime object along with a hash with the additional options. See play_time for more information.
100 101 102 103 104 105 106 107 |
# File 'lib/adhearsion/call_controller/output.rb', line 100 def play(*outputs, ) = outputs, ssml = output_formatter.ssml_for_collection(outputs) || return player.play_ssml ssml, true rescue NoDocError false end |