05-15-2019, 09:25 AM
(This post was last modified: 05-15-2019, 09:29 AM by Pieter.
Edit Reason: Formatting
)
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:
We will be setting up a voice-controlled shortcut to start the music on our moOde install.
1. Create a new shortcut:
2. Search for SSH in the search bar at the bottom of the screen and select it:
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:
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.
5. Name your shortcut and give it an icon:
While still in the settings menu, choose a name, colour and icon for your shortcut.
Other useful commands:
"Pause the music":
"Play the previous track":
"Skip this track":
"Mute the music"
"Play my favourites":
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:
- Shortcuts app
- iOS 12- & Siri-enabled device
We will be setting up a voice-controlled shortcut to start the music on our moOde install.
1. Create a new shortcut:
2. Search for SSH in the search bar at the bottom of the screen and select it:
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.
5. Name your shortcut and give it an icon:
While still in the settings menu, choose a name, colour and icon for your shortcut.
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