Method: Adhearsion::CallController::Output#play
- Defined in:
- lib/adhearsion/call_controller/output.rb
- (Object) play(*arguments)
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.
63 64 65 66 67 |
# File 'lib/adhearsion/call_controller/output.rb', line 63 def play(*arguments) = arguments player.play_ssml output_formatter.ssml_for_collection(arguments), true end |