A Python library that makes playing audio simple.
Project description
pypat
pypat is a Python library that makes playing audio simple. pypat uses FFmpeg to provide robust support for virtually any audio format and SDL2 to play back audio.
Prerequisites
Install Prerequisites before installing.
Install
pip3 install pypat
Example
>>> import pypat
# Play a file
>>> pypat.play('amerika.mpga')
# Play a file asynchronously
>>> pypat.play_async('amerika.mpga')
# Skip the current file
>>> pypat.skip()
# Pause audio playback
>>> pypat.pause()
# Resume audio playback
>>> pypat.resume()
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
pypat-0.2.1.tar.gz
(22.6 kB
view hashes)