Skip to main content

Pythonic Audio Library and Codecs Environment

Project description

palace

Palace is a Python 3D audio API wrapping around alure. To quote alure's README,

It uses OpenAL for audio rendering, and provides common higher-level features such as file loading and decoding, buffer caching, background streaming, and source management for virtually unlimited sound source handles.

Features

In some sense, what palace aimes to be to OpenAL Soft is what ModernGL is to OpenGL (except that all the heavy-lifting are taken are by alure):

  • 3D positional sound rendering
  • Environmental effects: reverb, atmospheric air absorption, sound occlusion and obstruction
  • Binaural (HRTF) rendering
  • Out-of-the-box audio decoding of FLAC, MP3, Ogg Vorbis, Opus, WAV, AIFF, etc.
  • Modern Pythonic API: snake_case, @property, with context manager, type annotation

Installation

Prerequisites

Palace requires Python 3.6+ for runtime and pip for installation.

Via PyPI

Palace can be install from the Python Package Index via simply

pip install palace

Wheel distributions are built exclusively for GNU/Linux on amd64. If you want to help packaging for other platforms, please reach out on our mailing list.

From source

Aside from the build dependencies listed in pyproject.toml, one will additionally need compatible Python headers, alure, a C++14 compiler, CMake 2.6+ (and probably git for fetching the source). Palace can then be compiled and installed by running

pip install git+https://git.sr.ht/~cnx/palace

Usage

One may start with the examples for sample usage of palace. For further information, Python's help is your friend and the API is also available for online reference.

Contributing

Our documentation contains a brief guide which may help you get started with the development. We also think that you might find our design principles appealing as well.

License and Credits

Palace is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The full list of works bundled with palace and other credits can be found in our documentation.

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

palace-0.2.4.tar.gz (372.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

palace-0.2.4-cp39-cp39-manylinux2014_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.9

palace-0.2.4-cp38-cp38-manylinux2014_x86_64.whl (10.8 MB view details)

Uploaded CPython 3.8

palace-0.2.4-cp37-cp37m-manylinux2014_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.7m

palace-0.2.4-cp36-cp36m-manylinux2014_x86_64.whl (10.6 MB view details)

Uploaded CPython 3.6m

File details

Details for the file palace-0.2.4.tar.gz.

File metadata

  • Download URL: palace-0.2.4.tar.gz
  • Upload date:
  • Size: 372.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.6

File hashes

Hashes for palace-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6fbba35987a28af242bba45b1684f2c0b4b59a738f7c3bc0eccc16e858c74dd1
MD5 99270c44f48fd87a4555aba365c76ed2
BLAKE2b-256 d1dc3b51da0d9b64a3881e911b58364b57899f88b6542c18dca072d568b437ff

See more details on using hashes here.

File details

Details for the file palace-0.2.4-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

  • Download URL: palace-0.2.4-cp39-cp39-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for palace-0.2.4-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6de04b18c0b9df8cf7889d31e270ee02c875cf1295e50a38022c7251f608ab41
MD5 e66bb088623a5b08a29d27520b59df71
BLAKE2b-256 52558a33f6d3f279cb5bb213fdccba6348304d786c7f38c384079e7a7706d0b1

See more details on using hashes here.

File details

Details for the file palace-0.2.4-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: palace-0.2.4-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.8 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for palace-0.2.4-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41ee3fdf6e99f0fa954a480aa3b3fc0d110325da5123691845cede9f05ddb485
MD5 ba0f3783f807ecff1c9a8d7344ab973f
BLAKE2b-256 d8e3fe0763f63dba5082d06acb36297369dc97e0baa000197e0fc831564b33ff

See more details on using hashes here.

File details

Details for the file palace-0.2.4-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: palace-0.2.4-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for palace-0.2.4-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddb5e07758ebaf25f9ec5ca2146f86fae16429f85ca276331393e8f310c43940
MD5 2b2d379b83f81b038b32ebce22a45fdb
BLAKE2b-256 9ae915774d8c6ee1076eeca99e1812ea46b5298626c903cc243d74a7e69cad51

See more details on using hashes here.

File details

Details for the file palace-0.2.4-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: palace-0.2.4-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 10.6 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for palace-0.2.4-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d4b80ea178562aebe94cdc872a70dfbd5379e7a5a104428f739d7415fae96f10
MD5 76c7ddb6501c74b63c79a927c5ea9b54
BLAKE2b-256 8fe7fd4dbc8090f9664f606e67a065d9ddd1fa38d83ff16434d8764371cb2ccc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page