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
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:
- Generate a MIDI file from ruby. Load
the MIDI file into your DAW, and
play. - 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.
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
Regex to Check Alphanumeric String in Ruby
How to Use Omniauth to Make Authenticated Calls to Services
How to Downgrade My Rails Version
Obtaining Number of Block Parameters
Typeerror: Can't Convert Net::Httpok into String
Permission Error When Trying to Install Rails (Osx)
Why Are Global Methods Allowed to Be Defined Outside of a Class in Ruby
In Ruby, How to Be Warned of Duplicate Keys in Hashes When Loading a Yaml Document
Ruby on Rails Private Link Sharing: Google Docs Style
How Does String.Unpack Work in Ruby
Rails/Postgres, 'Foreign Keys' Stored in Array to Create 1-Many Association
Make Headless Browser Stop Loading Page
Using Ruby with Mechanize to Log into a Website
Many to Many Table with an Extra Column in Rails
Do I Need to Install Passenger as a Regular Gem Even Though My App Uses Bundler