How To: Use Siri to Play Spotify Music & Start Playlists

How To: Use Siri to Play Spotify Music & Start Playlists
With the Shortcuts app, you can build workflows to automate complex tasks, most of which can be activated with a simple, customized Siri command. You can download videos from Instagram and open links in Chrome instead of Safari with just your voice, for instance. But a more popular discovery is using Siri to control music streaming apps like Spotify, not just Apple Music.Being able to use Siri to control Spotify music has been wanted for some time by Spotify users. Right now, all you can do is open the Spotify app, then pause and skip tracks after you start play manually, and Spotify knows this. Yet, it still has no immediate plans to use either SiriKit or the Shortcuts API to enable Siri access to the Spotify app. Instead, it spent more time on its own in-app Spotify Voice tool.Spotify Voice is not as cool as using Siri, so Reddit user fernix96 (Lorenzo Ferrante) created his own shortcut for iOS 12 that lets you use Siri to play a track or playlist on Spotify. He plans on turning this into a full app called Shortify, so be on the look out for that. In the meantime, if you're on team Spotify and are interested in setting up this shortcut on your iPhone, follow along below. Just be warned, there's some work involved, so familiarity with the Shortcuts app will come in handy.Don't Miss: How to Use the Shortcuts App for Custom Siri Actions Before going any further, make sure you have the most up-to-date version of Shortcuts available, currently 2.1.2, as well as the latest version of iOS 12. If you don't, you might get the "Sorry, there was a problem with the app" response from Siri when trying to play Spotify songs or playlists.

Step 1: Log into Spotify for DevelopersThis may seem like an odd requirement, but to make Siri control Spotify, you'll need a Spotify for Developers account. Dev accounts for Spotify are free, and you'll need it because you need to connect the script in a future step with a few items from your dev account to make this all work.In your web browser of choice, visit developer.spotify.com/dashboard on your iPhone, then choose the "Log In" option. You don't need to create a separate dev account — just sign in with your existing Spotify free or premium account. Once you sign in, accept the terms of service, and your developer account is ready to go. (Note, if you have issues accepting the terms in Safari, try another browser.)

Step 2: Create an App in Spotify for DevelopersIn your Spotify for Developers account, go to Dashboard from the menu if you're not already there, then tap on "Create a Client ID." Enter any name and description for the application, something that describes what it will do, then check the "Mobile App" box. Hit "Next," select "No" for commercial integration, then hit "Submit" after agreeing to the three options.

Step 3: Install & Rename the Shortify ShortcutStepping away from the Spotify for Developers account for a second, install Ferrante's shortcut called "Shortify2" (it's the second version of his workflow). You won't find this by browsing or searching the "Gallery" in the Shortcuts app, so follow the link below to get it.Shortcuts Link: Shortify2 (free) The link will open up Shortify2's info page in Shortcuts. Tap "Get Shortcut" to install it. Next, go to the "Library" tab, then either 3D Touch on it or tap the ellipsis (•••) to open up the shortcut editor. Tap on the "Settings" icon in the top right, then "Name," and change it to just "Shortify," which will be used to link the script necessary with this shortcut. Hit "Done" when finished.

Step 4: Install ScriptableFor this whole process to work, you'll need a little bit of JavaScript to connect the Shortcuts app with the app you made in your Developer for Spotify account. So, you'll need an app that lets you edit and save JavaScript, and Scriptable is a fine choice.App Store Link: Scriptable (free)

Step 5: Create a New ScriptThat might sound intimidating if you don't know any JavaScript, but you don't have to worry. Ferrante did all the leg work with his Shortify.js file, and all you need to do is visit its GitHub page and copy the whole script. For your convenience, you may also copy his script from below. // Base64 encoding of your credentials
let clientID = '<your client id>'
let clientSecret = '<your client secret>'
let cred = clientID + ':' + clientSecret
let credEncoded = Data.fromString(cred).toBase64String()
let auth = 'Basic ' + credEncoded

