Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Apr 2015

    Control your music with Siri and Shortcuts

    Control your music with Siri and Shortcuts

    Music Control Import

    You can call the Shortcut via Siri or the Shortcuts App.
    The following commands will be interpreted. The order of the complete spoken command is not relevant, but you'll always have to add the name of the SB you want to react.
    • Play
    • Stop
    • Pause (no toggling)
    • Sleep (end of track)
    • On/Off
    • Shuffle [End] (title)
    • Repeat [End] (alle titles)
    • Next/Previous
    • Up/Down (volume up/down)
    • Volume n (n>12?: since Siri writes numbers as words, if they are small enough. And I didn't want to parse those little rascals.)
    • Artist <Artist> loads everything of the named artist
    • Playlist <Name> (Loads the named playlist if it's in the default path.)
    • Presets <One, Two, ..., Ten>

    • "Artist Foreigner Kitchen"
    • "Patio Playlist The Who" (Blanks in names are working.)
    • "Bathroom Shuffle"
    • "Repeat Boom End" (repeat off)

    Preparations after importing
    Change the following to your needs:
    • rename the shortcut
    • IP-Address and Port in the first Text field
    • Names and MAC addresses of your SBen
    • the spoken commands
    • the relative change of the volume of +-10

    • SB names and commands must consist of one single word. Everything else is considered as data.
    • This Shortcut actually plays just all titles of the given artist. There is no code to parse genre or album names.
    • Every word of the spoken command will be considered as one of the following: name, command (bothe single words) and the rest as data. There takes no filtering of filling words like prepositions place.
      „Playlist Leonard Cohen Live in Parterre“ would lead to:
      <Parterre-MAC> playlist play „Leonard Cohen Live in.m3u“
    • Ambigous terms won't work: if a SB is named Grey, an artist or a playlist named either, won't be played. There is no check for consistency, or so.
    • The Data Must Be Written With Leading Capitals: „Simon And Garfunkel“, but not „Simon and Garfunkel“. You'll have to either change the names in your system or adapt the Code of this Shortcut to your needs.
    • You can only call playlists that are stored in the default playlists path. Slashes in pathes were always escaped by design:
      /media/playlists -> \/media\/playlists
      I have no clue, how to avoid this.

    Feel free to take this Shortcut as a start and expand it to your needs.
    If you have any questions, I'll try to help. But don't expect me to extend it. Altering the code by shifting blocks all over the screen sometimes was a PITA. :-)

    Since I usually don't write instructions, let alone in English, I would feel happy about your feedback, if something is unclear.

  2. #2
    Senior Member
    Join Date
    Feb 2011
    Cheshire, UK
    Heads up.

    To install the import you need to "Allow Untrusted Shortcuts"

    Settings / Shortcuts then Allow Untrusted Shortcuts

    Note. The setting is not available until you have created and run at least one shortcut.
    VB2.4 storage QNAP TS419p (NFS)
    Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
    Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
    Dining Room SB Boom
    Kitchen UE Radio (upgraded to SB Radio)
    Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
    Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
    Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
    Everything controlled by iPeng & Material on iOS

  3. #3
    Senior Member
    Join Date
    Apr 2015
    Thanks @d6jg! I should have mentioned it.
    But honestly I totally forgot about the first you’ll have to tackle.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts