如何使用Erlang播放AIFF声音文件? [英] How to play an AIFF sound file using Erlang?
本文介绍了如何使用Erlang播放AIFF声音文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种使用Erlang播放AIFF文件的方法。
I am trying to look for a way to play an AIFF file using Erlang.
我发现这个教程,但是它似乎只是关于读取文件的内容而不是真正播放它。
I have found this tutorial, but it seems to be only about reading the content of the file and not actually playing it.
推荐答案
我建议使用linux命令用os:cmd或ports来播放。这是非常特别的,但它不是一个非常不寻常的命令,它可能会做的伎俩。
I suggest using the linux command "play" with "os:cmd" or "ports". It is quite ad-hoc but it is not a very uncommon command and it may do the trick.
这篇关于如何使用Erlang播放AIFF声音文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文