[CM] Snd and Ruby

Bill Schottstaedt bil at ccrma.Stanford.EDU
Thu, 10 Jan 2008 16:06:06 -0800


> What would it take to be able to call 'snd' from within a ruby script.. 
>
> Specifically I would like to be able to normalize uploaded wav files to 
> 8khz 8bit mono PCM format wav files from my Rails application. 

As Mike says, if you build Snd --with-no-gui, you get a scriptable
command-line style program (described in grfsnd.html).  But if
you want to avoid the Snd call, perhaps you could load the sndlib
library into ruby, instead.  You'd have to write the normalization
code using its functions.