Moode Forum
[iOS] [HOW-TO] Voice Control with Siri Shortcuts - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9)
+--- Thread: [iOS] [HOW-TO] Voice Control with Siri Shortcuts (/showthread.php?tid=1388)



[iOS] [HOW-TO] Voice Control with Siri Shortcuts - Pieter - 05-15-2019

With iOS 12, Apple extended the capabilities of its Shortcuts app by integrating it with Siri. We can use our voice to send commands over SSH to our moOde players.
This is a quick demonstration tutorial on how to set up the app to send basic control commands but much more can be done.

Requirements: Setting up a command:
We will be setting up a voice-controlled shortcut to start the music on our moOde install.

1. Create a new shortcut:

[Image: IMG-0183.jpg]
[Image: IMG-0184.png]

2. Search for SSH in the search bar at the bottom of the screen and select it:

[Image: IMG-0185.png]

3. Give the shortcut the information it needs to set up a SSH connection:

Host: the ip-address of your moOde player or its network name
User: pi
Password: the password you set for the pi user

In the script field, type this:
Code:
mpc play

At this point you can run the shortcut to test whether it works.

4. Set up voice control:

In the top right, tap the slider button to open your shortcut's settings. Tap "Add to Siri". Record a phrase that Siri will interpret as your shortcut. I picked "Play some music".
Note: Siri Shortcuts override Siri's native controls. Were it not for the shortcut, my phrase would have Siri play some music from Apple Music on my iPhone's Music app. 
[Image: IMG-0189.png]
[Image: IMG-0188.png]
5. Name your shortcut and give it an icon:

While still in the settings menu, choose a name, colour and icon for your shortcut.

[Image: IMG-0186.png]


Other useful commands:

"Pause the music":
Code:
mpc pause

"Play the previous track":
Code:
mpc prev

"Skip this track":
Code:
mpc next

"Mute the music"
Code:
/var/www/vol.sh mute

"Play my favourites":
Code:
mpc clear
mpc load "Favorites"
mpc play



RE: [iOS] [HOW-TO] Voice Control with Siri Shortcuts - TheOldPresbyope - 05-15-2019

@Pieter

+1

I confess I had a little trouble navigating all your screen captures (I'm a lexical kinda guy) but this worked first time on my iPad.

Regards,
Kent