Skip to content

Instantly share code, notes, and snippets.

@heftig
Created December 2, 2011 22:16
Show Gist options
  • Save heftig/1425077 to your computer and use it in GitHub Desktop.
Save heftig/1425077 to your computer and use it in GitHub Desktop.
require 'java'
url = Java::JavaNet::URL.new("file:///usr/share/sounds/alsa/Front_Center.wav")
clip = Java::JavaApplet::Applet.newAudioClip(url)
clip.play
sleep 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment