的Ruby / Rails音频转换插件? [英] Ruby/Rails Audio Conversion Plugins?
问题描述
我要寻找一个好的宝石/插件用户上传的音频文件转换成不同的格式。特别是我感兴趣的是一种格式转换为苹果.caf与IMA4 COM pression纳入一个iPhone应用程序。
I am looking for a good gem/plugin to convert user-uploaded audio files to different formats. One format in particular that I am interested in is converting to Apple .caf with ima4 compression for inclusion in an iPhone app.
我一直在使用afconvert在我的Mac为此,到目前为止,但我需要做它在我的Linux系统中,服务器端。理想情况下,我将能够工作到回形针。
I have been using afconvert on my mac for this so far, but I need to do it on my linux box, server-side. Ideally, I would be able to work into paperclip.
作为一个附加的解决方案,可以ffmpeg的工作,但我还没有看到它的任何.caf选项。任何人都知道一个?
As an additional solution, ffmpeg could work, but I have not seen any .caf options for it. Anybody know of one?
推荐答案
借助声音交换项目支持大量的音频文件转换。我已经在过去使用这款由OS X到AIFF文件输出转换说节目ULAW文件星号。这就产生了相当不错的文本到语音。对于我而言,我还发现在GitHub上称为 SOX-红宝石一个Ruby扩展,它封装了libsox功能直接。
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 / Rails音频转换插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!