How to play an AIFF sound file using Erlang?

2019-08-06 08:18发布

问题:

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.