Skip to main content

A Python library that makes playing audio simple.

Project description

pypat

pypi cicd

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')

# Skip the current file
>>> pypat.skip()

# Pause audio playback
>>> pypat.pause()

# Resume audio playback
>>> pypat.resume()

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

pypat-0.6.1.tar.gz (33.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page