How to play an AIFF sound file using Erlang?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:34:05

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/15199075/how-to-play-an-aiff-sound-file-using-erlang

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!