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.2.tar.gz
(7.3 kB
view hashes)