Ruby/Rails Audio Conversion Plugins

Ruby/Rails Audio Conversion Plugins?

The Sound eXchange project supports lots of audio file conversions. I've used this in the past to convert aiff files output by the OS X "say" program to ulaw files for Asterisk. This yields rather nice text-to-speech. For my purposes, I also found a Ruby extension on github called sox-ruby that wraps the libsox functions directly.

Ruby on Rails: Converting audio in background and uploading using paperclip?

delayed_job is a widely used solution for applications where you need something intensive to be done, but not right away. I would recommend it unless your user is going to need the modified file immediately.

Alternatives:

  • Resque
  • Sidekiq
  • Navvy
  • Queue Classic

For more options, see: https://www.ruby-toolbox.com/categories/Background_Jobs

controlling VST instruments from Ruby

Since you bought a VST plugin, I assume you have some sort of DAW as well. Before you start trying to host a VST from within ruby, try the following smaller projects:

  1. Generate a MIDI file from ruby. Load
    the MIDI file into your DAW, and
    play.
  2. Stream live MIDI data from your ruby
    process to your DAW. On Windows, you
    can do this with ReWire, on OSX, you
    can create an IAC bus in the Audio /
    MIDI setup app.

If you need more direct control of EZDrummer than this allows you, then go down the path of trying to host the VST from within Ruby.

Rails voice/chat plugin?

You can easily implement a chat with socky as seen today in one of the Lightin Talks by Bernard "Imanel" Potocki at Euruko conference in Krakow (Poland):

check this: http://github.com/imanel/socky_example

Convert multiple .wav to .caf

This is the script i have been using, slightly modified from another source, which kindly deserves all credit:

##
## Shell script to batch convert all files in a directory to caf sound format for iPhone
## Place this shell script a directory with sound files and run it: 'sh afconvert_wavtocaf.sh'
## Any comments to 'support@ezone.com'
##

for f in *.wav; do
if [ "$f" != "afconvert_wavtocaf.sh" ]
then
afconvert -f caff -d ima4 $f
echo "$f converted"
fi
done

Save this in a file named 'afconvert_wavtocaf.sh'. See if that does the trick.



Related Topics



Leave a reply



Submit