The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[iOS] [HOW-TO] Voice Control with Siri Shortcuts
#1
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
Reply


Messages In This Thread
[iOS] [HOW-TO] Voice Control with Siri Shortcuts - by Pieter - 05-15-2019, 09:25 AM

Forum Jump: