Python library for accessing the Libao API
Project description
pyao
Python libao interface.
Overview
PyAO is a Python wrapper for libao. It provides a simple interface for playing audio data.
Installation
pip install pylibao
Usage
Here is a simple example:
import pyao
pyao.init()
preset = pyao.presets.FMT_B16C2R44100LE
with pyao.AO.open_live(pyao.get_default_driver_id(), preset) as ao:
ao.play(b'\x00\x01\x02\x03') # play data
pyao.shutdown()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylibao-0.1.3.tar.gz
(7.3 kB
view details)
File details
Details for the file pylibao-0.1.3.tar.gz
.
File metadata
- Download URL: pylibao-0.1.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 700f8076ce219dfa753a3949077f506be143bcfa8dbfcc6b4a294e8bd5e9e0fb |
|
MD5 | 4ab1768c3adedf7568bc25dd352d1020 |
|
BLAKE2b-256 | a0b393c9e8448f4631159a79c263fd35b94e1c11ef645d2a69397694f564a2d6 |