Ruby AudioGlue - audio template engine (like ERB, but for audio!)

greyblake · 2013年11月26日 · 最后由 suupic 回复于 2013年11月27日 · 2461 次阅读

Hi! Working on my project I faced a problem: I needed to concatenated audio snippets(local or remote) to get final audio output and to play it to customer. I've decided to make the solution flexible and reusable, and as result I got something similar to ERB, based on ruby DSL: https://github.com/TMXCredit/audio_glue

Thanks!

想起了 TTS 转语音…… It reminded me of TTS.

Only mp3? Are there other formats?

Awesome!

It's so cool!

好东西吗,也许用得着,先收藏下,中午研究下

Only mp3? Are there other formats?

No. It can be everything. The main thing is to implement adapter which would support all formats that you need. We've implemented an adapter based on SoX unix tool which supports pretty many formats: https://github.com/TMXCredit/audio_glue-sox_adapter

#6 楼 @greyblake sox? awesome! Can we create some effect like "robotic voice" or "female voice" with it?

sox? awesome! Can we create some effect like "robotic voice" or "female voice" with it?

The adapter I created doesn't support such effects.Actually, it's out of domain of that gem. But, I've created a ruby wrapper for SoX, you can use just it to apply any sox effect from ruby: https://github.com/TMXCredit/ruby-sox . So, sure, you can combine AudioGlue and ruby-sox to achieve your goals)

需要 登录 后方可回复, 如果你还没有账号请 注册新账号