// Get token
let tokenURL = 'https://accounts.spotify.com/api/token'
var reqToken = new Request(tokenURL)
reqToken.method = 'POST'
reqToken.body = 'grant_type=client_credentials&undefined='
reqToken.headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': auth
}

let res = await reqToken.loadJSON()
let token = res['access_token']
let auth2 = 'Bearer ' + token

// Params
var q = encodeURI(URLScheme.parameter('query'))
var t = URLScheme.parameter('type')

let endpoint = 'https://api.spotify.com/v1/search?q=' + q + '&type=' + t
let method = 'GET'
let headers = {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': auth2
}

// Make the request
let req = new Request(endpoint)
req.method = method
req.headers = headers

// Get the track URL
let json = await req.loadJSON()

var finalURL = ''
if (t == 'track') {
finalURL = json['tracks']['items'][0]['external_urls']['spotify']
} else {
finalURL = json['playlists']['items'][0]['external_urls']['spotify']
}

// Open the track on Spotify
Safari.open(finalURL) Once you've copied the script to your clipboard, open up the Scriptable app, tap the plus (+) icon to start a new script, then paste the Shortify.js text inside it. Tap on "Untitled Script" up top and rename it "Shortify" so that it works with the Shortify shortcut from earlier. Hit "Rename" to finalize it. We're not done yet, since we need to change a few things in the script.

Step 6: Copy Info from Your Dev DashboardGo back to developer.spotify.com/dashboard in your browser, find the Spotify app you created earlier, tap on it, and copy its "Client ID." You'll be pasting this ID into the Shortify script you're making. You'll also need to copy the "Client Secret" identifier, but you can only copy one thing at a time.

Step 7: Save Script with Client ID & Client SecretGo back to the Shortify script in Scriptable, then find <your client id> on the second line. Highlight <your client id>, including the angle brackets, then paste your "Client ID" over top of it. Next, go back to Step 6, tap "Show Client Secret," and copy the digits there. Come back here in Scriptable and paste it over top <your client secret>. Tap on "Done" in the top left to save it.

Step 8: Choose Either Track or Playlist in ShortcutsUnfortunately, this shortcut we're making can only listen for either a track or a playlist; it can't listen for both. So edit the Shortify shortcut in the Shortcuts app again, and enter either "track" or "playlist" into the second Text box in the workflow, right below the second Comment box.If you have a premium Spotify account, you can choose "track" so you can you play a specific song right away using the shortcut. However, for "playlist," which works for both premium and free Spotify accounts, it will just open up the playlist in Spotify, not start playing right away. I have premium, so I chose to search for tracks, which is the default, because that broadens my options in Spotify. You can always go back and switch "track" for "playlist" if you're so inclined. You could also duplicate this entire shortcut with a different name and Siri command (the Siri command is coming up in the next step) so that you can search for both songs and playlists without having to edit the command.

Step 9: Add a Siri CommandFinally, you must add a Siri command to make this all work. So while still editing your Shortify shortcut's workflow, tap the "Settings" icon just like you did when changing the shortcut's name. Next, tap "Add to Siri," then "Type Phrase" to set the Siri command you want to use. You can go with anything, although something simple like "Search Spotify" should do the trick. When ready, tap "Done" three times in succession to save and exit the workflow. You're done here!

