title: how do I play mp3 file?
body: <p>How can I write a script in ruby which plays mp3 file (background-music) when executed from command-line?</p>
  
  <p>I tried this</p>
  
  <pre><code>run = "mplayer #{"/Users/bhushan/resume/m.mp3"} -ao sdl -vo x11 -framedrop -cache 16384 -cache-min 20/100"
  system(run)
  </code></pre>
  
  <p>but it is not working also, above is player specific. what if user don't have mplayer installed. Id there a better way?</p>