2

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.

N3sh
  • 881
  • 8
  • 37
  • I suppose there is no cross-platform solution for this task. What OS do you want to play a sound on? – Dmitry Belyaev Mar 04 '13 at 10:16
  • On Ubuntu you may use PulseAudio to play sounds. But you'll need to write erlang port program or driver to do that. I haven't found any existing out there. – Dmitry Belyaev Mar 04 '13 at 11:43

1 Answers1

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.

Palas
  • 13
  • 3