Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pataudiotechnician-0.0.1.tar.gz (18.7 kB) Copy SHA256 Checksum SHA256 Source Oct 8, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting