Async Python implementation of the Resonate Protocol.
Project description
aioresonate
Async Python library implementing the Resonate Protocol.
For a WIP reference implementation of a server using this library, see Music Assistant
CLI Client
Note: The CLI client is currently included in the
aioresonatelibrary for development purposes. Once the Resonate Protocol stabilizes, it will be moved to a separate repository and package. This will require users to uninstallaioresonate[cli]and install the new CLI package separately.
This repository includes a highly experimental CLI client for testing and development purposes.
Installation
Install from PyPI:
pip install "aioresonate[cli]"
Install from source
git clone https://github.com/Resonate-Protocol/aioresonate.git
cd aioresonate
pip install ".[cli]"
Running the CLI
resonate-cli
The CLI client will automatically connect to a Resonate server on your local network and be available for playback.
Configuration Options
Client Identification
If you want to run multiple CLI clients simultaneously, each must have a unique identifier:
resonate-cli --id my-client-1 --name "Kitchen"
resonate-cli --id my-client-2 --name "Bedroom"
--id: A unique identifier for this client (required if running multiple instances)--name: A friendly name displayed on the server (optional)
Audio Output Device Selection
By default, the CLI client uses your system's default audio output device. You can list available devices or select a specific device:
List available audio devices:
resonate-cli --list-audio-devices
This displays all audio output devices with their IDs, channel configurations, and sample rates. The default device is marked.
Select a specific audio device:
resonate-cli --audio-device 2
This is particularly useful for headless devices or when you want to route audio to a specific output.
Adjusting Playback Delay
The CLI supports adjusting playback delay to compensate for audio hardware latency or achieve better synchronization across devices.
Setting delay at startup:
resonate-cli --static-delay-ms -100
Note: Based on limited testing, the delay value is typically a negative number (e.g.,
-100or-150) to compensate for audio hardware buffering.
Adjusting delay in real-time:
While the client is running, you can use the delay command:
delay- Show current delay valuedelay <ms>- Set absolute delay (e.g.,delay -100)delay + <ms>- Increase delay (e.g.,delay + 50)delay - <ms>- Decrease delay (e.g.,delay - 25)
The synchronization will seamlessly adjust to the new delay value within a couple of seconds.
Debugging & Troubleshooting
If you experience synchronization issues or audio glitches, you can enable detailed logging to help diagnose the problem:
resonate-cli --log-level DEBUG
This provides detailed information about time synchronization. The output can be helpful when reporting issues.
Limitations & Known Issues
This client is highly experimental and has several known limitations:
- Platform Support: Only tested on Linux; macOS and Windows support untested
- Format Support: Currently fixed to uncompressed 44.1kHz 16-bit stereo PCM
- CLI User Experience: The CLI is pretty bare bones for now
- Configuration Persistence: Settings are not persistently stored; delay must be reconfigured on each restart using the
--static-delay-msoption
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioresonate-0.12.0.tar.gz.
File metadata
- Download URL: aioresonate-0.12.0.tar.gz
- Upload date:
- Size: 75.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d45b56e73a37e33cf3ba1fc3825171c957a73865ebfbe082154c4c4516d75f6
|
|
| MD5 |
ef7c94e7024372f18f1e9e0b29e2b097
|
|
| BLAKE2b-256 |
f09354694b569785bd84c2dfbd3a475896be4d621ada73bb070f8549bae137c3
|
Provenance
The following attestation bundles were made for aioresonate-0.12.0.tar.gz:
Publisher:
release.yml on Resonate-Protocol/aioresonate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioresonate-0.12.0.tar.gz -
Subject digest:
7d45b56e73a37e33cf3ba1fc3825171c957a73865ebfbe082154c4c4516d75f6 - Sigstore transparency entry: 652341581
- Sigstore integration time:
-
Permalink:
Resonate-Protocol/aioresonate@2becd626087c6fae1686a6a0431247cb5a2a4b89 -
Branch / Tag:
refs/tags/0.12.0 - Owner: https://github.com/Resonate-Protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2becd626087c6fae1686a6a0431247cb5a2a4b89 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aioresonate-0.12.0-py3-none-any.whl.
File metadata
- Download URL: aioresonate-0.12.0-py3-none-any.whl
- Upload date:
- Size: 83.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff777f04e16ac69e950eb69e2a3e0433641bd2ac605bd3ae8bca032f529f973a
|
|
| MD5 |
544399d27eccbf8b9b9bf2cf2ca1fb89
|
|
| BLAKE2b-256 |
6c1a4a405dc6bf0724e2052b0eb36660e60ea7b81144ed31f2c5016d78d19d62
|
Provenance
The following attestation bundles were made for aioresonate-0.12.0-py3-none-any.whl:
Publisher:
release.yml on Resonate-Protocol/aioresonate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioresonate-0.12.0-py3-none-any.whl -
Subject digest:
ff777f04e16ac69e950eb69e2a3e0433641bd2ac605bd3ae8bca032f529f973a - Sigstore transparency entry: 652341595
- Sigstore integration time:
-
Permalink:
Resonate-Protocol/aioresonate@2becd626087c6fae1686a6a0431247cb5a2a4b89 -
Branch / Tag:
refs/tags/0.12.0 - Owner: https://github.com/Resonate-Protocol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2becd626087c6fae1686a6a0431247cb5a2a4b89 -
Trigger Event:
release
-
Statement type: