Skip to main content

An asynchronous Python library to communicate with Sonos devices over websockets.

Project description

sonos-websocket

Async Python library to communicate with Sonos devices over websockets.

Example use: Audio Clips

Sonos audio clip functionality will overlay playback of the provided media on top of currently playing music. The music playback volume will be lowered while the audio clip is played and automatically returned to its original level when finished. This feature is especially useful for text-to-speech and alert sounds.

The below shows how to run sonos-websocket as a script:

python -m sonos_websocket \
    --ip_addr 192.168.1.88 \
    --uri https://freetestdata.com/wp-content/uploads/2021/09/Free_Test_Data_100KB_MP3.mp3 \
    --volume 15

Basic use of how to integrate the package can be found here.

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

sonos_websocket-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

sonos_websocket-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file sonos_websocket-0.2.0.tar.gz.

File metadata

  • Download URL: sonos_websocket-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sonos_websocket-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b272943bcc07b2f16f8ca1d8221a16e969c26a4b08f97512c3f64463921367c0
MD5 01bf742afc6b99bdec7c944fce0fe51a
BLAKE2b-256 d1d67a0d223ccc1d9b3aa892856a5cd219743e28bcc8b569fd5c6f579bde4f27

See more details on using hashes here.

File details

Details for the file sonos_websocket-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sonos_websocket-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6984df420612751e5a62a9942cab7614d5291c04957ffeb096e67ca788c29e39
MD5 4eeba81d7b511d2b02b0977a19da242b
BLAKE2b-256 556a2fba124551b9cb63fbb59d3b879a2ff646a3f791ce2d785152517f422ce3

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