Step 10: Use Siri to Play Music on SpotifyNow it's time to test out all your hard work. Open up Siri how you normally would, whether it's with "Hey Siri" or the Side or Home button shortcut, then say your Siri phrase from the previous step. Siri will ask you what you'd like to hear, then the "Dictate Box" will open in Shortcuts. Say either a song or playlist name, depending on which route you went when setting the shortcut up.The shortcut will quickly reroute to the Shortify.js script which will use Safari to connect to your dev app and use a URL scheme to open Spotify and play the song or playlist you asked for. For playlists, it will only open the most popular public playlist closest to the title you mentioned, so you can't actually open your own playlists. That's just another reason why the "track" option is the most useful. If you've created the Shortify shortcut here and had issues, or have any other questions, feel free to drop a comment down below. We'll try to help you troubleshoot any problems you ran into.Don't Miss: Calculate Tips Faster on Your iPhone Using the Shortcuts AppFollow Gadget Hacks on Pinterest, Reddit, Twitter, YouTube, and Flipboard Sign up for Gadget Hacks' daily newsletter or weekly Android and iOS updates Follow WonderHowTo on Facebook, Twitter, Pinterest, and Flipboard
Cover photo by Justin Meyers/Gadget Hacks; Screenshots by Nelson Aguilar/Gadget Hacks



So as like iPhone, you can hide app, but can't delete built-in Apple Watch app. in addition, you can do remove third-party Apple watch apps. Therefore, If you are annoying from unwanted and less use Apple watch apps on Apple watch home screen. Then follow below way to deleting or uninstall Apple watch app steps wise.
3 Ways to Delete Apps on the Apple Watch - wikiHow


Report Ad
Over 70% New & Buy It Now. This is the new eBay. Find Repair Lcd Screens Now!


How To: Enable or Disable the Wallet from Showing on Your iPhone's Lock Screen in iOS 9 How To: This Easy DIY Money Indicator Light Makes Sure You Always Have Cash in Your Wallet How To: Add Unsupported Cards & Passes to Apple Wallet for Quick & Easy Access on Your iPhone
[DIY] Empty Wallet Cash Indicator - YouTube


If you feel like you're on the wrong track with what matters most to you, here are nine warning signs to look for, and tips to get you back on track: 1. All the decisions you've made someone else made for you. There are people who live their entire lives on the default settings, never realizing they can customize everything.
Going Online with Your Android-Enabled Phone | Getting


The first thing you probably noticed after turning on your LG G3 for the first time was its gorgeous Quad HD display. The G3 is the first device to offer the soon-to-be standard QHD screen, and it's a beauty.
How to Adjust Colors on an LCD Monitor (with Pictures) - wikiHow


APA Citation Guide. When writing an academic paper or otherwise conducting research, you are required to provide proper credit whenever you include any outside sources whether it is a book, website, magazine article, film or academic journal.
Essay formatting: APA, MLA, Chicago, Harvard, Turabian


The process of connecting your phone to your wireless headset via Bluetooth to use Skype is relatively easy, but headsets not certified by Skype might not work. Select the Bluetooth headset to
Pairing your Plantronics Savi 700 to a mobile phone for


As you improve your site, you can use Google's recommendations and benchmarks to set your goals and measure your performance. After all — as the largest search engine in the world, Google can have a major impact on your success. So using their standards as your standards is never a bad idea. How to speed up your website in 2019
3 Ways to Speed up Your Site with PHP - Code Envato Tuts+


By following a simple technique you can create new folders on your iOS device without giving them a label. With this method your icons will not have a label at all and will show no name on top of the folder screen or on the homescreen icon. To do this all you need is an app belonging to App Store's food category.
Remove Or Hide iOS 10 App Icon Labels From Home Screen


News: Snapchat AR Lenses Jump from Mobile to Desktop with Snap Camera App News: 5 Secret Snapchat Lenses That Will Make Your Weekend — Infinity War, the Chainsmokers & More News: Try These 5 Hot New Snapchat Lenses — Fortnite Victory, Apyr & More News: Snapchat Gives John Wick Fans the Tools to Build Their Own AR Effects via Lens Studio
Wear Contact Lenses? Here Are 12 Bad - The Secret Yumiverse


In this video, I show you how to use the copy and paste feature on the iPhone and iPad. Copying and pasting can be useful for when you are trying to share a sentence or two from an article you've
How To Use Cut, Copy And Paste Feature On Apple iPhone 8 And

0 comments:

Post a Comment