views:

124

answers:

2

Is there a mature library that could enable audio input and output and work within Haskell? (A nice wrapper is fine, of course.)

I'm looking for something that can easily capture microphone input and, perhaps, play various audio files as well.

Thanks.

A: 

Just in case you're not familiar with hackage: http://hackage.haskell.org/packages/archive/pkg-list.html

It looks like there is some audio-related stuff there. Not sure if there is anything that will meet your needs. But most "mature" haskell libraries will be there.

jberryman
+1  A: 

easily capture microphone input and, perhaps, play various audio files as well..

It will strongly depend on your OS platform: there are standard C libraries for this functionality on each OS, and you'll be looking for Haskell bindings to them (e.g. PulseAudio, etc). Look in the Sound category on Hackage:

E.g. HSndFile for audio file writing, http://hackage.haskell.org/package/HSoundFile

Don Stewart