Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created April 20, 2009 22:33
Show Gist options
  • Select an option

  • Save coderberry/98810 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/98810 to your computer and use it in GitHub Desktop.
eric-berrys-macbook:voiceverify berry$ ./script/console
Loading development environment (Rails 2.3.2)
>> t = Paperclip::Audio
=> Paperclip::Audio
>> t = Paperclip::Audio.new(File.open("/Users/berry/Desktop/01.wav"))
=> #<Paperclip::Audio:0x2a7126c @attachment=nil, @convert_options=nil, @file=#<File:/Users/berry/Desktop/01.wav>, @basename="01", @options={}, @format="mp3", @current_format=".wav">
>> t.make
MADE IT HERE!!!!!!
sox /Users/berry/Desktop/01.wav /var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3
=> #<File:/var/folders/EQ/EQCcBJUiHaGqDrTgKsjAw++++TI/-Tmp-/01,2097,0.mp3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment