How to play YouTube videos on a Sonos system?

2

1

Out of the box, a Sonos system is not able to play (the audio of) YouTube videos. How to achieve this? If you have a server (or a VM running Linux) that is always turned on in your house, here is a rough tutorial on how to set this up using only free software. Press the Send to TV button on your phone's YouTube app, and your Sonos system will play the audio track of the video!

gpothier

Posted 2014-08-22T03:12:16.073

Reputation: 151

Answers

3

The idea is to have the YouTube audio play on your very own internet radio station, and have the Sonos tune to it. Here is the sketch of the solution:

  1. Cast receiver. The "Send to TV" button of the phone's YouTube app uses the DIAL (or Cast Receiver) API to instruct your TV to play the selected YouTube content. The leapcast software (https://github.com/dz0ny/leapcast) emulates a Chromecast device, which understands the DIAL API. Install it on your server, and you will be able to use the Send to TV button to play the video on your server.

  2. Internet radio. Use IceCast2 and Darkice to convert the audio output of your server into an Internet radio station the Sonos system can tune to. Whenever you send a video to your server with the Send to TV button, the radio station will broadcast the audio track of the video.

  3. Monitor. A simple python script (below) monitors the audio output of the server, and instructs the Sonos system to tune to your radio station whenever it detects audio activity (using the SoCo remote control software - https://github.com/SoCo/SoCo).

The full tutorial and monitor script are now hosted on Github: https://github.com/gpothier/sonoscast

gpothier

Posted 2014-08-22T03:12:16.073

Reputation: 151

0

If you want to play YouTube on Sonos you can use the free software SonoAir: https://www.youtube.com/watch?v=ThQiw_UTYr8

user689771

Posted 2014-08-22T03:12:16.073

Reputation: 1

1Can you expand upon this? A link-only answer with a software recommendation isn't particularly useful. While this doesn't seem to be spam to me (it's open source software), others might mistake your answer as such. – bwDraco – 2017-01-25T05:41:22.617

1

Also, videos don't work well as the primary source of information. It's better to include the essential information within the answer and use linked information for attribution and reference. Good guidance on recommending software here: http://meta.superuser.com/questions/5329/how-do-i-recommend-software-in-my-answers.

– fixer1234 – 2017-01-25T06:02:01.623

Hi @bwDraco and fixer1234, sorry that you found that confusing. Basically AirSonos is a software that you can install on your Mac and then you will basically be able to play any sound from your Mac to your Sonos speakers. It is very straightforward, install the software and then play the sound of your Mac on your Sonos speakers. – user689771 – 2017-02-09T04:59:38.240

0

You can play any sound (YouTube, Spotify...) from your Mac to your Sonos speakers by installing SonoAir (Mac OS El Capitan and Yosemite users) or AirSonos (for Mac OS Sierra users). Those 2 softwares are free and work really good.

For El Capitan and Yosemite users, here are the instructions: https://youtu.be/ThQiw_UTYr8

For Sierra users, here are the instructions: https://youtu.be/mi5u5Sa3UCk

user689771

Posted 2014-08-22T03:12:16.073

Reputation: 1

Please see How do I recommend software in my answers?

– Scott – 2017-02-09T07:09:40.220

0

SonosTube Android version has been released.

https://www.amazon.com/gp/mas/dl/android?asin=B072BT62BG

Charles

Posted 2014-08-22T03:12:16.073

Reputation: 1

-1

I recommend an iphone / ipad app that can play YouTube via Sonos: SonosTube.

It is the only app in Apple App Store to play YouTube via Sonos. SonosTube can play video on your iPhone / iPad, meanwhile, play audio on your Sonos speakers.

https://itunes.apple.com/us/app/sonostube/id1124115025?mt=8

AI Fun

Posted 2014-08-22T03:12:16.073

Reputation: 1