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.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for sonos_websocket-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ee2768334dd30c9b527219b249671866109115e8512ac0c683642403d09e9ff |
|
MD5 | d02b62f96a42d7699e042b553f278224 |
|
BLAKE2b-256 | c248ea6bcac0141eed7d1d401c3ea8e48871b0208222d5e35b297adc02a7f6a6 |