Skip to main content

PAT Audio Technician (PAT)

Project description

# PAT Audio Technician (PAT)
PAT is a Python library used to play audio files. If you have audio files and want to play them using
Python, PAT the Audio Technician is at your service.

## How does it work?
PAT uses ffmpeg for audio decoding and resampling. SDL is used to play audio using the sound card.
Everything is written in C, but the Python C Extension interface allows PAT to be used through the
CPython interpreter.

## How do I install it?
1. Install Python
2. Install ffmpeg
3. Make sure the ffmpeg shared libraries (.dll/.so) are available for linking with PAT (On Linux,
this means that they are in a shared library location. On Windows, this means that they are on
the PATH.)
4. Install pataudiotechnician using PIP

## How do I use it?
PAT is currently under very active development, and the API WILL BREAK on occasion; however, one
can currently play audio files.
>>> import pat

# Queue an Audio File for Playback
>>> pat.queue('deerdance.m4a')

# Find Out How Many Bytes are Queued in the Audio Buffer
>>> len(pat)

# Stop Playback
>>> pat.stop()

## Can PAT be used with programming languages other than Python?
All of the Python-specific code is just a wrapper, so porting PAT would be relatively easy. If
you are using C/C++, you can use the functions declared in pat.h and link with ffmpeg. Any other
programming languages can use the Python wrapper as a guide for porting efforts.

## Licensing Considerations
You must link against an LGPL version of ffmpeg if you wish to bound by the terms of the LGPL.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pataudiotechnician-0.0.1.tar.gz (18.7 kB) Copy SHA256 hash SHA256 Source None Oct 8, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page