Search the Community
Showing results for tags 'sonos'.
Found 3 results
I've whipped up a little workflow which will allow you to send TTS (Text to Speech) phrases to various Sonos devices (assuming you have more than one). I primarily use it to send messages to my kids room telling him to clean up. Directions are available at the GitHub Repo. The plugin works by using lame and say to generate an .mp3 file (called tts.mp3) which is stored somewhere on a sonos accessible path (such as //imac/share). Once the file is generated the plugin utilizes SoCo (a python lib) to tell sonos to play the mp3 file. You can get the latest release at : https://github.com/jeeftor/AlfredSonosTTS/releases I've only tested it with my setup Play1,Play3,Amp and it works on all these devices.
I was hoping to find a playback controller for the Sonos desktop app but only found Jeff Johns's "Sonos Sound Controls" workflow, which unfortunately only offered volume control hotkeys. I tend to do a lot of playback control using keywords, so I set some up for Alfred. I'm an AppleScript noob, and Sonos doesn't really support AppleScript, so this was kind of a pain, and pretty hacky. There were some useful posts from 2008, but otherwise, I was kind of stabbing in the dark. Download here. There's support for the following commands using the 'sonos' keyword: search, play/pause, next track, previous track, volume up/down, and mute. Feedback and suggestions welcomed.