How To Play Music from YouTube on the Amazon Echo
The Amazon Echo is an amazing piece of home or office automation technology. A standalone computing unit with Alexa software built-in paired with a high-quality speaker, the Echo (and the smaller Echo Dot) is capable of many things. One feature that not everyone is aware of is that the Echo can take media from other sources and play it over the speaker. In this article, I’m going to show you how to play music from YouTube on the Amazon Echo.
The Echo already has a very large selection of music-playing ability built-in. Right out of the box, it can play Amazon Prime Music, Amazon Music Unlimited, Spotify, Pandora, iHeartRadio, TuneIn and many others with built in apps. However, the Echo also has the ability to play music from other sources via Bluetooth, including YouTube.
Play music from YouTube on the Amazon Echo
A lot of people like to listen to music on YouTube rather than on the apps and services specifically designed for music. YouTube is free and has untold millions of tracks and playlists from new artists, mainstream acts, superstars, and musicians from the past. If a song or piece has ever been recorded, it is probably available on YouTube. However, YouTube (owned by Google) is a competitor to Amazon’s own music services such as Amazon Music. For that reason, the Echo does not natively support playing music found only on YouTube.
Because of that, in order to play music from YouTube, you will need to pair your Echo with an external device using Bluetooth. You can use pretty much any Bluetooth-enabled device that has an Internet connection. For the purpose of this walkthrough, I will be using my smartphone. To make this work, you will need a working Amazon Echo or Echo Dot and a Bluetooth-enabled device with Internet connectivity. Here’s how to set it up.
- Turn on Bluetooth on your connected device.
- Say ‘Alexa, pair Bluetooth.’
- Follow the instructions to pair the Echo with your device.
- Open the YouTube app on your device (or in the device’s web browser) and play whatever you want.
- The sound should come through on your Echo.
Unfortunately you can’t control YouTube via the Echo the way you can control Pandora or Spotify or Amazon Music, but you can control the Echo part of the equation. You can stop playback, pause it, turn the volume up or down, but that’s about it. Those commands don’t affect your connected device which is streaming the YouTube content, that continues playing regardless. All you can control is the Echo’s playing of the audio stream.
Add a skill to Alexa to play YouTube
If you’re unsatisfied with this (I would be), there are other approaches that you can take. While Amazon is unlikely to add direct support for YouTube playback to Echo anytime soon, there are third parties using the Amazon Echo skills toolkit who have enabled this functionality.
The most full-featured and actively developed Alexa skill that allows the playing of YouTube audio streams is called Alexa-YouTube, and while installing it is a fairly involved process, it’s well-documented and works well once completed. Here is a walkthrough of the process.
- Go to the Alexa Console.
- Register as an Amazon Developer if you haven’t already done so. Be sure to answer “No” to the questions “Do you plan to monetize apps by charging for apps or selling in-app items” and “Do you plan to monetize apps by displaying ads from the Amazon Mobile Ad Network or Mobile Associates?”
- Click the “Create Skill” button.
- Give your skill any name, eg “My YouTube Skill”.
- Select the default language to be the same as whatever language your Echo uses. It is important that this be an exact match.
- Choose “Custom” as your model, and click “Create Skill”.
- Select “Start from Scratch” and then click “Choose”.
- On the left-hand menu, click “JSON Editor”.
- Delete everything in the text box.
- In another browser tab, load the code from GitHub, and copy it. This is for the English version; use InteractionModel_fr.json, InteractionModel_it.json, InteractionModel_de.json, or InteractionModel_es.json for French, Italian, German or Spanish respectively.
- Paste the code into the JSON editor.
- Click “Save Model” at the top.
- Click “Interfaces” in the menu on the left, and enable “Audio Player” and “Video App”. Click “Save Interfaces”.
- Click “Endpoint” in the menu on the left, and select “AWS Lambda ARN”. Under “Default Region”, you need to enter the region code for wherever you are located. If you are in the EU, use “arn:aws:lambda:eu-west-1:175548706300:function:YouTube”. If you are in Asia, use “arn:aws:lambda:ap-northeast-1:175548706300:function:YouTube”. For the United States (east), use “arn:aws:lambda:ap-northeast-1:175548706300:function:YouTube”, and for the United States (west) use “arn:aws:lambda:us-west-2:175548706300:function:YouTube”.
- Click “Save Endpoints”
- Click “Permissions”, at the very bottom on the left.
- Turn on “Lists Read” and “Lists Write”.
- Click “Custom” in the menu on the left.
- Click “Invocation” in the menu on the left.
- If you want to call the skill anything other than “youtube”, change it here. Click “Save Model” if you change anything.
- Click “Build Model”. This will take some time, perhaps even several minutes. You will get a notification when it finishes.
- At the top of the editor, click “Test”. Where it says “Test is disabled for this skill”, change the dropdown from “Off” to “Development”.
A mere 33 steps later, that’s it! Your Echo will now respond to voice commands to play YouTube directly, as though it were one of the built-in features of Alexa. If your Echo says it can’t find any supported skills in response to a YouTube command, try starting out with “Alexa, open YouTube”. That should properly initialize the stream.
Alexa-YouTube supports a strong subset of the normal voice commands. Here is the basic list of supported commands.
To play a specific song video, just name the video. For example, “Alexa, ask YouTube to play Rocket Man”.
Similarly, for a playlist, “Alexa, ask YouTube to play playlist All My Pop Favorites”.
For a channel, use “Alexa, ask YouTube to play channel VanossGaming”.
You can say “shuffle” instead of “play” for channels and playlists.
The standard commands for “next”, “previous”, “start over”, “pause” and “resume” all work.
You can ask what song is playing with “Alexa, ask YouTube what song is playing”.
You can skip ahead or back with “Alexa, ask YouTube to skip forward / backward / by [time amount]”.
If you only want one video to play, say “Alexa, ask YouTube to play one video by the Beatles”.
You can turn autoplay on or off with “Alexa, ask YouTube to turn on autoplay / turn off autoplay”.
You can ask how far into the video you are with “Alexa, ask YouTube what is the timestamp?”
If you want to access YouTube’s built-in “find similar music” feature, say “Alexa, ask YouTube to play more like this”.
Note that occasionally, the Alexa-YouTube skill will play an ad that supports the developer of the skill. It’s a tiny price to pay for a frankly amazing addition to the Alexa skill toolbox.
Alexa music commands
Here is a list of some of the core music commands you can use with your Echo. They all work with the built-in music apps and some will work with the Alexa-YouTube skill.
Core Alexa music commands:
- “Shuffle” or “Stop shuffle.”
- “Stop” or “Pause.”
- “Play” or “Resume.”
- “Play some music.”
- “Play what’s hot in Canada.”
- “Play songs similar to the Nineties.”
Alexa music service commands
You can also command Alexa to work with music services as well as Amazon Prime Music or Music Unlimited. The Spotify commands may require Spotify Premium to work but may work in all situations. I have the premium so they all work for me so I couldn’t test them properly.
Some commands include:
- “Play song, album, artist.”
- “Play emotion or type of music.”
- “Play station name.”
- “Play playlist name.”
- “Play a Prime Playlist.”
- “Play songname from Prime Music.”
- “Play music by composer, artist, band from Spotify.”
- “Spotify connect or connect to Spotify.”
- “Play genre from Spotify.”
- “Show me songs, playlists, genres from Prime Music.”
- “Who’s the lead singer for this band?”
- “Block explicit songs.”
- “Stop blocking explicit songs.”
- “Add song, album, artist to playlist name.”
- “Create a playlist.”
The bottom line is that you can play music from YouTube on the Amazon Echo or Echo Dot. You can do it almost immediately with a Bluetooth-connected device, or you can do it really well by adding a skill to Alexa.
Have any other suggestions for getting YouTube working on your Echo? Share them with us in the comments!
We have a lot of other helpful articles about getting the most out of your Echo.
Want more music sources? Check out tutorial on adding your Google Music account to your Echo, or how to add your iTunes to your Echo, or how to add your Apple Music to your Echo. You can listen to podcasts on your Echo and of course you can stream music from your PC to your Echo.
The built-in Echo speaker is pretty good, but if you want a Bluetooth speaker, here’s an easy guide to setting up a Bluetooth speaker with your Echo.
We’ve got another tutorial on using your Echo to control your Fire TV Stick.
Getting in touch with your friends is easy if you read our guide to making calls on the Echo.