Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- require 'rubygems'
- require 'earworm'
- song_file = ARGV.first
- unless song_file
- puts 'song file needed'
- exit
- end
- ear = Earworm::Client.new(YOUR_MUSICDNS_KEY)
- p ear.identify(:file => song_file)
Add Comment
Please, Sign In to add comment