Skip to main content
Ryan S
Retired Sonos Staff
October 3, 2017

Alexa + Sonos: How it Works

  • October 3, 2017
  • 179 replies
  • 100089 views
So you’ve read all about Amazon Alexa working with Sonos and you want to know more. Here’s a rundown of how the integration works.

Your Amazon Alexa devices are listening for you to say the wake word, “Alexa”. When they hear that word, the microphones record what you say and send the audio to the Amazon Alexa cloud to be translated.

That voice line turns into a string of text. The Amazon protocols determine if it’s meant for Amazon Alexa or for a Sonos player. If it’s for Sonos, that text is then sent directly, and securely, over to the Sonos cloud to be turned into a command using our own codes.

Finally, the Sonos intended command goes down to the system.

Want to try it out?

Here are some fun commands to try. I like starting with:

“Alexa, play some salsa in the kitchen.”
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

179 replies

Lyricist I
November 1, 2017
Question #2. Sometimes I get that message from Alexa, 'There is already music playing in Kitchen, would you still like me to play there?' I am assuming that has something to do with a stopped playlist that originated from Sonos, or Spotify...Can you direct me to a source to explain how this works?
Ryan S
Ryan SAuthor
Retired Sonos Staff
November 2, 2017
This has happened enough for me to wonder if it's not a coincidence. If I request music through my Echo, Like 'Alexa, play music, in the kitchen', within a day or two i get the message in the Sonos app that i have lost my connection to wifi. I have to reboot my router. IT's happened 3 or 4 times since i started using Echo with Sonos. Has anyone else reported this?
It's almost certainly a coincidence. If this is happening regularly though we'd be happy to take a look at the system with you. You're welcome to give us a call next time and we'll help sort out what's happening.

Question #2. Sometimes I get that message from Alexa, 'There is already music playing in Kitchen, would you still like me to play there?' I am assuming that has something to do with a stopped playlist that originated from Sonos, or Spotify...Can you direct me to a source to explain how this works?
Most music services have a limit to the amount of active streams you can have playing at one time. Amazon Music only allows one stream at a time, so you need to stop playing music from one device before starting up on another.
Mark good posts by pressing the like button, and select the best answer on questions you've asked to help others find solutions.
Avid Contributor I
November 20, 2017
I was hoping you'd put something like this:

https://github.com/rgraciano/echo-sonos

On the devices themselves.


Interesting project - looks cool. I notice you added the ability to control line-in. Is this managed dynamically? (ie switch to dot for audio output, then back to original source?)
Luis Estrada
Lyricist III
November 20, 2017
I'm confused. I have the newer play5s. Both grouped as Living Room. I updated my app. I updated my Sonos system. I even scanned devices in Alexa app (but not sure if Sonos should show up there or not (it does not). I say things like "Alexa, play jazz in the living room" and she says things like "I cannot do that in the living room" and other versions of "no".

I have Hue bulbs that are grouped as Living Room too. Any ideas what I should be saying? How I should be saying it? Or why I am having problems?


I have both, sonos and Hue lights named as living room and so issues with Alexa, strange!

"Alexa, turn living room lights on" or "... turn lights on in the living room"
"Alexa, play music in the living room"

It should understand
jgatie
November 20, 2017
Your devices should have unique names, or some commands will not work.
Luis Estrada
Lyricist III
November 20, 2017
Your devices should have unique names, or some commands will not work.

can you please give me an example of what commands should not work? I have not found any right now.
jgatie
November 20, 2017
Your devices should have unique names, or some commands will not work.

can you please give me an example of what commands should not work? I have not found any right now.


If you have lights named Living Room and a Sonos named Living Room, saying "Alexa, turn off Living Room" will give odd results. Also, volume controls like "Turn up Living Room" will not work, whereas "Turn up volume in Living Room" will. I found the skill to be far more effective when I made unique names for reasons like these.
Trending Lyricist I
December 2, 2017
I find my echo dot either claims to have played amazon music or tunein on my sonos speaker, but hasn't, by which i mean no sounds come out and sonos controller app reports no activity OR
a track starts, I can not pause it, stop it, or have any control over it from ALEXA, sometimes it is reported by the SONOS controller app and can be controlled and sometimes even that can't see it and I have to turn off my sonos speaker altogether.
The same happens with Spotify since the newly announced integration.
I have raised a support ticket, but it's all quite disappointing.
Contributor I
December 12, 2017
Hey Ryan

I just got my sonos one yesterday. Overall i am satisfied with the product but I do have two questions for you

1) Is there any plan to increases the sensitivity of the microphones through an update ? I always have to raise my voice a bit over normal conversation tone for it to register

2) Is the sonos one eventually going to have feature parity with echo devices ( music alarm, calling, notifications etc )? Is this part of an official roadmap or decided on a case by case basis? Also i can see a lot of people have simillar questions so would really help if you released the roadmap on a post or blog some where so we can know what to expect . Thanks

3) Also if its decided on a case by case basis, can the community vote on features for prioritization? Amazon just released the music alarm feature and i am sure that would be high on the list

Arun
bamber2000
Trending Lyricist I
December 21, 2017
So you’ve read all about Amazon Alexa working with Sonos and you want to know more. Here’s a rundown of how the integration works.

Your Amazon Alexa devices are listening for you to say the wake word, “Alexa”. When they hear that word, the microphones record what you say and send the audio to the Amazon Alexa cloud to be translated.

That voice line turns into a string of text. The Amazon protocols determine if it’s meant for Amazon Alexa or for a Sonos player. If it’s for Sonos, that text is then sent directly, and securely, over to the Sonos cloud to be turned into a command using our own codes.

Finally, the Sonos intended command goes down to the system.

Want to try it out?

Here are some fun commands to try. I like starting with:

“Alexa, play some salsa in the kitchen.”
bamber2000