class Player

Plays an audio file using an external program.

Public Class Methods

play(audio_file, player) click to toggle source
# File lib/player.rb, line 5
def self.play(audio_file, player)
   `#{player} #{audio_file} 2>&1 > /dev/null &`
end