Skip to content

Niamorro/audiobackend

Repository files navigation

audiobackend

A high-quality audio playback library for Python with DSD support and efficient buffer management.


Tests Coverage Python License PyPI version Downloads


Features

  • High-quality audio playback with various formats support (MP3, WAV, FLAC, DSD)
  • Efficient buffer management for optimal memory usage
  • Automatic sample rate detection and resampling
  • Thread-safe implementation
  • Simple and intuitive API

Installation

pip install audiobackend

Requirements

  • Python 3.7 or higher
  • FFmpeg (required by PyAV)

System Dependencies

Ubuntu/Debian:

sudo apt update
sudo apt install libportaudio2 libportaudiocpp0 portaudio19-dev

macOS:

brew install ffmpeg portaudio

Windows:

  • FFmpeg and PortAudio are included in the package dependencies

Quick Example

from audiobackend import AudioBackend

player = AudioBackend()
player.load_file("music.mp3")
player.play()

Documentation

For detailed information about usage, API reference, and advanced features, visit our documentation.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.