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.0.3.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for sonos_websocket-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df7eeed1330bd8c844e66889058fe4a4181a0e6f99f694d32f718b6c96e53ea4 |
|
MD5 | 959d0404998f412bc72a645107a117d7 |
|
BLAKE2b-256 | 1f77d9eea8a851e4ef59013d647551c369f8be7ecd4af1833d3131538ae7f4e4 |