[Haskell-beginners] Processing data from microphone interactively
martin at vlkk.cz
Fri Oct 23 10:01:23 UTC 2015
I am looking at reading sound from a microphone and controlling some
other activity based on the sound data as they come. The motivation for
this is writing some interactive animated graphics controlled by
properties of the sound from mic.
I am using the pulseaudio-simple library to read sound from the computer
mic and that works fine. However the library function basically returns
sound samples as a list of predefined length and this is not well suited
for the kind of real-time processing I need.
I am looking for advice on what would be a good idiomatic way to design
such a program in Haskell.
>From some research I am imagining I need something like the conduit
library to connect the sound data to other parts of my program, but I am
not sure how that would work or if it is a good idea in the first place.
Or should I use some of the FRP libraries for this purpose?
Or some other approach?
I'd appreciate some advice on the direction to take.
More information about the Beginners