我一直在使用Audiolab来导入声音文件,它工作得很好。但是:将声音文件导入Python作为NumPy数组(替代audiolab)
- 它不支持某些格式,如MP3,因为libsndfile refuses to support them
- 它doesn't work in Python 2.6 under Windows底层,笔者不在身边解决它
-
In [2]: from scikits import audiolab
--------------------------------------------------------------------
ImportError Traceback (most recent call last)
C:\Python26\Scripts\<ipython console> in <module>()
C:\Python26\lib\site-packages\scikits\audiolab\__init__.py in <module>()
23 __version__ = _version
24
---> 25 from pysndfile import formatinfo, sndfile
26 from pysndfile import supported_format, supported_endianness, \
27 supported_encoding, PyaudioException, \
C:\Python26\lib\site-packages\scikits\audiolab\pysndfile\__init__.py in <module>()
----> 1 from _sndfile import Sndfile, Format, available_file_formats, available_encodings
2 from compat import formatinfo, sndfile, PyaudioException, PyaudioIOError
3 from compat import supported_format, supported_endianness, supported_encoding
ImportError: DLL load failed: The specified module could not be found.``
所以我想要:
- 弄清楚为什么它不是在2.6(有毛病_sndfile.pyd?),也许工作找到一种方法来扩展它不支持的格式工作
- 查找AUDIOLAB的完全更换
这个问题是特定于窗口上的Python 2.6(即你不会看到它在Python 2.5)。我还没有找到一种方法来解决它 – 2010-07-22 08:55:07
而且我最终花了两次航班之间的时间,最终成为了一个名字错误。我发布了一个新的0.11.0版本,它应该解决这个问题。 – 2010-07-23 13:00:10
David,你已经在audiolab中制作了一个很棒的工具!我经常使用它。谢谢。 – 2010-07-25 02:27:58