问题描述
有没有一个可以启用音频输入和输出并在Haskell内部工作的成熟库? (当然,一个漂亮的包装很好。)我正在寻找一些可以轻松捕获麦克风输入的东西,也许还可以播放各种音频文件。 / p>
谢谢。
这将取决于您的操作系统平台:标准C库在每个操作系统上都具有此功能,并且您将寻找Haskell绑定到它们(例如PulseAudio等)。查看Hackage上的Sound类别:
例如用于音频文件编写的HSndFile,
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.
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捕捉麦克风的音频输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!