用Haskell捕捉麦克风的音频输入? [英] Capturing audio input from microphone, with Haskell?
问题描述
我正在寻找一些可以轻松捕获麦克风输入的东西,也许还可以播放各种音频文件。 / p>
谢谢。
麦克风输入,也许还会播放各种音频文件。
这将取决于您的操作系统平台:标准C库在每个操作系统上都具有此功能,并且您将寻找Haskell绑定到它们(例如PulseAudio等)。查看Hackage上的Sound类别:
例如用于音频文件编写的HSndFile, http://hackage.haskell.org/package/HSoundFile
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.
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
这篇关于用Haskell捕捉麦克风的音频输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!