Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page