Skip to main content

Version 0.3 of SoCo-CLI, the open source Sonos command line controller for Windows, macOS and Linux, is now available:

https://github.com/avantrec/soco-cli/blob/v0.3.5/README.md

This release adds an Interactive Shell Mode, and also provides an API to allow the use of SoCo-CLI as a simple, high level library for inclusion in other Python programs.

For those of us who enjoy using the command line to get things done, the interactive shell is fast and convenient to use. The shell is started using sonos -i, then just type ? for available commands. Most of the huge range of SoCo-CLI control commands are available:

https://github.com/avantrec/soco-cli/blob/v0.3.5/README.md#interactive-shell-mode

That’s really brilliant. Thank you so much.

For Windows, I had to comment out the line where it tries to import the termios module in keystroke_capture.py (as windows doesn’t have this). Everything seems to work as expected.


That’s really brilliant. Thank you so much.

For Windows, I had to comment out the line where it tries to import the termios module in keystroke_capture.py (as windows doesn’t have this). Everything seems to work as expected.

Thanks for the feedback. I’ll fix the termios import — thanks for reporting it.


Thanks for the feedback. I’ll fix the termios import — thanks for reporting it.

Just FYI: the ‘single keystroke’ shell feature (that requires termios on Unix-y systems) is now also supported under Windows, in v0.3.19 upwards.

https://github.com/avantrec/soco-cli/tree/v0.3.19#single-keystroke-mode

As the name implies, it’s handy for controlling Sonos with just a single touch of the keyboard. For example, I can assign a one-character alias to an action or series of actions, then invoke with a single keypress.