首页下载资源移动开发python封装的ALSA库源码及示例

ZIPpython封装的ALSA库源码及示例

baidu_1627115940.88KB需要积分:1

资源文件列表:

pyalsaaudio-master.zip 大约有25个文件
  1. pyalsaaudio-master/
  2. pyalsaaudio-master/.gitignore 80B
  3. pyalsaaudio-master/CHANGES 2.62KB
  4. pyalsaaudio-master/LICENSE 2.47KB
  5. pyalsaaudio-master/MANIFEST.in 137B
  6. pyalsaaudio-master/NOTES.md 386B
  7. pyalsaaudio-master/README.md 2.28KB
  8. pyalsaaudio-master/TODO 104B
  9. pyalsaaudio-master/alsaaudio.c 71.12KB
  10. pyalsaaudio-master/doc/
  11. pyalsaaudio-master/doc/Makefile 2.26KB
  12. pyalsaaudio-master/doc/README.md 498B
  13. pyalsaaudio-master/doc/conf.py 4.86KB
  14. pyalsaaudio-master/doc/index.rst 756B
  15. pyalsaaudio-master/doc/libalsaaudio.rst 21.89KB
  16. pyalsaaudio-master/doc/pyalsaaudio.rst 4.43KB
  17. pyalsaaudio-master/doc/terminology.rst 3.15KB
  18. pyalsaaudio-master/isine.py 2.72KB
  19. pyalsaaudio-master/mixertest.py 3.71KB
  20. pyalsaaudio-master/play_rusage.py 540B
  21. pyalsaaudio-master/playbacktest.py 1.37KB
  22. pyalsaaudio-master/playwav.py 1.53KB
  23. pyalsaaudio-master/recordtest.py 1.94KB
  24. pyalsaaudio-master/setup.py 1.41KB
  25. pyalsaaudio-master/test.py 4.02KB

资源介绍:

python封装的ALSA库源码及示例。
# PyAlsaAudio For documentation, see http://larsimmisch.github.io/pyalsaaudio/ > Author: Casper Wilstrup (cwi@aves.dk) > Maintainer: Lars Immisch (lars@ibp.de) This package contains wrappers for accessing the [ALSA](http://www.alsa-project.org/) API from Python. It is currently fairly complete for PCM devices, and has some support for mixers. If you find bugs in the wrappers please open an issue in the issue tracker. Please don't send bug reports regarding ALSA specifically. There are several bugs in the ALSA API, and those should be reported to the ALSA team - not me. This software is licensed under the PSF license - the same one used by the majority of the python distribution. Basically you can use it for anything you wish (even commercial purposes). There is no warranty whatsoever. # Installation ## PyPI To install pyalsaaudio via `pip` (or `easy_install`): ``` $ pip install pyalsaaudio ``` ## Manual installation *Note:* the wrappers need a kernel with ALSA support, and the ALSA library and headers. The installation of these varies from distribution to distribution. On Debian or Ubuntu, make sure to install `libasound2-dev`. On Arch, install `alsa-lib`. When in doubt, search your distribution for a package that contains `libasound.so` and `asoundlib.h`. First, get the sources and change to the source directory: ``` $ git clone https://github.com/larsimmisch/pyalsaaudio.git $ cd pyalsaaudio ``` Then, build: ``` $ python setup.py build ``` And install: ``` $ sudo python setup.py install ``` # Using the API The API documentation is included in the doc subdirectory of the source distribution; it is also online on [http://larsimmisch.github.io/pyalsaaudio/](http://larsimmisch.github.io/pyalsaaudio/). There are some example programs included with the source: * [playwav.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playwav.py) plays back a wav file * [playbacktest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/playbacktest.py) plays back raw sound data read from stdin * [recordtest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/recordtest.py) captures sound from the microphone and writes it raw to stdout. * [mixertest.py](https://github.com/larsimmisch/pyalsaaudio/blob/master/mixertest.py) can be used to manipulate the mixers.
100+评论
captcha